• 0
Sign in to follow this  
Followers 0

EcoPro + WP 3.0 multisite -- How to create default home page link for network?

Question

Posted · Report post

So, there is the Network home page, which is THE main home page, and then there are individual sites within the network. Currently, there is no way for a VISITOR to get back to the Network home page when in one of the sub-sites other than typing the URL into the address bar. At a WordPress forum, I was told to look for the header php file and where there is a reference to the blog url, changing it to the Network URL home page would make that a default for the sub-sites as well. I found the header.php code for my EcoPro install, but I'm not comfortable changing anything. I see RSS code url but I don't see anything I'm comfortable changing that would make a home page a network-wide default. Can someone advise how to do this? Whether via a menu tab or a logo hyperlink, I need for visitors to the site to be able to get back to the Network home page, after they've visited any of the sub-sites.

Share this post


Link to post
Share on other sites

11 answers to this question

  • 0

Posted · Report post

Take a look at line 71 of header.php `

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks, Simon, but could I trouble you to be more specific? I'm a newbie and can edit existing code but rarely know how to insert new. What exactly would I insert there to indicate that a certain menu tab on each site takes people back to the Network home page? :)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

You could just add a static link, with whatever text you want, and it would take them where you want. Multisite is generally an advanced type of customization. Do you have a specicif technical feat you'd like to achieve?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi, Andrew. My goal is to make it so visitors to the network can always get back to the Home page of the network itself. Say they visit the network for the first time -- myblogsite.com -- and then they check out some of the blogs at the network (myblogsite.com/JohnDoe, myblogsite.com/JaneDoe). I want there to be a default way for site templates for them to click either a logo or menu tab that takes them back to the Network home page. I realized overnight that doing this in EcoPro is a mute point, as I don't plan for this to be used as a site template. It's the Network template instead. Sorry for the confusion (but I'm very confused! LOL). :)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

So you want to create a site template for the blogs in your network that will include a logo/menu tab in a specific area on the page? If the network home page is something like a "splash page" for visitors to see, perhaps that can be a static page (unless I'm understanding you incorrectly).

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

There would be a better way of doing it with if you search for adding a home link to wp_nav_menu using add_filter, then dropping the file into mu-plugins to have it loaded on every blog automatically, but that's a bit more advanced.
Hi, Everyone who replied above. :) Simon, this sounds like what I want, but it also sounds like I can't do it myself. Oh well... I was hoping to have an automatic way of making sure that whatever theme is installed on a new user site in my network, it would have a link back to my network home page. I'm thinking that selecting one theme that has a few style variations is the way to go. That way I can figure out (!) how to insert the code for a link back to the Network home page. Catrina, you're right. It is a landing page of sorts. But I am SO in love with EcoPro and have been for a long time, that I'm desperately trying to figure out how to use this for that Network "portal," so to speak. :)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

You say it could be a menu tab? Why not just make a custom menu tab (Assuming you are using a custom menu from Appearance -> Menus), title it how you want, and paste the full url of your main site into its url field?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi, Jimmy :) Yes, I guess that's what I will have to do with each new user site. Go in and create that custom tab back to the Network home page. I was just wondering if there was an automatic way of doing this...within a theme's code or something. As you can tell, I am NOT a programmer, so I don't understand what all can and can't be done...easily, at least. Thanks! :)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Here is a code snippet http://pastebin.com/86xZDY6p Create a php file in your mu-plugins folder and paste the code into it. It will automatically be included in every blog.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I was just wondering if there was an automatic way of doing this...within a theme's code or something. As you can tell, I am NOT a programmer, so I don't understand what all can and can't be done...easily, at least. <- Have you considered using Custom Menus?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0