Override and customize rating templates
This two-part video shows the process of making the copy of rating template and creating new templates for rating blocks and in second part some of the ways to customize newly create templates.
Make sure to check other tutorials and articles in the knowledge base related to the templates customization.
4 thoughts on “Override and customize rating templates”
Leave a Comment
You must be logged in to post a comment.
Since the function text() is deprecated and the rating text is now defined in the function rating(), can it still be modified in a custom template? How would this work?
text() is replaced by rating() method. This method uses filters and improved layout for the text that can be translated easier.
I already found this filter, which helps a lot: https://support.dev4press.com/kb/reference/gdrts_render_single_stars_rating_args_rating/
Is it also possible to change to order of the elements like “500 votes, Rating: 4.5”?
Right now, no. More filters will be added in the future to make this possible.