-
AuthorPosts
-
January 16, 2017 at 1:38 pm #734022
hi there,
i try to create a custom post format and add the ability to use the avia_builder. unfortunately i only see the spinning wait icon. i can click on content stuff like a text field or heading but after saving the document i can’t see the changes i’ve made.
i was also wondering about the “regular wp editor” i still see at the top
i’m using a child theme with the following functions.php
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'Produkte', array( 'labels' => array( 'name' => __( 'Produkte' ), 'singular_name' => __( 'Produkt' ) ), 'public' => true, 'has_archive' => false, ) ); } add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'Produkte'; /*instead add the name of the custom post type here*/ } } return $metabox; }
- This topic was modified 7 years, 10 months ago by efini.
January 16, 2017 at 2:26 pm #734037Hey efini,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
YigitJanuary 16, 2017 at 3:06 pm #734077hi yigit,
thank you for you quick reply!
i just changed it to a plugin, but still got the same issue.
the plugin looks like the following (just to let others know)
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'Produkte', array( 'labels' => array( 'name' => __( 'Produkte' ), 'singular_name' => __( 'Produkt' ) ), 'public' => true, 'has_archive' => false, 'supports' => array( 'title', 'editor', 'custom-fields' ) ) ); } add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'Produkte'; /*instead add the name of the custom post type here*/ } } return $metabox; }
there is no other plugin enabled. the site is not public yet so feel free to do what ever you need to do. :-)
login stuff will be in the private area
thanks!
cheers
nils
- This reply was modified 7 years, 10 months ago by efini.
January 16, 2017 at 3:13 pm #734081Hey!
You are currently using an older version of the theme. Please update Enfold to the latest version 3.8.4 – http://kriesi.at/documentation/enfold/updating-your-theme-files/ and flush browser cache and refresh your page a few times – http://wiki.scratch.mit.edu/wiki/Hard_Refresh
Cheers!
YigitJanuary 16, 2017 at 3:27 pm #734101mh running 3.8.4 now but still no luck, even after flushing the cache and some reloads.
does it work for you?- This reply was modified 7 years, 10 months ago by efini.
January 16, 2017 at 8:45 pm #734356sorry for being annoying but i need to carry on with my work ;-)
i just used a VM to make sure won’t be the issue.
i tried siteorigin’s page builder which works fine. but then i can’t change the site template to transparent header etc. and actually i rather would like to use the avia site builder.
cheers !
nils
January 18, 2017 at 7:40 am #735162Hi,
The $post_type or the first parameter of register_post_type function should not contain capital letters.
// https://codex.wordpress.org/Function_Reference/register_post_type
Instead of creating the custom post manually, please use the following plugin.
// https://wordpress.org/plugins/custom-post-type-ui/
Best regards,
IsmaelJanuary 18, 2017 at 8:19 pm #735511hi ismael,
thank you very much! it works! :-)
the plugin is nice as well.thank you!
cheers
nils
January 19, 2017 at 7:42 am #735714 -
AuthorPosts
- You must be logged in to reply to this topic.