• Resolved cableghost

    (@cableghost)


    I am using a theme that gets periodic updates. I also have made several modifications to the theme’s stylesheet. My problem is that on every theme update, I must go back into the stylesheet and re-modify the css.

    I am therefore, trying to generate a modification-only stylesheet that my theme will recognize and will use the modified code over the standard stylesheet.

    Below is the theme’s stylesheet section in the header, with my modifications stylesheet as the last bit of code (scotts.css).

    I cannot get this to work…any ideas?

    <!--
    Stylesheet
    ~~~ -->
    
    <?php if (function_exists('hmt_extras')) { 				// Extras plugin? Then go get the css ?>
    	<link rel="stylesheet" href="<?php bloginfo('wpurl'); ?>/wp-content/plugins/heatmap-extras/menu.css" type="text/css" media="screen" />
    <?php } ?>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    <?php if (!function_exists('hmt_child_theme')) { 				// If there is no child theme then grab the default.css instead ?>
    	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/default.css" type="text/css" media="screen" />
    <?php } ?>
    
    <?php $stylesheetfile = STYLESHEETPATH . '/css/scotts.css'; ?>
    <link rel="stylesheet" href="<?php echo $stylesheetfile; ?>" type="text/css" media="screen" />

    -Scott

Viewing 2 replies - 1 through 2 (of 2 total)
  • As far as I can tell is the closing php tag part of the comment, and therefore the <link thingemy isn’t recognized as html.

    Peter

    Thread Starter cableghost

    (@cableghost)

    Thanks Peter, though that was not it. For others, I had to make the following edit:

    <?php $stylesheetfile = '../css/scotts.css'; ?>
    <link rel="stylesheet" href="<?php echo $stylesheetfile; ?>" type="text/css" media="screen" />

    -Scott

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

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