Important notice: we will respond to all open ticket requests up until November the 1st. After this date, we will be unable to process the ticket requests here on Ticksy.

Okay
  Public Ticket #921950
Own custom.css file - where to add it?
Closed

Comments

  •  2
    Chris started the conversation

    Hi,

    I have an own custom.css file from my previous theme with lots of own defined styles, which I would like to use and adapt to the MOOSE theme.


    I don't want to add all these styles in the CustomCSS options panel of your theme.


    I would like to add/link this own custom.css file exactly where and how, so that it takes effect?
    I put the CSS file in the root of the theme folder.

    Thank you.

  •  1,845
    Elated replied

    Hello there,

    style.css file will be included from the child theme automatically, so install and activate child theme, and then add your css code inside child theme style.css. Note that it is the code from some other theme it probably won't work within Moose theme, or most parts won't work. This is because all theme authors are using theme specific css classes.

    Best Regards!


    The Elated Support Center has been moved to our centralized support platform. 

    Please note that any existing tickets prior to this change will be answered right here on Ticksy, and in due time. 

    If you wish to submit a new support request, for all new inquiries please head on to our Help Center.

    Elated Themes is part of Qode Interactive – the home of 300+ premium WordPress themes.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.

  •  2
    Chris replied

    Hi,

    thanks for your answer, I don't want to use a child theme; I track all my modifications with my Evernote system - that's my way to work and it works fine for years now ;-)

    So could you please let me know, how to enqueue my own custom.css file exactly where? I suppose in the functions.php?
    Thanks.

  •  1,845
    Elated replied

    Hello again,

    Use WordPress enqueue style function https://developer.wordpress.org/reference/functions/wp_enqueue_style/. For example find following line of code inside functions.php file:

    wp_enqueue_style("eltd_moose_default_style", ELATED_ROOT . "/style.css");
    

    and duplicate it and change name and path to your file for example like this:

    wp_enqueue_style("my_moose_custom_style", ELATED_ROOT . "/my-custom-style.css");

    Best Regards!


    The Elated Support Center has been moved to our centralized support platform. 

    Please note that any existing tickets prior to this change will be answered right here on Ticksy, and in due time. 

    If you wish to submit a new support request, for all new inquiries please head on to our Help Center.

    Elated Themes is part of Qode Interactive – the home of 300+ premium WordPress themes.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.

  •  2
    Chris replied

    Thanks a lot, it works fine!!

  •  1,845
    Elated replied

    You're welcome Chris.


    The Elated Support Center has been moved to our centralized support platform. 

    Please note that any existing tickets prior to this change will be answered right here on Ticksy, and in due time. 

    If you wish to submit a new support request, for all new inquiries please head on to our Help Center.

    Elated Themes is part of Qode Interactive – the home of 300+ premium WordPress themes.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.