WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Thematic theme - how can I remove "pages" from header? (17 posts)

  1. JG99
    Member
    Posted 4 years ago #

    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:

    BLOG TITLE
    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!

  2. MichaelH
    Member
    Posted 4 years ago #

    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.

  3. JG99
    Member
    Posted 4 years ago #

    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>
    </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() ?>

  4. MichaelH
    Member
    Posted 4 years ago #

    Look somewhere else--like in your theme's header.php.

  5. JG99
    Member
    Posted 4 years ago #

    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)

    Styles

    * Stylesheet (style.css)

  6. JG99
    Member
    Posted 4 years ago #

    Here is the header.php file:
    -------------------------------

    <?php thematic_create_doctype(); echo " "; language_attributes(); echo ">\n";?>
    <head profile="http://gmpg.org/xfn/11">

    <?php

    thematic_doctitle();
    thematic_create_contenttype();
    thematic_show_description();
    thematic_show_robots();
    thematic_canonical_url();
    thematic_create_stylesheet();
    thematic_show_rss();
    thematic_show_commentsrss();
    thematic_show_pingback();
    thematic_show_commentreply();

    wp_head(); ?>

    </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">

  7. JG99
    Member
    Posted 4 years ago #

    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!

  8. MichaelH
    Member
    Posted 4 years ago #

    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') ?>
  9. Justin Tadlock
    Member
    Posted 4 years ago #

    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:
    http://themeshaper.com/forums

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

  10. JG99
    Member
    Posted 4 years ago #

    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.

  11. JG99
    Member
    Posted 4 years ago #

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

    http://wordpress.org/extend/plugins/pagemash/

  12. MichaelH
    Member
    Posted 4 years ago #

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

  13. Ian Stewart
    Theme Wrangler
    Posted 4 years ago #

    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 http://wordpress.org/extend/plugins/exclude-pages/

    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() {
     remove_action('thematic_header','thematic_access',9);
    }
    add_action('init','remove_thematic_actions');

    Good luck.

  14. JG99
    Member
    Posted 4 years ago #

    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!

  15. JG99
    Member
    Posted 4 years ago #

    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() {
    remove_action('thematic_header','thematic_access',9);
    }
    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.

  16. JG99
    Member
    Posted 4 years ago #

    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 }
    add_action('thematic_header','thematic_access',9);

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

  17. pragomatic
    Member
    Posted 4 years ago #

    The "exclude-pages" plugin creates a check box to exclude pages from all menus. It doesn't allow you to specify header only, or sidebar only.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags