Support » Plugins » [Plugin: Shadowbox JS] How to use own CSS file

  • Hi there,

    I read in the plugin FAQs that I need to add the following to my theme’s functions.php file in order to use my own CSS file for Shadowbox:

    function custom_shadowbox_css($url) {
        return get_bloginfo('stylesheet_directory') . '/css/shadowbox.css';
    add_filter('shadowbox-css', 'custom_shadowbox_css');

    That is done. But I’m afraid I do not know where I need to save my new stylesheet for it to be picked up. Or do I need to edit the code above for my needs?

    Thanks in advance for any help you can offer.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’ve tried to add the filter as well, but wasn’t able to get the custom css to work. I’ve put my new custom shadowbox in the directory template directory/css/ with no luck.

    Are CarlineElisa and I missing something?


    I have tried for hours now and it doesn’t work for me also.

    Same for here.

    Right, not exactly a solution, rather a hack lol.

    I copied the CSS first, the deleted it from the plugin folder….then uploaded with my edits to my css directory and stuck a direct link to it in my header section.

    Not the perfect solution I know, but a quick fix.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Shadowbox JS] How to use own CSS file’ is closed to new replies.