DebT
Forum Replies Created
-
Forum: Plugins
In reply to: Adding CSS into page content in Edit Page?Can you double check your code? When I put this in the header.php I get an error message UNEXPECTED T_STRING in line 30, which is where this code was placed. I don’t understand all the brackets, semicolons etc. so can’t fix it myself. Thanks!
<?php if ( is_page(‘home’,’about’,’contact-2,’work-samplestestimonials’)) { ?>
<link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’) ?>/onecol.css” type=”text/css” media=”screen, projection” />;
<?php } ?>
<link rel=”stylesheet” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” type=”text/css” media=”screen, projection” />Forum: Plugins
In reply to: Adding CSS into page content in Edit Page?I’ve read the Conditional Tags page, but since I don’t know php, I really don’t know exactly what I have to do. I want to make most of the pages in the site to have one column, and keep the 2 columns for the blog page. I can make a style sheet that removes the 2nd column on certain pages. Do I put the conditional tags in the header.php file? If so, do I just replace this:
<!– Stylesheets –>
<link rel=”stylesheet” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” type=”text/css” media=”screen, projection” />with this? If so, did I miss any codes or details in this? I made a “home” page which is the front page, is it correctly called ‘home’ in the tag?
<!– Stylesheets –>
<?phpif ( is_page(‘home’,’about’,’contact-2,’work-samplestestimonials’)) {
<link rel=”stylesheet” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” type=”text/css” media=”screen, projection” />
<link rel=”stylesheet” href=”<?php bloginfo( ‘onecol.css’ ); ?>” type=”text/css” media=”screen, projection” />;} else {
<link rel=”stylesheet” href=”<?php bloginfo( ‘stylesheet_url’ ); ?>” type=”text/css” media=”screen, projection” />;
}
?>Forum: Plugins
In reply to: Adding CSS into page content in Edit Page?Thanks I’ll try to figure that out.