Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #778276

    Hi,
    I wanted to add post views to the bottom line that has the date, number of comments and the author. I have the following instructions for the plug-in.

    In order to show the view count on a post, you merely need to put the following code into your single.php template:
    1<?php if(function_exists(‘the_views’)) { the_views(); } ?>

    I am using your child theme so I can add it to where it needs to be and not have it go away if I do an update to the theme so I wasn’t sure how to insert it where it would need to go. Thanks in advance.

    #778290

    Hey kghorbani,
    First copy the file “single.php” from the Enfold theme and paste in your child theme. Then add your code above to around line 33, see the screenshot, and that will put your “post views” above the title, see screenshot. I know you asked for it to be on the line with the date, and if that is still very important let us know, but this was where I could place it :)
    postimage

    Best regards,
    Mike

    #778292

    Hi Mike,

    Thank you for your help. I was able to get that to work. It would be nice if I could put it down there only because I think it flows better and then it isn’t out of place if it’s placed by where the date, comment count etc is. If I wanted to do that could you please let me know?

    Thanks

    #778299

    Hi,
    I’ve asked for some help with this, it might take a day for them to look at it. Thanks a lot for your patience and for using Enfold.

    Best regards,
    Mike

    #778398

    Hi!

    To do it as you want, you`ll need to request a custom job here: kriesi.at/contact/customization

    Regards,
    John

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