Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6071873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:05:49+00:00 2026-05-23T10:05:49+00:00

I have an education CMS which has been using thickbox throughout for images. I

  • 0

I have an education CMS which has been using thickbox throughout for images. I now want to replace that with colorbox by removing the thickbox class and adding the colorbox class using jQuery. The class replace is occuring, but colorbox will not trigger. If I manually change the class in the CMS it works fine.

jQuery(".thickbox").removeClass("thickbox").addClass("colorbox");

I have moved the call to the replace script above the call to the colorbox script, but still no good.

Any ideas? Does colorbox need the class in the DOM on first load?

Thanks
m

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:05:50+00:00Added an answer on May 23, 2026 at 10:05 am

    I think the problem is in the way thickbox and colorbox are written:

    Colorbox is implemented as a jQuery plugin, which is a bit different (and better) than Thickbox’s sort-of-self-contained widget model. The difference is, where Thickbox would automatically find things with the class of thickbox and apply the effect, Colorbox needs you to tell it which elements to work on.

    You can remove your line:

    jQuery(".thickbox").removeClass("thickbox").addClass("colorbox");
    

    and then, after the point colorbox is included, include:

    $(function(){
        $('a.thickbox').colorbox();
    });
    

    This will initialise colorbox on any links in the page with the class of ‘thickbox’, with the default settings. You can add settings to colorbox by including an object, like so: {key:value, key:value, key:value}. The available settings are on the colorbox instructions page.

    As a jQuery style-point, you shouldn’t ever use a plain class selector jQuery('.something') – this will loop through every element in the whole page looking for that class, which is really slow in older browsers/machines. Qualify the selector with the tag name you want jQuery('a.something'), and/or give the selector context – by including an ID of an element to look inside: jQuery('a.something', '#contentBox') (where you have a `’ containing the stuff you’re interested in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div that contains a slideshow. ( http://film.robinhoodtax.org/issues/education ) I am using
I have been using Java for quite some time, yet my education in loops
I have a class that solves an equation using an approximation, evaluates the approximation
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have a project on distance education system that I have to segment videos
I have a simple data structure Employee Employee has List Education has University, Department
I have a user table that has many columns, it looks roughly like this:
I've got a django project working on a development server(ubuntu) that we have been
I have two tables job which contains an attribute called employer_id_job that links it
I'm developing one web application project using java for education industry.In this Admin have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.