Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1242215

    Hello,
    i am using the realted posts feature of enfold. but i only want to display like 3 or 4 related posts. where can i change that so after the next update the changes still exist?
    thank you!

    #1242377

    Hi kopf-und-stift,

    In order for a tweak not to be removed during theme update, it should be applied in a child theme.
    (Skip this if you have a child theme). You can download the child theme here: https://kriesi.at/documentation/enfold/child-theme/ and find instructions on how to use it.
    Next in your enfold theme (parent) go to includes folder and copy related-posts.php
    Then in your child theme, create a folder and name it includes and inside it paste the related-posts.php file.
    Edit the file and find this code (line 81 in Enfold 4.7.6.3):

    'showposts'=>$postcount, 'ignore_sticky_posts'=>1,

    replace $postcount with 3 or 4.
    Hope this helps :)

    Best regards,
    Nikko

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.