badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

How is style.css called by Interface?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26829
    alexnicol
    Participant

    I’ve edited the style.css to my own colours etc, but I would now like to have a different stylesheet depending on the category the user is browsing. Previously I would achieve this with an if else statement and two stylesheets. I cannot seem to find where style.css is called by this theme and therefore cannot wrap an if else around it.

    So. Questions:-

    1. Where is style.css called by the template?

    or

    2. How would you recommend I do this with your own custom css section in the dashboard? The site is green by default, and I wish it to become blue when someone is reading the foo.tld/blue/x /y /z pages, then go green again when they are reading the foo.tld/green/x /y /z pages.

    Thanks in advance

    Kindest Regards

    Alex Nicol

    #26843

    Hi alexnicol,

    This feature is not available in our theme. It needs code customization and you need to hire a developer. The style.css is called using action hook
    Goto theme folder -> inc -> functions -> functions.php on line no 28 you will find the stylesheet code
    wp_enqueue_style( 'interface_style', get_stylesheet_uri());

    Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.