-
AuthorPosts
-
October 6, 2022 at 4:59 pm #1367841
Hallo
ich habe zwei verschiedene Blogs mit jeweils einer bestimmten Kategorie, obwohl ich folgende Einstellung vorgenommen habe
Zeige Einträge aus einer benutzerdefinierten Taxonomie, springt nach dem Durchklicken “Kategorie 1” von rechts Ende oder Links Anfang weiter nach “Kategorie 2”.
Wie kann ich das verhindern, was muss ich wo einstellen?
Danke für die Hilfe.Grüße Guido
-
This topic was modified 3 years, 1 month ago by
Highlander-2013.
October 6, 2022 at 10:47 pm #1367872there are different settings that can be done by that filter: avf_post_nav_settings
See: https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Layout/avf_post_nav_settings.phpthis is the common setting to get what you want in child-theme functions.php:
function enfold_customization_postnav($settings){ $settings['skip_output'] = false; $settings['same_category'] = true; return $settings; } add_filter('avf_post_nav_settings','enfold_customization_postnav', 10, 1);but you can have different settings for post or portfolio – you can exclude categories etc. pp
f.e.:function enfold_customization_postnav($settings){ $settings['skip_output'] = false; $settings['same_category'] = true; $settings['is_fullwidth'] = false; // exclude "category-id" 64 from post-navigation if('portfolio' == $settings['type']){ $settings['excluded_terms'] = '64'; } // posts will not have post-navigation if('post' == $settings['type'] ){ $settings['skip_output'] = true; } return $settings; } add_filter('avf_post_nav_settings','enfold_customization_postnav', 10, 1);October 7, 2022 at 7:59 am #1367909Hi,
Thank you for the inquiry.
@Highlander-2013: Please try the suggestion above, just let us know if you need more help.Thanks @Guenni007!
Best regards,
IsmaelOctober 8, 2022 at 6:09 pm #1368073October 8, 2022 at 9:29 pm #1368076Hi,
Glad Guenni007 could help, thank you Guenni007, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
This topic was modified 3 years, 1 month ago by
-
AuthorPosts
- The topic ‘Blog soll nicht nach Ende der ersten Kategorie die zweite Kategorie weiter gehen’ is closed to new replies.
