- This topic has 3 replies, 2 voices, and was last updated 8 years, 12 months ago by Sakin.
-
AuthorPosts
-
March 28, 2015 at 11:09 pm #54591JohanMember
Hello,
After spending my saturday afternoon trying to activate one of the most popular plug-ins, wp postratings, in the simple catch pro theme, i hope i can get help here.
After changing the content.php and single.php, my only result were several crashes.. Can someone explain how to install this plug-in in simple catch pro?
I would like to have visitors on my blog to rate each post
Kind regards,
JohanMarch 28, 2015 at 11:30 pm #54596SakinKeymaster@Johan: First it is not recommended to modify any core theme files directly as all these files will be reverted back to original when you update the theme. If you want to edit any of these template files then you can build child theme and do it. For child theme, check this http://catchthemes.com/blog/create-child-theme-wordpress/
Then copy content.php in your child theme and then add the following code, just above
</article><!-- .post-article -->
code:<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
Then for single post, you need to copy the whole function
simplecatch_content()
from simplecatch_fucntions.php file. Then add the following code, just abovecomments_template();
codeif(function_exists('the_ratings')) { the_ratings(); }
March 31, 2015 at 11:35 pm #54817JohanMemberHello Sakin,
I followed your instructions and the stars display now, but problem is that they display at the end of the article (just above the leave a comment form)
Is it possible to place it at the top left of the beginning of a simple catch pro article? (e.g. somewhere below the title)
Kind regards,
JohanPS: I’m really surprised by how much you know about WordPress, you rock it!
April 1, 2015 at 8:24 am #54843 -
AuthorPosts
- The topic ‘Wp postratings plug-in’ is closed to new replies.