GeoDirectory SupportHow to add title above ratings in sidebar – GeoDirectory Support https://wpgeodirectory.com/support/topic/how-to-add-title-above-ratings-in-sidebar/feed Wed, 04 Feb 2026 10:56:17 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/how-to-add-title-above-ratings-in-sidebar/#post-18013 <![CDATA[How to add title above ratings in sidebar]]> https://wpgeodirectory.com/support/topic/how-to-add-title-above-ratings-in-sidebar/#post-18013 Sat, 11 Oct 2014 06:02:54 +0000 frantletle I read:

https://wpgeodirectory.com/support/topic/removing-the-share-buttons-from-listing-sidebar/

and

https://wpgeodirectory.com/support/topic/how-to-modify-detail-page/

but think that only applies to adding/deleting the sidebar elements. What we want to do is add a title above the rating so users understand that it represents “average ratings”

How is this done?

At a high level, I think this is what I should do:

1. add a new function to my child theme which:
2. removes the function geodir_detail_page_review_rating() using a hook
3. Re-add a new function, which simply copies the old one, but adds the changes. In this case, just some new HTML

]]>
https://wpgeodirectory.com/support/topic/how-to-add-title-above-ratings-in-sidebar/#post-18033 <![CDATA[Reply To: How to add title above ratings in sidebar]]> https://wpgeodirectory.com/support/topic/how-to-add-title-above-ratings-in-sidebar/#post-18033 Sat, 11 Oct 2014 11:58:06 +0000 Simone Hello, you were almost right (except that in this case you don’t need to remove the function).
Add this in your functions.php (child theme) and you’re done


 add_action( 'geodir_before_detail_page_review_rating', 'geodir_before_detail_page_review_rating_new',10 );
function geodir_before_detail_page_review_rating_new() {
echo "Average Ratings"; }

Obviously feel free to edit the text inside the echo 🙂

]]>
https://wpgeodirectory.com/support/topic/how-to-add-title-above-ratings-in-sidebar/#post-18429 <![CDATA[Reply To: How to add title above ratings in sidebar]]> https://wpgeodirectory.com/support/topic/how-to-add-title-above-ratings-in-sidebar/#post-18429 Wed, 15 Oct 2014 12:51:09 +0000 frantletle That worked!

I really like this ability to customize without fear of overwriting on updates

]]>
https://wpgeodirectory.com/support/topic/how-to-add-title-above-ratings-in-sidebar/#post-18430 <![CDATA[Reply To: How to add title above ratings in sidebar]]> https://wpgeodirectory.com/support/topic/how-to-add-title-above-ratings-in-sidebar/#post-18430 Wed, 15 Oct 2014 12:52:38 +0000 Simone