LachlanM
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: HTML tag showing at the top of postsIn your source code I can see this:
<p><<a href="https://danthegardener.com/SunforceSolarPanel" style="font-weight:bold;text-decoration:underline;" target="_blank" rel="nofollow" onmouseover="self.status='https://danthegardener.com/SunforceSolarPanel';return true;" onmouseout="self.status=''"></a>h1>tester</h1>
You can see after the p tag that ithas two << after it, and you can see the h1 tag is missing it’s opening <
Obviously the sunforce solar panel is breaking your code – because it is being inserted in the wrong place. It needs to cme before or after the h1. I’m guessing you may have added something to your theme, and put it in the middle of that opeing h1 tag?
I have found the function reference documentation, it’s actually included with the plugin. GD Star Rating is a great plugin, but I must say I agree with dskvr. It’s been a very long day trying to find everything…
To access function reference:
Navigate to GD Star Rating in the sidebar of WP admin, then to “Builder”. At the bottom of the builder there is the following:
List of all functions with additional parameters:
FunctionsThe word ‘functions’ links to the function reference.
Even with this information in hand I still struggled to add stars to my theme in the way I wanted to. In this instance I needed to just display small stars with the post’s rating on main pages with excerpts, and not to allow ratings on these pages.
After digging around on the web for quite some time I found this article:
https://www.tomauger.com/?p=74The following code added into the theme generated stars as required:
$postRatingData = wp_gdsr_rating_article(get_the_ID()); gdsr_render_stars_custom(array( "max_value" => gdsr_settings_get('stars'), "size" => 12, "vote" => $postRatingData->rating ));
Thanks Tom Auger!
You can see the ratings in action below thumbnails on all main pages (not single) at the link below. Settings are as above, with 12px stars.
https://i.padaccessories.info/tag/ipad-cases/Same issue – the link to documentation is broken – Millan, if you read this please update. You could 301 that link to the docs, wherever they are….
At the bottom of the shareaholic settings page you will see the following:
Menu Location (in relation to content):
Above Content, Below Content, Above & Below Content, Manual ModeIf you are adding the call to the plugin manually within your theme then you need to make sure “Manual Mode” is selected – anything else will cause it to display at least twice.
Update – THERE IS NO BUG
I found some code in my functions.php that was adding an anchor to all thumbnails generated by:
<?php add_theme_support('post-thumbnails');
With this removed I no longer have the double anchor issue.
Thanks for an awesome plugin!
update – actually I have just realised this could be because of the way post thumbnails is implemented in the theme… I’m investigating and will update again.