The MU forums have moved to WordPress.org

Plz help me in theme edit ? Regards. (4 posts)

  1. james777
    Member
    Posted 14 years ago #

    Hi,

    I just have a problem with Home menu of my theme .... and this theme is installed on all the sub blogs of the site as well... What I want to do is ....that home menu should make the main blog as home rather than each individual sub blogs ...

    Here are the relevent code...

    `<?php /* If this is the frontpage */ if ( is_home() ) { ?>
    <li class="current_page_item">/">Home
    <?php } else { ?>
    <li class="page_item">/">Home
    <?php } ?>`

    I hope I conveyed what I want ..it seems confusing...as I am confused

    Kind Regards

  2. andrea_r
    Moderator
    Posted 14 years ago #

    That code is on a per-blog basis. So if the same theme is used on all the blog, it will use the home *of that blog* for the home.

    if you want the Home link to go back to the main blog of the entire site, your best bet is to just hardcode the URL in there.

  3. james777
    Member
    Posted 14 years ago #

    @ Angrea_r

    Thanks a lot....

    Regards

  4. james777
    Member
    Posted 14 years ago #

    Sorry.... @ Andrea_r

    Thanks

    KInd Regards

About this Topic

  • Started 14 years ago by james777
  • Latest reply from james777