Hello,
The points in the reviews do not show .0, mark and leave 7, 8, etc. How can we add the .0? We want to show 7.0, 8.0, 9.0…
-
This topic was modified 7 years by
angelgallegos.
Hi,
It could be possible but you will need to make a modification in the theme code, as this is not possible by a setting. In this file you have to do it, like this
– http://prntscr.com/mnj2xz
Result – http://prntscr.com/mnj3gr
Thanks
Hello,
I have edited that archive adding this line:
$result = number_format( number: $total / $cnt, decimals: 1);
However, it does not work: https://www.elquintobeatle.com/2019/02/19/xiu-xiu-girl-with-basket-of-fruit/
And it gives me 500 error page when updating posts.
Hi,
Please provide a link where you have a round review as the one yo ushow is not a round number. I have tested the method added by Simion and it works properly. Please make sure you only change the text “round” to “number_format”
Do not change anything else in that file.
Thank you!
Hi,
The link I show has a 8,0 in the review score.
I have changed “round” to “number_format” but, as you can see, it does not work.
Thanks.
Hi,
From what I can see you are using a single post template from tagDiv Cloud Library and for that you’ll need to make this changes in a file from tagDiv cloud library -> https://www.screencast.com/t/rKL7U8sE1 here is the path -> wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_review_overall.php
results -> https://www.screencast.com/t/tAGmj1FQgat8
Hope this will help you!
Thank you!
Hi,
Where’s exactly that code? This is ‘234’ line of that archive:

-
This reply was modified 7 years by
angelgallegos.
Hello,
But what should I change then?
“Round” or “Number_format”?
“Decimals 1” or “Precission 1”?
This is a mess. Could you provide me the original archive with the modifications?
It’s unclear what I should do and I do not want to break my site.
Hi,
Please make a full backup to your website and after that replace the content code from the tdb_single_review_overall.php with the code from this pastebin -> https://pastebin.com/AnwqB1ky
Thank you for your understanding!