.
2:22 pm
I noticed that in v1.2 you added the option to load scripts only if the buttons are visible on the page. I still see the scripts being loaded on non-post pages. What I would like to do is have the scripts load only on the single.php template page. Is this possible?
Did I do something wrong or am I misunderstanding what the update is about?
This is a generic plugin. Meaning it can be used on any circumstance. Thats why I did not add an such options to add conditional scripts based on which page/post is displayed.
If you want to load the scripts only on single post/ page then
search for the below function (line 99)
======================================
function social4i_css() {
change that to
=====================
function social4i_css() {
if(!is_single() && !is_page())return '';
< My Domain Names Generator tool crossed 50,000 page views. If you haven't tried yet, then try it out. />
5:35 pm
What was the text in the v1.2 update refer to?
Added option to load script only if the associated button is used on the site. (No more unnecessary loading of scripts)
There was an issue with the plugin earlier. All scripts were loaded with your page whether or not you are using the button on your site.
Some people have complained about this. Like they were not using the linkedin button but still the scripts were getting loaded. So I added an option which checks whether you are using the button on your site or not and accordingly loads the script.
< My Domain Names Generator tool crossed 50,000 page views. If you haven't tried yet, then try it out. />
1 Guest(s)