Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #479288

    Hi,
    After having filtered avf_builder_boxes for a custom post types for using the enfold builder which these,i can’t find a way to include back a “get_adjacent_post” like navigation in their single pages. Where can i hack the code to implement it back ? or what can i filter/hook to do so ?

    Thank’s

    Regards

    #479532

    Hey Mborie!

    I’m not sure what you mean by that, what changes have you made so far?

    Best regards,
    Rikard

    #479560

    Ok,
    i’ve added a filter on ‘avf_builder_boxes’ to enable the enfold builder for some of my post types
    <?php add_filter( ‘avf_builder_boxes’, ‘add_builder_to_post_type’ ); ?>
    I don’t show you the add_builder_to_post_type() but it works like a charm and i can edit my custom pt with the builder.

    My problem is that i can’t retreive a “previous_post” – “next_post” navigation when accessing one of my single custom post type pages.

    My question is What/where is the file or snippet i have to hook on, or override to retrieve or implement a navigation on my single custom post type pages ?

    Regards

    #480440

    Hello ?
    Anybody out there ?

    #480482

    Hey!

    Please add following code to Functions.php file in Appearance > Editor

    add_filter( 'avia_post_nav_settings', 'enfold_customization_post_nav', 99 );
    function enfold_customization_post_nav( $settings ) {
            if ( get_post_type() == 'portfolio' ) {
    	     $settings['is_fullwidth'] = false;
            }
            return $settings;
    }

    and change ‘portfolio’ with your custom post type

    Regards,
    Yigit

    #480498

    Ok thank’s,
    Last thing where can find this filter in action, so i die smarter ?

    Best regards

    #480618

    Hey!

    You can find it in functions-enfold.php file :)

    Cheers!
    Yigit

    #730345

    concerning to this but a bit different.
    i have the custom post type : event
    and i want to have the side-navigation left right for that too! prev next event.

    I think i open better a new thread

    • This reply was modified 7 years, 10 months ago by Guenni007.
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.