Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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.
    #734037

    Hey 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,
    Yigit

    #734077

    hi 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.
    #734081

    Hey!

    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!
    Yigit

    #734101

    mh 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.
    #734356

    sorry 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

    #735162

    Hi,

    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,
    Ismael

    #735511

    hi ismael,

    thank you very much! it works! :-)
    the plugin is nice as well.

    thank you!

    cheers

    nils

    #735714

    Hi Nils,

    Great, glad we could help :-)

    Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.