hardi
Forum Replies Created
-
Forum: Plugins
In reply to: “Share This” (plugin) & “iMP Auto Slimbox” (plugin) JS ConflictHello all,
I’m the author of iMP Auto Slimbox plugin. And onlycodered it’s true, i’m also using ShareThis plugin too in my website.
For someone that having this problem, try to reordered the js insert code. So js code for iMP Auto Slimbox comes first than ShareThis js code. For the details please check my website source.
By the way, the conflict is between javascript. Cause Slimbox is using mootools and ShareThis is using prototype with small code insert by the author.
Best regards,
Hardi P (http://www.inmypad.com)Forum: Fixing WordPress
In reply to: How to add_action just when the plugin works??Uhmm.. Maybe the standard add_action or add_filter outside function like you said is the best for now.
Or maybe someone can do this?
Forum: Fixing WordPress
In reply to: How to add_action just when the plugin works??Of course i have <?php wp_head(); ?> in my header.php.
Update:
add_action(‘wp_head’, ‘add_css’); works well in page and single post but not works in frontpage and archive page@otto:
a. Yups the function is called cause that function is find and replace in the_content section.Example in my plugin:
function insert() {
preg_match(bla..bla..bla..)
and
replace(bla..bla..bla..)
add_filter(‘wp_head’, ‘add_css’);
}
add_filter(‘the_content’, ‘insert’);I want this cause i don’t want to make the page size bigger with that css when the html doesn’t need it. Big page size it’s mean slow page loading.