Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1345903

    dear Enfold Team,
    As soon I use the full width easyslider in a post, the prev – next post navigation disappears from that post. Is this inevitable or is there a way to avoid this? Thank you in advance
    best regards
    Christian

    #1345956

    you can deactivate the fullwidth/fullscreen slider check by filter: avf_post_nav_settings former: avia_post_nav_settings
    if you only like to have that on posts/portfolio put this to your child-theme functions.php

    function my_avf_post_nav_settings( array $settings ){
    	if( ! in_array( $settings['type'], array( 'post', 'portfolio' ) ) ){
    		$settings['is_fullwidth'] = false;
    		return $settings;
    	}
    }
    add_filter( 'avf_post_nav_settings', 'my_avf_post_nav_settings', 10, 1 );

    maybe it will be necessary to shift those post-nav arrows ( especially on full-screen sliders )
    then it maybe better to have them in absolute position

    #1345988

    Dear Guenni 007,
    thanks a lot for your support. I am not familiar with php. I tried your code in functions php but it had no effect on my issue. I had also a look on the filter and made a few tries. But could not solve it myself.
    There are two things that I would need but still not get to work:
    1. prev next buttons unfortunately disappear as soon i add a fullwidth Slide to a Post. I want them to remain.
    2. the prev-next- nav should only navigate between posts of the same category.

    I would be very glad if you could have a further look.

    regards

    #1346013

    if you got no child-theme –
    where did you place that snippet?

    try it just after that comment – but before the : require_once( 'functions-enfold.php' );

    for both then try:

    function my_avf_post_nav_settings( array $settings ){
         // yes you can add here other post types like product or other cpt
      if( ! in_array( $settings['type'], array( 'post', 'portfolio' ) ) ){
        $settings['same_category'] = true;
        $settings['is_fullwidth'] = false;
        return $settings;
      }
    }
    add_filter( 'avf_post_nav_settings', 'my_avf_post_nav_settings', 10, 1 );

    but without child-theme you had to do that each time enfold parent is updating.

    #1346019

    Dear Guenni007,
    Thanks very much. Yes, of course I use a ChildTheme. I also wrote it into its functions.PHP. exactly as you describe it. But it doesn’t solve the problem. On the contrary, the buttons for the Prev, Next navigation then disappear everywhere.

    regards

    #1346020

    oh wait, I made a mistake. Sorry for confusion.
    Yes, THANK YOU, it works. I use it also in a product – so I added “product”. it works now . Thank you for your help!!

    #1346026

    Hi,

    Great, I’m glad that you got it working, and thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1346027

    Thanks Rikard, my problem is solved you can close the topic.
    best regards

    #1346081

    Hi,

    Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Prev–Next Post navigation not working by using full width easyslider’ is closed to new replies.