GD Booster

This topic contains 7 replies, has 2 voices, and was last updated by  Paolo 10 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #32223

    lucyinhcm
    Free User
    Post count: 34

    Hi guys,
    I’ve just replaced W3 Cache with GD booster. However, when it is enabled, the format of my website seems to go all over the place. With things appearing where they shouldn’t. It may be an issue with my theme template again, but I wonder if you could take a look please?

    I will send my login details on a new message.

    Many thanks.

    #32225

    lucyinhcm
    Free User
    Post count: 34
    This reply has been marked as private.
    #32298

    Paolo
    Site Admin
    Post count: 31211

    Hi Lucy,

    please check now, it should be fixed.

    The script “Raphaël 2.1.0 – JavaScript Vector Library”, didn’t like to be concatenated with other scripts, so we excluded it from GD Booster concatenation.

    Let us know,

    Thx

    #32356

    lucyinhcm
    Free User
    Post count: 34

    Hi Paolo,

    It is mostly working, but the map is now not loading on the directory page. Thanks.

    #32358

    lucyinhcm
    Free User
    Post count: 34

    In fact it’s not working. There is a strange box appearing on the left hand side of the homepage, and one of the widgets in the left hand column has been dislodged. I have attached a screen shot.

    #32387

    Paolo
    Site Admin
    Post count: 31211

    Hi again,

    we didn’t notice yesterday, but there is a js error in the theme even with GD Booster not active.

    It wont work if you have errors, actually it will only make it worse.

    A check needs to be added in the theme script to check if the thing it is trying to get exists or not, otherwise if any plugin adds a sidebar with a different class than what used by the theme, the script will return an error.

    this is the culprit.

    bl    = $(".widget-bar")

    If wdget-bar does not exist it breaks

    It is part of this code :

    
    
    var $bl    = $(".widget-bar"),
            $th    = $(".container-widget"),
            blW    = $bl.outerWidth(),
            blSW   = $bl[0].scrollWidth,
            wDiff  = (blSW/blW)-1,  // widths difference ratio
            mPadd  = 60,  // Mousemove Padding
            damp   = 20,  // Mousemove response softness
            mX     = 0,   // Real mouse position
            mX2    = 0,   // Modified mouse position
            posX   = 0,
            mmAA   = blW-(mPadd*2), // The mousemove available area
            mmAAr  = (blW/mmAA);    // get available mousemove fidderence ratio

    Simply adding this check on top of it would stop it in case the element doesn’t exist and would not return an error:

    if($( ".widget-bar" ).length){}else{return;}

    Usually it would just break the rest of that single script but with GD Booster it will break every script that comes after becasue it’s all in the same file.

    Thanks

    #32449

    lucyinhcm
    Free User
    Post count: 34

    Hi Paolo,

    Thank you, that is really helpful. Only problem being that I have no idea where to find that code?!

    I have looked right through the editor section of my wordpress, and just cannot find the right place to put the check? Is it possible for you to tell me exactly which section it’s in. Or if it is less time consuming, just pop it in for me?

    Really grateful for all of your help!

    #32550

    Paolo
    Site Admin
    Post count: 31211

    Hi Lucy,

    the idea was to pass this info to the theme developer, because if you make the change directly on your website, after the next time you update your theme, the problem will popup again.

    in any case the file is: wp-content/themes/fullby-premium/js/fullby-script.js

    Thx

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount