Currently, there are 0 users and 1 guest visiting this topic.
Author
Topic
#52366

how do i go about just displaying stars and removing all the text below it such as

You have already voted…

thanks!

Topic Information
Viewing 3 replies - 1 through 3 (of 3 total)
Author
Replies
  • #52367

    the php code i am currently using is

    gdrts_posts_render_rating(array('echo' => true, 'name' => 'post', 'id' => 'the_ID()','method' => 'stars-rating' )); 

    following the instructions listed here

    https://support.dev4press.com/kb/article/manually-add-rating-block-with-php/

    thanks!

  • #52378

    The look of the rating block is controlled by the template. In main settings you have option to choose template, and you can set this template with the function too (second array with method parameters). So your example becomes:

    gdrts_posts_render_rating(
      array('echo' => true, 'name' => 'post', 'id' => 'the_ID()','method' => 'stars-rating'),
      array('template' => 'default');

    And, you need to modify the template to change what is displayed and how it is displayed. Here is the tutorial on templates, and how to make a copy of default one: https://support.dev4press.com/kb/article/rating-templates/.

    Regards,
    Milan

    Dev4Press - Premium plugins for WordPress.

  • #52384

    awesome. thanks! that worked after you get more familiar with the setup and syntax! Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Register

If you don't have an account on this website, you can register for a free account here:

Register