Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #780563

    Hi

    My client wants to do some modifications on his website (build with Enfold) en therefor we need some extra post types.

    We’ve created those new post types with the Toolset-plugin but now I was wondering how that I can use the Avia Layout Builder in those new post types. Also the “Layout”-widget that is in the right side-bar when creating a new post is something handy that I would like to have on the custom post types.

    Any idea?

    If possible I want to avoid making changes to the theme core-files or creating a child theme. I use the “Custom Functions”-plugin to add extra functions to a website so if there is a solution that I can add code that way, it would be marvelous.

    Thank you for the support!

    #780613

    Never mind, i figured it out! :-)

    Looked that I was using the right code but there was something with the quote-symbols ( ‘ ) that were in the code that I copy-pasted. Didn’t know there are different symbols for that …

    For what it’s worth: this is the code you need (replace the ##### by the slug of your custom post type:

    add_filter(‘avf_builder_boxes’,’custom_post_types_options’);

    function custom_post_types_options($boxes)
    {
    $boxes[] = array( ‘title’ =>__(‘Avia Layout Builder’,’avia_framework’ ), ‘id’=>’avia_builder’, ‘page’=>array(‘#####’, ‘#####’, ‘#####’), ‘context’=>’normal’, ‘expandable’=>true );
    $boxes[] = array( ‘title’ =>__(‘Layout’,’avia_framework’ ), ‘id’=>’layout’, ‘page’=>array(‘#####’, ‘#####’, ‘#####’), ‘context’=>’side’, ‘priority’=>’low’);
    return $boxes;
    }

    #780616

    Hey!

    Glad you figured it out and thanks for sharing your solution. Here is a post from our documentation for future readers – http://kriesi.at/documentation/enfold/use-the-layout-builder-with-any-post-type/ :)

    Let us know if you have any other questions or issues!

    Regards,
    Yigit

    #908025

    This won’t work for me. When I try to edit the functions.php in the Child-Theme I get this message:

    Kommunikation mit der Website, um auf fatale Fehler zu prüfen, nicht möglich, daher wurde die PHP-Änderung rückgängig gemacht. Du wirst deine veränderte PHP-Datei mit anderen Mitteln hochladen müssen, wie per SFTP.

    English:

    It was not possible to communicate with the website to check for fatal errors, so the PHP change was undone. You will need to upload your modified PHP file by other means, such as SFTP.

    Sadly, I have no access to the FTP since I am not the Administrator of the server, only for the WordPress.

    #908100

    by the way this is allways the case if code is posted here on board without using the code tag. The boardsoft compiles these signs.

    you see it on your code here: Link – the quotationmarks are kind of italic version of the normal '

    #908523

    I double checked my code, I got it from here and my quotationmarks are the correct ones

    #908610

    Hi,


    @lucaroehrl
    Please make sure that you are using the latest version of Enfold which is currently 4.2.2 – kriesi.at/documentation/enfold/updating-your-theme-files/. We are going to need to access to your server. Please start a new thread under Enfold sub forum and provide FTP logins or cPanel logins. You can contact your hosting provider and they would provide you needed information :)

    Best regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to use Avia Layout Builder in custom post types (made with Toolset-plugin)?’ is closed to new replies.