WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. JayKayCZ
    Member
    Posted 1 year 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

    http://wordpress.org/extend/plugins/rating-widget/

  2. vovafeldman
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.