-
AuthorPosts
-
March 24, 2022 at 6:15 pm #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
ChristianMarch 25, 2022 at 5:22 am #1345956you 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.phpfunction 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 positionMarch 25, 2022 at 11:28 am #1345988Dear 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
March 25, 2022 at 3:10 pm #1346013if 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.
March 25, 2022 at 3:47 pm #1346019Dear 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
March 25, 2022 at 3:55 pm #1346020oh 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!!March 25, 2022 at 4:09 pm #1346026Hi,
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,
RikardMarch 25, 2022 at 4:11 pm #1346027Thanks Rikard, my problem is solved you can close the topic.
best regardsMarch 25, 2022 at 7:56 pm #1346081Hi,
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 -
AuthorPosts
- The topic ‘Prev–Next Post navigation not working by using full width easyslider’ is closed to new replies.