WordPress.org

Ready to get started?Download WordPress

Forums

How to remove Home Tab from Header (4 posts)

  1. cgonzo
    Member
    Posted 1 year ago #

    I'm not a word press wiz. I'm trying to get rid of the home tab, and just keep my other pages on the nav bar. Is there away I can delete the home tab that just shows posts?

    http://daily-income-payouts.com

  2. James Kirk
    Member
    Posted 1 year ago #

    Hey cgonzo,

    Unfortunately for you, the developer of that theme has hard coded the "Home" link to always show first. I downloaded the theme and installed it on a test site of mine to see if simply creating a menu and not using the "Home" link would work for you. But, alas, no.

    Your only real option is to simply comment out the code which displays the "Home" link. If you are comfortable doing that, simply comment out line 31 in the "header.php" file in that theme. You can do this either via the WordPress admin backend under the "Appearances" tab or via FTP and uploading the header.php file back to your theme directory with the other pujugama files.

    Line 31, after commenting should look like this:

    <!-- <a href="<?php echo home_url( '/' ); ?>" class="pjgm-home" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php echo __( 'Home', 'pujugama' ); ?></a> -->

    Hope this helps!

    Cheers! :)

  3. cgonzo
    Member
    Posted 1 year ago #

    Hi James..(Captain Kirk?)

    Thank you for responding so quickly. Okay let's see if I have this correct. Under the Appearances tab (WordPress admin backend is what I'll do) Because I'm not all in with the WP lingo, I'm going to assume (bad choice of a word) that just enter what you posted after Line 31.

    Fingers Crossed

  4. James Kirk
    Member
    Posted 1 year ago #

    Hey cgonzo,

    Sorry, my bad language there.

    You want to REPLACE the current line 31 with the one above. Essentially you are "commenting out" that line. In HTML, you comment a line (meaning it no longer is active on the display page so it won't be seen!) by adding the left bracket, an exclamation mark, and two dashes and a space in front of the code. Like this:

    <!--

    Then after the code (the end of line 31) you add a space, two dashes and a right bracket. Like this:

    -->

    Oh, and under Appearances is the Editor option. You'll go there, choose "header.php" on the right side. That is where you'll edit the line 31 as above.

    Hope that gets you there!

    Cheers! :)

Topic Closed

This topic has been closed to new replies.

About this Topic