WordPress.org

Ready to get started?Download WordPress

Forums

Add support for site-specific css file? (1 post)

  1. broofa
    Member
    Posted 5 years ago #

    Hi, I've really been enjoying the inove theme. It's been a great starting point for a blog I've been working on ( http://blog.bendtech.com if you're curious). Many thanks!

    One not too-surprising problem I've run into is that it's difficult to upgrade the theme without clobbering the various customizations I've made to style.css. To get around this, I've added the following code snippet to start.php, right below where the default stylesheet (style.css) is imported:

    <?php if (file_exists(TEMPLATEPATH.'/style_site.css')) { ?>
    <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style_site. css" type="text/css" media="screen" />

    This allows me to implement my CSS customizations as overrides by simply adding a style_site.css file instead of editing style.css. Hopefully this will make upgrading the theme much easier in future versions.

    Anyhow, though you might be interested in possibly adding this to the inove theme codebase.

    Cheers,
    - Robert

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags