• Howdy,

    I’ve been asked to redesign a wordpress powered site loosely based on the default theme- the owner had had some previous help modifying some of the templates and css. I’m trying to go in now and futz with the header (mostly I would like to just move the menu list around) but I’ve found that I cannot get to it via the header.php file. In fact, when I go through it, I find within it header.php has been called up as an include… how does this even work? Moreover, where can I get at the include so I can edit it?

    The code of my header.php template looks like this:

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    ?>
    <!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 wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="stylesheet" type="text/css" media="screen" href="/assets/style/shared.css" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    
    <?php wp_head(); ?>
    </head>
    <body  id="page<?php echo rand(0,2); ?>" class="sidebar">
    <div id="container">
    	<?php
    	include('templates/header.php'); ?>

    If this is a really dumb question I’m sorry, I’m still new to php!

    Thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try looking in the templates sub-folder via FTP.

    Thread Starter ravenwilde

    (@ravenwilde)

    bummer… I was hoping it wouldn’t come down to that. The site owner is completely tech illiterate and explaining this is going to be difficult 😛

    Thanks for the quick response though! 🙂

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

The topic ‘header.php as an include within header.php ??’ is closed to new replies.