WordPress.org

Ready to get started?Download WordPress

Forums

Remove default "Home" tab in Mantra theme (12 posts)

  1. ChrisNYC12
    Member
    Posted 2 years ago #

    Currently using the Mantra theme for my page, which comes with a default "Home" tab on the navigation panel. I've tried, by trial and error, removing pieces of header.php to remove this default tab but haven't been able to. Am I doing something wrong?

    Reason I'm trying to remove it is so I can have a static home page (which is why I have to get rid of the default one). Below's a link to the header.php info. Thanks for your help!

    http://pastebin.com/b008ZwP0

  2. Please provide a link to your site.

  3. ChrisNYC12
    Member
    Posted 2 years ago #

  4. So what page do you want to set as the home page?
    I think that you need to create that page and then go to settings > reading select that page to be your home page.

    Either that, or go to appearance > menus and set the menu however you like.

  5. ChrisNYC12
    Member
    Posted 2 years ago #

    When I try removing that tab in Appearance > Menu, it removes the drop-down capability of the other tabs (Investment Education, for example). That's something I really like about this theme.

    I plan on creating a separate "Home" page to set as my home page, which is why I need to delete this default one which I'm unable to make static.

  6. I plan on creating a separate "Home" page to set as my home page, which is why I need to delete this default one which I'm unable to make static.

    What do you mean? Right now your homage page is set to the blog. Go to page, add a new page call it home. Add your content. Then select that page as your home.

    When I try removing that tab in Appearance > Menu, it removes the drop-down capability of the other tabs (Investment Education, for example).

    That makes no sense. Removing one tab should not affect the dropdowns.

  7. ChrisNYC12
    Member
    Posted 2 years ago #

    You're right! Before just "added" a page called home and it's no longer appearing as a duplicate. Idk why it wasn't working before..

    One last question..how can I remove this text from appearing below the Comments box:

    `<a href="" title=""> <abbr title=""> <acronym title=""> <b>
    <blockquote cite=""> <cite> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>"
    Also, how can I get rid of the comments box for the home page? I want to make it look more like a site, and less like a blog. Thanks Christine!

  8. Try adding this at the bottom of your stylesheet.

    .form-allowed-tags {display:none;}

  9. kento1
    Member
    Posted 2 years ago #

    If I can jump in. This was great advice for fixing the double "home" page problem, but now new posts seem to go to the default home page (i.e., nowhere, although I am able to find them) rather than the visible home page. How do I change the post routing?

  10. Ksavins
    Member
    Posted 2 years ago #

    I created a category called "latest news", then created a page called "latest news". The slug in the page is also called latest news

    Then from the main menu in wordpress
    Settings / Writing / drop down box choose category "latest news".

    Everything (ie blog posts) now go to that page instead of the home page

  11. cgonzo
    Member
    Posted 1 year ago #

    Hi,

    I'd just like to get rid of that home tab on the nav bar.
    Here is my website http://daily-income-payouts.com

    this is what it looks like in menu

    <?php /*** The theme header.*/ ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php
    	global $page, $paged;
    	wp_title( '|', true, 'right' );
    	bloginfo( 'name' );
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'pujugama' ),
    max( $paged, $page ) );

    What part do I need to fix and how to I fix it?

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    Please post your own topic.

Topic Closed

This topic has been closed to new replies.

About this Topic