• Resolved steevithak

    (@steevithak)


    I’ve created a custom theme for simple lightbox and have been successful at modifying the CSS this way but haven’t been able to figure out how to replace the next/prev button images. I’ve created new images, given them the same names as the originals, and placed them in my SLB theme’s “images” directory. But this doesn’t seem to be enough to make SLB use them. What else do I need to do? Do I need to add something to my theme’s main.php file? If so, an example would be appreciated!

    https://wordpress.org/plugins/simple-lightbox/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter steevithak

    (@steevithak)

    Further information. The CSS file in my theme has the next/prev images specified as “../images/nav_next.png” but when I inspect the actual, loaded page, it’s using the nav_next.png from the SLB plugin directory rather than the one in my theme plugin directory.

    What’s weird is I was able to swap out the loading.gif file this way with no problem and it loads the new one from my theme images directory. It appears something more is needed to make the theme use alternate next/prev images but I can’t figure out what.

    Plugin Author Archetyped

    (@archetyped)

    Hi, please provide a link to a page that exhibits the issue you are experiencing and I would be glad to take a closer look.

    Thread Starter steevithak

    (@steevithak)

    I found the problem. I had copied the CSS styles for the next/prev images from the “black” theme but they are completely different from the styles in the “default” theme. The “black” styles don’t seem to work. But when I swapped to the ones in the default theme, it started picking up the images correctly. Not sure what that means because I actually based my theme on the “black” theme, so I expected those styles to be the ones I needed. But it seems to be working now in any case.

    Plugin Author Archetyped

    (@archetyped)

    Glad to hear it 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to replace next/prev buttons?’ is closed to new replies.