Changing the Load Order of Theme and Plugin (3 posts)

  1. gavin.ng
    Posted 3 years ago #


    We have encountered an issue while using the Awesome Flickr Gallery Plugin coupled with the Newspress theme.

    The Jquery loaded by the newspress theme causes the lightbox images to be incorrectly displayed as an image in the same page.

    We have determined the problem occurs due to the order that the following items are loaded:

    1. WordPress loads default JQuery
    2. Colorbox plugin loaded onto JQuery
    3. Newspress Theme loaded own JQuery and overrides the default JQuery for its own display.

    Would appreciate if anyone can suggest a workaround to load the Colorbox script after the theme.

    Please click here and scroll to the bottom of the page for the images that are supposed to appear in a lightbox. Thanks.

  2. s_ha_dum
    Posted 3 years ago #

    You will need to find where in the theme that the theme loads its jQuery and remove the call. That is where I would start. Then cross your fingers.

    I have some concerns though. Your theme is loading an older jQuery-- jQuery 1.4.2-- and it is loading a bunch of javascript of its own. If you use jQuery 1.4.2 you may have conflicts with your Colorbox plugin, or any number of newer/recently updated plugins. If you use jQuery 1.7.2, which is what WordPress is loading, you may have conflicts with the theme's scripts which were written for 1.4.2.

  3. gavin.ng
    Posted 3 years ago #

    Hi s_ha_dum, appreciate the input and will give your suggestion a shot!

Topic Closed

This topic has been closed to new replies.

About this Topic