Tagged: 

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

    Hi!
    I v asked this question before, but still isnt solved, so lets try again.
    I made several posts.
    Each post belongs to a category “GitaarvanHoutprojecten” OR “Tips and Tricks”,So far so Good.

    This page shows the category “GitaarvanHoutprojecten in a “blog article element”.
    Take a look at the arrows, when you click the first post
    there is only an arrow backwards, not forward. The arrow forward appears after the second post, but you ll see that the forward arrow goes backwards and the backwards arrow goes forward…. there should be a simple solution I guess?

    But now its getting worse:
    Same happens on another page, showing the post from “Tips and Tricks” category.
    again, just one backwards arrow appears, and if you hit it, it links to a post from the other (!!) category “GitaarvanHoutProjecten” and only 1 click is possible!!
    All the other post from “Tips and Tricks”category wont show up.

    So the question:
    1. how to fix this arrow backwards and forward issue
    2. how to fix that the order of post in the blog-article stays with the same selected category?

    Thank You!

    • This topic was modified 7 years, 2 months ago by Anneloes1981.
    #850548

    Hey,

    Please use a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ and add following code to Functions.php file of your child theme

    add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2); 
    function enfold_customization_postnav($entries, $settings) {
        $entries['next'] = get_next_post($settings['same_category']);
        $entries['prev'] = get_previous_post($settings['same_category']);
        return $entries;
    }

    Best regards,
    Yigit

    #850692

    Hi Yigit,

    thanks! using the childtheme seems to dangerous to me, i rather not!
    But it must work also when adding this code into the enfold functions.php?
    I tried this but nothing happend.
    Any other ideas?

    Thanks
    !

    #850823

    Hi,

    We recommend everyone to use a child theme, otherwise you will lose your edits on updates if you want to alter theme files. What exactly don’t you like about using a child theme? We can help you out if you are uncertain about how it works.

    Best regards,
    Rikard

    #850970

    Hi hi,

    yes, I understand and like the benefits of a childtheme.
    Its just that Im already running Enfold and that took me long cause Im not a professional :-)
    I took a closer look at the video about the childtheme and the other documentation but I dont tink
    im able to install the childtheme. The risk is that I will destroy my website, I just dont know enough about this.
    So, if you would like to help me and install the childtheme, that would be great.
    Thank You

    #851015

    Hi,

    Have you made any changes on parent theme files? If not, you can simply download pre-built child theme here – http://kriesi.at/documentation/enfold/using-a-child-theme/ and install & activate it. Then go to Enfold child theme options > Import & Export and import parent theme settings. Stylesheet might need to be flushed. You can do so by simply saving Enfold child theme options.

    If you would not like to use a child theme (please note that these changes will be overwritten when you update the theme), please go to Appearance > Editor > functions-enfold.php file and find following

    	        if(version_compare($settings['wpversion'], '3.8', '>=' ))
    	        {
    	            $entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	            $entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	        }
    	        else
    	        {
    	            $entries['prev'] = get_previous_post($settings['same_category']);
    	            $entries['next'] = get_next_post($settings['same_category']);
    	        }

    and change it to following

    	        if(version_compare($settings['wpversion'], '3.8', '>=' ))
    	        {
    	            $entries['next'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	            $entries['prev'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	        }
    	        else
    	        {
    	            $entries['next'] = get_previous_post($settings['same_category']);
    	            $entries['prev'] = get_next_post($settings['same_category']);
    	        }

    Best regards,
    Yigit

    #851216

    Thank You Thank You Thank You Thank You Thank You Thank You
    <3 <3 <3 <3 <3 <3 <3 !!!!!!!!!!!!

    #851217

    Hi,

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘arrows in posts do not work properly’ is closed to new replies.