• Resolved kendorama

    (@kendorama)


    Hi,

    I just got your tab plugin. It’s very light compared to others I’ve used. I have specific pages in a category where I already have php code in the header to load custom ccs for those pages.

    Is it possible to load the tabby plugin for only these types of pages? I’m guessing that might be even better instead of loading css for tabby on all pages.

    I notice in your documentation you should put the remove_action(‘wp_print_styles’, ‘cc_tabby_css’,30); in the fucntions.php… but I’m lost as to how to go about the whole process of loading everything only on these specific pages in an effort to make my site run as fast as possible.

    Thanks!

    https://ww.wp.xz.cn/plugins/tabby-responsive-tabs/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author cubecolour

    (@numeeja)

    The instruction to unhook the plugin’s stylesheet is included to enable people to use custom styles for the tabs in their child theme’s stylesheet rather than to save bandwidth.

    I am planning to add the feature that the scripts and css are only included on pages where the shortcode is present when I make the next version which should also have improved CSS, however it might be a while before I will be able to find the time to put this together and test it.

    Thread Starter kendorama

    (@kendorama)

    Ok! Thanks for the fast response.

    I changed a few of the styling in the tabby.css but it’s not reflecting. I guess it could be a problem with caching on my server? I’ve purged all cache though.

    I also tried putting the code into the function.php so it wouldn’t call tabby.ccs and then copy the tabby.css code into my broker.css which is called specifically on the only pages on my site that will use your awesome plugin. I couldn’t get it to work so I’m just trying to straight up make the small changs in tabby.css to work.

    Can you see anything wrong?

    http://sparxtrading.com/sample-broker-page

    pwd: saurabh

    Plugin Author cubecolour

    (@numeeja)

    The CSS seems to be loading from a separate file but is being served in minified form, so this is caused by something external to the plugin.

    Thread Starter kendorama

    (@kendorama)

    Yes.

    We use Cloudflare minify CSS/Java options. This shouldn’t change the fact the changes we made to css should reflect. We made font smaller and tab spacing less but it hasn’t reflected yet.

    Any idea or is it a complete server side issue?

    Plugin Author cubecolour

    (@numeeja)

    It is not easy to troubleshoot minified css, so you’d need to take that out of the equation so we can see what css is actually being loaded.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Only loading Plugin on specific Pages’ is closed to new replies.