Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #54591
    Johan
    Member

    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,
    Johan

    #54596
    Sakin
    Keymaster

    @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 above comments_template(); code

    if(function_exists('the_ratings')) { the_ratings(); }

    #54817
    Johan
    Member

    Hello 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,
    Johan

    PS: I’m really surprised by how much you know about WordPress, you rock it!

    #54843
    Sakin
    Keymaster

    @Johan: Thanks for your appreciation. Ok then you can add that code below the code
    echo '<div class="entry-content">';

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Wp postratings plug-in’ is closed to new replies.