• Resolved khlota

    (@khlota)


    I am working off of the Modmat template. I have added the pages that I want for my navigation but I want to remove the ‘home’ link altogether. I see where I can change the ‘home’ link to something else – like ‘about’ – but then I don’t know how to change the actually function of the link to go to the about page. Is this possible or should I live with the fact that I have to have a home link? Not the end of the world but…..

Viewing 9 replies - 1 through 9 (of 9 total)
  • A link to your site might help…

    Thread Starter khlota

    (@khlota)

    Agreed. I was never a fan of the home button, always preferred to have the logo be that link but maybe I am better off keeping it.

    No – I meant, can you post a link to your site?

    Thread Starter khlota

    (@khlota)

    via comments, posts, etc… yes, but I am not sure why you ask? ??

    On another note (there will be so many) I am now wondering how to individually space out/pad my navigation items (which, duh, i found right in the admin control panel). It’s confusing to me since I can’t see these items individually. The image in the code is 4 nav bars. I need to space out each nav item differently to lay on top of this image correctly…..The CSS looks like this…

    div#access{ background-image:url(‘images/nav-blue-four.png’); width: 323px; height: 23px; margin: -2px 0px 0px 505px; }
    div#menu{
    font-size:12px;
    height:69px;
    overflow: hidden;
    }
    div#menu ul{ width: 400px; height: 100%; margin: 0px;}
    div#menu ul li a{ font-weight:bold; text-decoration:none; color: #6b3d07; padding: 6px 5px 0px; margin:0px; display: block; border: 0px!important;}
    div#menu ul li{float:left; list-style:none;}
    li.current_page_item a{ font-weight: normal; color: #6b3d07!important;}

    Until I can actually see your site, I can’t offer much help. Until you tell me where it is, I can’t see it…

    Thread Starter khlota

    (@khlota)

    But it’s a secret ??

    I am using this space just for testing. I own the domain associated with the design and when ready I will transfer and host accordingly.

    https://myownway.com/blog/

    Well, it it helps any, I’m good at keeping secrets. ??

    Are you using wp_list_pages or wp_page_menu? If it’s the latter (and I’d guess it is), wp_page_menu('show_home=0') should remove the Home page from the list of generated links.

    Given that you have a 4 tab limit on that menu, I’d recommend that you also use the include parameter to limit the display to just those 4 pages via their ids:

    wp_page_menu('show_home=0&include=2,5,7,8')

    Once that’s done, it would be a case of using CSS to re-adjust the list margins but I’ll have a better idea of how to do that once you’ve reduced those top links to just the final 4.

    Thread Starter khlota

    (@khlota)

    You are quite helpful ?? And I am quite thankful. Now I am undecided about the navigation. Even though I mis-interpreted what you said earlier, I do think I should have a ‘blog’ button now. I just need to decide on the fate of the others. I think it’s fine to combine ‘about’ & ‘contact’, do you? I’m going to go with that for now…. so, that CSS adjustment, whenever you are ready.

    I have so many more questions for you!

    You can also try deleting this line of code:

    if ( !is_front_page() ) { ?><li class="page_item_home home-link"><a href="<?php bloginfo('home'); ?>/" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?>" rel="home"><?php _e('home', 'plaintxtblog') ?></a></li><?php }

    From your theme’s functions.php file. I am using the simplr theme and this worked for me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Remove ‘Home’ link’ is closed to new replies.