WordPress.org

Ready to get started?Download WordPress

Forums

How to delete the name of a menu button that appears on my page? (5 posts)

  1. pinkybo
    Member
    Posted 3 years ago #

    Hi all,
    I installed the Elegant Grunge theme. When I'm on my home page, I see the word "HOME" twice, once in the menu bar and again at the top of the content of my page. This is the case for all my pages, I see the name of the page in the content section of my page, eg "About" & "Contact" also appear as a header for the content on those pages.

    Can someone please tell me how to delete it from the content part of my page. I think it's redundant.

    Thank you

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Try editing your theme's page.php template file and removing the heading code. Or editing your theme's stylesheet and hiding the headings using css.

  3. pinkybo
    Member
    Posted 3 years ago #

    Hi, I was able to make the changes I wanted on the page with a sidebar by commenting out this line:

    <!--
    <h2><?php the_title(); ?></h2>
    -->

    The problem now is that when I try to do the same thing to the page with no side bar, a big grey line appears horizontally across my page. Anyone know why it works on "page.php" but doesn't work the same on "page-no-sidebar.php"?

  4. pinkybo
    Member
    Posted 3 years ago #

    Here's what the "page-no-sidebar.php" file looks like:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  5. tombanh
    Member
    Posted 2 years ago #

    Hi,

    I am using the Mystique theme version 2.4.2 and trying to remove the title in the content through all pages on the site I am working on.

    I looked through page.php; index.php; and header.php but I don't see the "<h2><?php the_title(); ?></h2> for me to remove.

    Your help is much appreciated!

    Tom

Topic Closed

This topic has been closed to new replies.

About this Topic