I am using Blogs MU on a subdomain on my main site. I need the "Home" link in my Blog MU installation on this subdomain to point back to the home page of my main domain. How do I change it such that it does? Thanks.
I am using Blogs MU on a subdomain on my main site. I need the "Home" link in my Blog MU installation on this subdomain to point back to the home page of my main domain. How do I change it such that it does? Thanks.
@jlindsey: Edit navigation.php at the top to change the link.
What is the syntax need for this change?
Do I change
" title="<?php _e( 'Home', TEMPLATE_DOMAIN ) ?>"><?php _e( 'Home', TEMPLATE_DOMAIN ) ?>
to read
"><?php _e( 'Home', TEMPLATE_DOMAIN ) ?>
It didn't work. The home link still pointed to the homepage of the subdomain.
Help.
@jlindsey: You need to change where it links not what the link says:
<?php echo site_url() ?>
This is what needs to be changed to point to your domain link ie:
Hello Tammie,
You still have not told be where to place the code. Assume that I do not know much about php.
Where do I place my site's url within the following code from the navigation.php file?:
"
Do I place it as follows?:
I have tried several placements, but none of them wortked.
Please show me precisely where to place my site's url.
I sincerely appreciate your help.
@jlindsey: I think something went odd with your insert there as half that message isn't showing up. That aside I did direct you to navigation.php and the first instance of the following piece of code:
<?php echo site_url() ?>
As for what you put there... it could be anything I haven't a clue what your domain is so can't say. Just change the FIRST occurrence on that page you see of that to whatever your full path is and it will work - as I've said.
When you paste code please use backticks for this forum as I assume that was what you were trying to paste?
open navigation.php and in line 69 you should see code like
< a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', TEMPLATE_DOMAIN ) ?>"><?php _e( 'Home', TEMPLATE_DOMAIN ) ?>< /a >
change the bold text to your main site url started with http :/
or edit it to <?php echo site_url(); ?>
Thanks Richie. It worked! You're an angel! I had been changing the wrong line. I was changing <?php echo site_url() ?>. I should have been changing <?php echo get_option('home') ?>.
You must log in to post.