Forums

SiteWide Pages & Theme (3 posts)

  1. tue.nielsen
    Member
    Posted 3 months ago #

    Hi,

    I want to create a website for a company that have different branches.

    i therefore created a subdomain for each branch.

    I want to show some of the information from the main website on the subdomains.

    So my question is: Is there a way to have sitewide pages?

    I for example want to have the "Contact" information the same on all subdomains and the main site.

    Is there also a way to use the same theme on all subdomains?

    Thanks
    Tue Nielsen

  2. andrea_r
    Member
    Posted 3 months ago #

    Place the theme you want used for everyone in the "default" theme folder instead of the one that is there.

    OR

    use the New Blog Defaults plugin to pick that theme as the default.

    to show the same pages navbar, edit the theme's header.php. just before the nav bar code put

    <?php switch_to_blog(1); ?>

    right after the navbar code put

    <?php restore_current_blog(); ?>

  3. tue.nielsen
    Member
    Posted 3 months ago #

    Hi, Andrea.

    Thanks for your answer. But this is not quite what i was looking for. But close.

    If you use <?php switch_to_blog(1); ?> then it will only show pages from the main blog and not the pages from the sub-blog. Furthermore if you click on a link, you will be redirected to the main blog instead of staying on the subblog.

    I want the user to keep staying on the sub-blog regardless of what they click in the menu.

    -Tue

Reply

You must log in to post.

About this Topic