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.
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 :)
Best regards,
Mike
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
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
Hi!
To do it as you want, you`ll need to request a custom job here: kriesi.at/contact/customization
Regards,
John