Hello, I wanted to add a rating system that would display next the to Facebook, Twitter, G+ and Pinterest button at the top which would align to the right of them.
I tried reading the forum and couldn’t find anything. The code would be this:
<?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>
So it’s a bit different than the social button strings.
Or Option Two:
This is what I would like best. In the website, we have one top image and then the writing and will add more images. Is it possible to atomically add the ratings plugin right above the second image? So basically it would go directly after the writing stops.
Hi,
The code for the social buttons is located in td_module_single.php – http://screencast.com/t/v9DSxt0hU
The button code is gathered in a variable and then echoed on the page. You have to check the options available for the the_ratings() function to see if it can return a value rather then echo it. Then you could set it like this: – http://screencast.com/t/Dy9dgziUt
You can also try to add it in the loop-single template, but this will require to edit all loop-single files. – http://screencast.com/t/cpbuebJmCjzP
The second option is harder, from your description i understand that you want to add the stars inside the post content, after the text and above the images which appear at the end of the content. This is not an easy task and i cannot provide a quick solution, my advice is to look for a professional developer to help you with this task.
Thank you!
For the first route, I opened the td_module_single.php file in my child theme and it looks nothing like the screen shot you shared. I am pretty keen on editing only the child theme as I don’t want to loose anything upon updating. Is this possible, or does it have to be in the main folder?
Hi
Please note that in older version of the theme, the code indicated by Emil was in td_module_single_base.php file http://screencast.com/t/Yz3RxABX5u3K so if you’re using an older version you should look in that file after the indicated code.
Thanks!
I am using 1.7.1 because for some reason I can’t upgrade to the latest.
But on another note, I used the shortcode for the ratings plugin on pages, which works perfectly fine. But when I added a short code to the posts section, once you click what “star” number you want to rate them, it loads then disappears. Is there a way of fixing this? It’s not due to the plugin since it works on pages.
Hi
I am not aware what plugin you use for rating and how this plugin works. Since is not tested with the theme there is a chance to appear some issues with its functionality. Try to deactivate all others plugins, except for Visual Composer and the rating plugin then test again. Also you can test this with a default wp theme to see if you get the same behavior.
Thanks!
Here is a link:
http://www.sneakerfiles.com/adidas-zx-flux-floral-sound-garden/
I also notice if I put the shortcode below the text, it works but anywhere else (in the middle) it won’t.
Hi
The post content made in WordPress post editor it’s generated by this wordpress function: get_the_content and this may cause some issues when the shortcode it’s rendered.
Try this css in theme panel custom css > custom code, it should solve this issue:
.post-ratings img {
opacity: 1!important;
}
Thanks!
Hi
This text 3.50 out of 5 (14 votes) comes from the plugin and the actual html structure don’t allow it’s customization.
You will need to check in plugin’s files where the function it’s used, basically where the star ratings are generated you should be able to see that. I am not aware how the code for that plugin it’s written and I can’t provide many details in this regard. You will have to check yourself in plugins files and modify them in order to get the desired result.
Please consider that this task involve coding skills and if you’re not aware of the steps you need to take in this regard my advice is to look for someone to help you or hire a freelancer to do this for you.
Thanks for the message
http://allaboutbelgaum.com/lifestyle/food-drink/bisibele-bath-uday-bhavan/
Those rating stars from WP-Post rating plugins are coming vertical when they should be horizontal…
Any idea how to get them horizontal
Hi
I am not sure what you mean as from I can see the star rating are displayed horizontally: http://screencast.com/t/XoT0kElC5oB Please provide more details about your issue and maybe can help you.
Thanks!
