Jump to content
Sign in to follow this  
words247gmailcom

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

Recommended Posts

words247gmailcom    0
words247gmailcom

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
Simon    247
Simon

Take a look at line 71 of header.php `

Share this post


Link to post
Share on other sites
words247gmailcom    0
words247gmailcom

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
Andrew    201
Andrew

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
words247gmailcom    0
words247gmailcom

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
catrina    103
catrina

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).


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
words247gmailcom    0
words247gmailcom
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
kastelic    6
kastelic

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
words247gmailcom    0
words247gmailcom

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
Simon    247
Simon

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
words247gmailcom    0
words247gmailcom

Thank you so much, Simon! :)

Share this post


Link to post
Share on other sites
catrina    103
catrina

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?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

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  

×