WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] [Theme: Hey Cookie] ie.css is defaulting all browsers (2 posts)

  1. Fishback
    Member
    Posted 2 years ago #

    Looking at Hey Cookie 1.2.9 where header.php has ie.css come in if LT IE 9:

    <!--[if lt IE 9]>
    	<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/iecolors.css"/>
    	<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/ie.css"/>
    <![endif]-->

    But then functions.php always brings in ie.css so IE css are tweaks are being made in all browsers. The option to bring in media.css is commented out.

    /*if( isset( $hey_cookie_responsive ) && $hey_cookie_responsive == 1 ) {
    		wp_register_style( 'hcmedia', get_template_directory_uri() . '/media.css' );
    		wp_enqueue_style( 'hcmedia' );
    	}
    	else {*/
    		wp_register_style( 'hcmediaie', get_template_directory_uri() . '/ie.css' );
    		wp_enqueue_style( 'hcmediaie' );
    	//}

    The problem with having ie.css come in with functions.php is that the custom css field is brought in ahead of functions.php, so ie.css is wiping out some of my customizations under Theme Options.

    In effect, ie.css is the last executed and default css for the template, so I have to make modifications to it for some customization.

    Otherwise, still enjoying the theme on GraphicJoke.com

  2. Fishback
    Member
    Posted 2 years ago #

    Moderator: This is a duplicate. I did not realize I posted the issue prior. Can this be deleted?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags