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 8505987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:28:17+00:00 2026-06-11T02:28:17+00:00

I need to add lightbox to a theme instead of using the plugin. I

  • 0

I need to add lightbox to a theme instead of using the plugin. I added it and everything works fine but for some reason close.png and loading.gif images keeps referring to site.com/images/close.png . My lightbox.js is in themes/mytheme/libs and images are in themes/mytheme/images . I have changed lightbox.js as following .

 this.fileLoadingImage = '../images/loading.gif';
  this.fileCloseImage = '../images/close.png';
  • 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-06-11T02:28:19+00:00Added an answer on June 11, 2026 at 2:28 am

    If you are needing to include the full path in your lightbox.js file one way to do it is to follow this example -> Path to WordPress Template Directory inside jQuery?

    You would set the value of a variable to the WordPress template directory in your header.php prior to the inclusion of lightbox.js and then use that variable to produce an absolute path;

     <script type="text/javascript">
         var templateDir = "<?php bloginfo('template_directory') ?>";
     </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am loading images externally using jQuery load function.. but not able add light
I need add new style for some DataGrid rows, depending on variable. For example:
currently i have a project using solr,now i want to add some feature,so i'm
I have over two hundred web pages that need a lightbox added to them.
i need Add Row Numbers To a SELECT Query without using Row_Number() function. and
I am using this query to get all the data but I also need
I am working on editing a template where I need to add a Lightbox
I need add some files in my application and this files must be unpacked
I would like to use CNF in my RCP application, but I need add
For tomcat-maven-plugin I need add following block into settings.xml <server> <id>myserver</id> <username>myusername</username> <password>mypassword</password> </server>

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.