Problem with Multiple Stylesheets
-
Hello,
I have a theme installed that uses multiple stylesheets. The first is the normal style.css. The others are located in another folder and they are for specific elements (nav.css, home.css, print.css).
I want to consolidate them into the normal style.css but I can’t seem to make it work. Any help would be greatly appreciate. Below I’ll paste everything in header.php up to the links to the stylesheet. Thanks.
Frank<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); ?>>
<head profile=”http://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” /><title><?php if ( is_single() ) {
wp_title(”);
echo (‘ | ‘);
bloginfo(‘name’);} else if ( is_page() || is_paged() ) {
bloginfo(‘name’);
wp_title(‘|’);} else if ( is_author() ) {
bloginfo(‘name’);
wp_title(‘ | Archive for ‘);} else if ( is_archive() ) {
bloginfo(‘name’);
echo (‘ | Archive for ‘);
wp_title(”);} else if ( is_search() ) {
bloginfo(‘name’);
echo (‘ | Search Results’);} else if ( is_404() ) {
bloginfo(‘name’);
echo (‘ | 404 Error (Page Not Found)’);} else if ( is_home() ) {
bloginfo(‘name’);
echo (‘ | ‘);
bloginfo(‘description’);} else {
bloginfo(‘name’);
echo (‘ | ‘);
echo (”.$blog_longd.”);
}
?></title><meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” />
<?php wp_head(); ?>
<link rel=”stylesheet” href=”<?php bloginfo(‘template_url’); ?>/style.css” type=”text/css” media=”screen” />
<link rel=”stylesheet” href=”<?php bloginfo(‘template_url’); ?>/css/nav.css” type=”text/css” media=”screen” />
<?php if (is_home() ) { ?>
<link rel=”stylesheet” href=”<?php bloginfo(‘template_url’); ?>/css/home.css” type=”text/css” media=”screen” />
<?php } ?>
<link rel=”stylesheet” href=”<?php bloginfo(‘template_url’); ?>/css/print.css” type=”text/css” media=”print” />
- The topic ‘Problem with Multiple Stylesheets’ is closed to new replies.