Custom Stylesheet?

Discussion in 'ColorWay WordPress Theme' started by randyfraser, Jun 26, 2013.

  1. randyfraser

    randyfraser New Member

    Joined:
    May 31, 2013
    Messages:
    4
    Likes Received:
    0
    I have a client for which I will be significantly modifying one of the color stylesheets. Is there a way to create and name an entire new stylesheet and have it be available under the dropdown color selection in the admin back end, under Theme Options > Styling Options > Theme Stylesheet? I created a new one in the same css directory, but it doesn't automatically pick it up. Thanks!
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to Funtions > theme-option.php present in your theme directory and call your new color stylesheet there.

    For example

    If your new color stylesheet name is "orange.css"

    Then, add the following code given below in your theme-options.php

    Code:
    "orange" => "orange",
    Sending image for reference
    2013-06-27_1703.png
     
  3. randyfraser

    randyfraser New Member

    Joined:
    May 31, 2013
    Messages:
    4
    Likes Received:
    0
    Hi Gourav-
    Thanks for the quick reply. I'm curious, will this edit get overwritten when we update the theme? If so, I guess I'll just have to do a child theme, yes?
     
  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,
    You have to create all these changes manually again when you update your Theme because child theme only works with the parent directory , it will not work with the sub directory (i.e Funtions > theme-option.php).
    So, we would like to suggest you that you have to save all your changes in the file on your system and always replace them after updating the theme.
     

Share This Page