Home Page link to 'child blogs' (5 posts)

  1. devil7
    Posted 5 years ago #

    Hi All
    I have a 'Home Page' link on my theme for the child blogs, (all going to use the same theme)
    What code can i put there so when the user clicks 'Home' it goes to THAT child blogs home page, not the root folder which is the parent blog, any ideas would be appreciated!!

    Thank you

  2. What code is there now? Cuz if it's the simple php that leads to the blog url, that works for all subsites.

  3. devil7
    Posted 5 years ago #

    Hi Andrea.
    Nothing at the moment, it's come from a single WP blog we did earlier in the year and just using same template for their multi sites (to which i'm new to)

    There was just a / there before, but obviously that takes it to the root, not the 'home page' of that sub site

    Thanks again!

  4. In the template file, it should be something like:

    <a href="<?php bloginfo('url'); ?>"><?php _e('Home'); ?></a>

  5. devil7
    Posted 5 years ago #

    Hi Andrea.
    That's worked a treat, thanks ever so much!!!


Topic Closed

This topic has been closed to new replies.

About this Topic