Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello 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 (https://www.inmypad.com)

    Thread Starter hardi

    (@hardi)

    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?

    Thread Starter hardi

    (@hardi)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)