Rating-Widget: Star Review System
[resolved] Adding some text before rating widget (2 posts)

  1. JayKayCZ
    Posted 3 years ago #

    Hi, I love your widget, thanks for such a great work! I want to ask, if I want to add some text before the star rating on page (for example Rate this:), where could I found the html code (in which php file?) to add this text? Thanks


  2. vovafeldman
    Plugin Author

    Posted 3 years ago #

    @JayKayCZ sorry for the late response. Open the main plugin file, /blog-root/wp-content/plugins/rating-widget/rating-widget.php. The method that you would like to modify is rw_rating_html. Instead of:
    $rating_html = '<div class="rw-ui-container rw-class-' . $pElementClass . ' rw-urid-' . $pUrid . '"></div>';
    You can simply add any html before the rating:
    $rating_html = '<myHtmlCode></myHtmlCode><div class="rw-ui-container rw-class-' . $pElementClass . ' rw-urid-' . $pUrid . '"></div>';

    Hope it helps :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Rating-Widget: Star Review System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.