• Hello,

    I recently stumbled across LightWord and was instantly impressed by its elegant look and flexibility. Still, I would like to customize the theme a little, mostly only adapting colors and such.
    Therefore I wanted to ask if there’s a possibility to add custom CSS code, either via config menu or a separate CSS file which can be uploaded to the theme directory and then chosen with a drop down menu.
    The simple reason for this is that I want to avoid working on the theme’s CSS since these changes usually get lost when the theme is upgraded and have to be redone.

    I’d really love this feature since it would make the theme even more robust. If I did simply overlook it, I’d be glad for any hints where the feature is hiding. At the moment I’m helping myself by adding a <link> element to LightWord’s header.php which is only 1 line to replace when upgrading.

    Thanks for the great theme!
    GangMan

Viewing 4 replies - 1 through 4 (of 4 total)
  • hi

    you can add a few lines of code into your functions.php file that will add your custom stylesheet in the wp_head section, without your having to upgrade header.php each time.

    article:
    http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/

    Thread Starter GangMan

    (@gangman)

    Hi stvwlf,

    thanks for the article. This seems reasonable and is probably more elegant than my solution. Still, if functions.php gets replaced during a theme upgrade (which it usually would since it contains the theme’s version number) I’d have to enter this line again as well. Or am I mistaken?
    I guess the only permanent solution would be for the theme author to add an option to the admin menu that enables you to add a custom CSS file.

    Gangman, I beleive you are correct as far as a new template adding a new functions.php file, which would definitely require you to add the custom CSS code again. However, I am pretty sure that I have seen themes that do in fact add the option to add custom CSS from within the admin menu. You would think that they would all offer that option.

    hi

    In that case you build the code in that article into a simple plugin and execute it that way. That way it doesn’t get overwritten when the theme upgrades.

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

The topic ‘Custom CSS’ is closed to new replies.