Title: Trying to modify header.php (css)
Last modified: August 19, 2016

---

# Trying to modify header.php (css)

 *  [valkener](https://wordpress.org/support/users/valkener/)
 * (@valkener)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/trying-to-modify-headerphp-css/)
 * I changed the header.php with no results, after a lot of trying and editing I
   sense that there is something wrong.
 * Me changing the css in the header.php didn’t do anything.
    I changed the “style.
   css” to “www.get-into-medicalschool (dot )com/style.css” in the index.php in 
   the rootdir.
 * Consequently the new blog posts, such as [http://www.get-into-medicalschool.com/75-day-mcat-studyguide.html](http://www.get-into-medicalschool.com/75-day-mcat-studyguide.html)
   now use the .css correctly.
 * It seems like wordpress is grabbing all of my <head> from the index.php including
   page title, page menu, metakeywords – which all is dual content. I’m not sure
   why and how I can change this.
 * Here is my index.php code:
 *     ```
       <?php
             require('./blog/wp-blog-header.php');
             ?>
       <!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">
   
       <head>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
   
       <meta name="description" content="shortenedforpost!"  />
   
       	<meta name="shortenedforpost"/>
       	<meta name="robots" content="index, follow" />
   
       <link rel="stylesheet" href="http://www.get-into-medicalschool.com/style.css" type="text/css" media="screen" />
       <!--[if IE]>
       		<link href="all-ie-only.css" rel="stylesheet" type="text/css" />
       	<![endif]-->
       <title>The Underdog's Guide to Medical School</title>
   
       </head>
       ```
   
 * Here is my header.php
 *     ```
       <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
       <?php if (get_option('unnamed_layout') == 0) { ?>
       <link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory'); ?>/two_column.css" />
       ```
   
 * ** However, my posts still all use the default css from the index.php!

The topic ‘Trying to modify header.php (css)’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [valkener](https://wordpress.org/support/users/valkener/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/trying-to-modify-headerphp-css/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
