Support » Themes and Templates » Thematic theme – how can I remove “pages” from header?

  • Resolved JG99


    Hello, I am using the Thematic theme.

    When I post a new page, it appears not only in the right margin, but also in the header below the blog title, sorta like this:

    page name

    What I want is for the name of the page name to appear ONLY in the margin on the right, not below the Blog Title. What changes do I need to make in the style sheet to achieve this?

    Thank you very much for your help!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The template tag, wp_list_pages(), is typically used by theme designers to display Pages in a nav bar. With the help of the Template Hierarchy article, determine what Template is displaying your Pages (probably header.php), then look for wp_list_pages and consider deleting that code.

    You might want to backup your files before making changes. See WordPress Backups.

    Thank you for trying to help me. Is the code in here?

    <?php get_header() ?>

    <div id=”container”>
    <div id=”content”>

    <?php get_sidebar(‘page-top’) ?>

    <?php the_post() ?>
    <div id=”post-<?php the_ID(); ?>” class=”<?php thematic_post_class() ?>”>
    <?php thematic_postheader(); ?>
    <div class=”entry-content”>
    <?php the_content() ?>

    <?php wp_link_pages(“\t\t\t\t\t<div class=’page-link’>”.__(‘Pages: ‘, ‘thematic’), “</div>\n”, ‘number’); ?>

    <?php edit_post_link(__(‘Edit’, ‘thematic’),'<span class=”edit-link”>’,'</span>’) ?>

    </div><!– .post –>

    <?php if ( get_post_custom_values(‘comments’) ) thematic_comments_template() // Add a key+value of “comments” to enable comments on this page ?>

    <?php get_sidebar(‘page-bottom’) ?>

    </div><!– #content –>
    </div><!– #container –>

    <?php thematic_sidebar() ?>
    <?php get_footer() ?>

    Look somewhere else–like in your theme’s header.php.

    Here is the list of all available files, I have searched diligently but seem unable to find the line of code you refer to:

    * 404 Template (404.php)
    * Archives (archive.php)
    * Attachment Template (attachment.php)
    * Category Template (category.php)
    * Comments (comments.php)
    * Footer (footer.php)
    * Header (header.php)
    * Main Index Template (index.php)
    * Page Template (page.php)
    * Search Form (searchform.php)
    * Search Results (search.php)
    * Sidebar (sidebar.php)
    * Single Post (single.php)
    * Theme Functions (functions.php)
    * archives.php (archives.php)
    * author.php (author.php)
    * links.php (links.php)
    * sidebar-index-bottom.php (sidebar-index-bottom.php)
    * sidebar-index-insert.php (sidebar-index-insert.php)
    * sidebar-index-top.php (sidebar-index-top.php)
    * sidebar-page-bottom.php (sidebar-page-bottom.php)
    * sidebar-page-top.php (sidebar-page-top.php)
    * sidebar-single-bottom.php (sidebar-single-bottom.php)
    * sidebar-single-insert.php (sidebar-single-insert.php)
    * sidebar-single-top.php (sidebar-single-top.php)
    * sidebar-subsidiary.php (sidebar-subsidiary.php)
    * tag.php (tag.php)


    * Stylesheet (style.css)

    Here is the header.php file:

    <?php thematic_create_doctype(); echo ” “; language_attributes(); echo “>\n”;?>
    <head profile=”″>



    wp_head(); ?>


    <body class=”<?php thematic_body_class() ?>”>
    <?php thematic_before(); ?>

    <div id=”wrapper” class=”hfeed”>

    <?php thematic_aboveheader(); ?>

    <div id=”header”>
    <?php thematic_header() ?>
    </div><!– #header–>

    <?php thematic_belowheader(); ?>

    <div id=”main”>

    The problem with Thematic is that the code seems somewhat different from others themes – I am really having trouble deciphering it!

    Would really appreciate some help here – tearing my hair out on this one!

    Didn’t test this but might try deleting this code in your wp-content/themes/thematic/library/extensions/header-extensions.php script

    <?php wp_page_menu('sort_column=menu_order') ?>
    Justin Tadlock


    WordPress God

    The real problem is that you’ve expended a lot of time and energy on something that’s much better suited for the Thematic support forums:

    The people there will be able to help you a lot more (not that MichaelH doesn’t know his stuff).

    greenshady, the Themeshaper forums have no activity at all – you literally have to wait days for a response!

    MichaelH – thank you for the response, where do I make this change? Do I have to go into cPanel and access the file that way? It is not showing among the choices I listed above.

    Also came across this plug-in. Will it do the job?

    I like to use FTP with FileZilla to make those kind of changes.

    The ThemeShaper forum looks pretty lively from where I’m sitting. 🙂

    Anyway, I thought I answered this one by email. That must not have been you. Here’s what I said.

    You could use the exclude pages plugin

    Or if you want to remove the whole menu you could unhook it (see the ThemeShaper forums or various tuts on ThemeShaper) or just hide it with CSS in your Child Theme — #access {display:none;}

    I hope that helps. Here’s the code I mentioned for unhooking the menu from your Child Theme:

    // Remove default Thematic actions
    function remove_thematic_actions() {

    Good luck.

    Thanks to everyone for trying to help me. I apologize for my lack of knowledge. “Child” themes and the like are not something I am familiar with. I simply would like to change a line or two of code in the “edit” area of Thematic on my blog. The problem with the exclude pages plugin is that it not only removes the pages from the header, it also removes them from the right margin. I want to keep the pages there, but only remove them from the header area. Do I therefore need to modify the stylesheet style.ccs?

    Ian, you said above that I could “just hide it with CSS in your Child Theme” — #access {display:none;}

    So do I put that line of code in somewhere?

    Again, SORRY for my lack of experience/knowledge here! I appreciate everyone’s help!

    Thank you for trying to help me. I attempted to insert this code directly into my theme via my WordPress blog (I am not interested in setting up a child theme). However, it is not working. Could someone please explain where the code goes? Does it go at the beginning, the end?
    Ian said: you can either use #access {display:none} in your child theme’s style.css or if you want to remove it completely add the following code to your child theme’s functions.php:

    // remove thematic_access()
    function remove_access() {
    add_action(‘init’, ‘remove_access’);

    .. and the menu in the header is gone.

    What I want to do is insert one of the two codes above directly into my theme’s functions.php area or the style.css area. Surely this is do-able?

    Thanks again for trying to help me, I appreciate your time.

    I solved it by deleting

    // Create #access
    // In the header div
    function thematic_access() { ?>
    <div id=”access”>
    <div class=”skip-link”>“><?php _e(‘Skip to content’, ‘thematic’); ?></div>
    <?php wp_page_menu(‘sort_column=menu_order’) ?>
    </div><!– #access –>
    <?php }

    from header-extensions.php. (which is found in the thematic files deep in cPanel, not in the blog dashboard!)

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Thematic theme – how can I remove “pages” from header?’ is closed to new replies.