Adding Links to Sub-domain Logos
-
Does anybody know how to customise the logo url link. To be more specific, i would like all the header logos in my sub domains to re-diret to the main site?
-
Hard code it into the theme, would be my first shot.
Thanks for the quick response. But how do i go about that?
Without seeing your theme, I will use my psychic powers….
Edit header.php
Look for the
<a href...
that wraps around the header.Change the link.
I’ve tried that one already. This is what that bit of code looks like. The “<a href” line you refer to appears on the last line. Everytime I try to post it here, that particular line dissappears, is that supposed to happen?
</head>
<body<?php if (is_home()) echo(‘ id=”home”‘); ?>>
<div id=”header-top” class=”clearfix”>
<div class=”container clearfix”>
<!– Start Logo –>
<a href…Can you link to your site? Or your theme?
Yes I can link t both.
Hi Ipstenu, I hope my last post answered your question. I’m just trying to sort this out and a couple of other loose ends before I open my site to the public. Thanks for the kind assistance thus far.
I think my question was unclear.
Please provide a link to your site, and/or your theme, so we can look at them.
(Also don’t bump you posts. If someone doesn’t reply in 3 hours, it usually means they’re, y’know, busy with things that pay them?)
no no no dude, your assumption is way off. your point was duly noted the last time you made it.your last qustion “Can you link to your site? Or your theme?” was so vague. was just trying to make sure i answered it correctly. Moving on, like i said before your most recent response, my site is currently offline, haven’t made it public yet. Its currently on a local server wamp installation and
Not that i think it would make a diference with the issue at hand, but i will put the site online and add the url link to the header image. It might be a theme issue, TheSource from Elegant themes, if it makes a diff. Its just a major annoyance to have the logo of your main site redirecting to the home page of the currnt subdomain
Heh. Well that’s why the and/or theme 😉 And sometimes an offline site has a mockup I can peek at.
http://www.elegantthemes.com/demo/?theme=TheSource is mostly okay, though as that’s a ‘behind the paywall’ premium theme, it hamstrings me a lot.
On the demo it’s got this:
<!-- Start Logo --> <a href="http://www.elegantthemes.com/preview/TheSource"> <img src="http://www.elegantthemes.com/preview/TheSource/wp-content/themes/TheSource/images/logo.png" alt="Logo" id="logo"> </a> <p id="slogan">the origin of news</p> <!-- End Logo -->
So what’s that section look like in code?
Aaah, finally got it to work. This is what my code looked like before
<!-- Start Logo --> <a>"> <img src="<?php bloginfo('template_directory'); ?>/images/<?php if ( $colorScheme == 'Light'>
I just modified my href attribute coding to match the one you entered and what do you know. Thanks man
Okay here i go bumping posts, that piece of code i refer to disappears evrytime i try to post it. But at least its working now.
Yes, you need to use those magical things called CODE tags 😉 See the button bar above the text entry box? Where is says ‘code’? Use those.
Its also explained just below the text entry box. Use backticks.
Glad it works!
- The topic ‘Adding Links to Sub-domain Logos’ is closed to new replies.