• Resolved Spence911

    (@spence911)


    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?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Hard code it into the theme, would be my first shot.

    Thread Starter Spence911

    (@spence911)

    Thanks for the quick response. But how do i go about that?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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.

    Thread Starter Spence911

    (@spence911)

    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…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Can you link to your site? Or your theme?

    Thread Starter Spence911

    (@spence911)

    Yes I can link t both.

    Thread Starter Spence911

    (@spence911)

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

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

    Thread Starter Spence911

    (@spence911)

    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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Heh. Well that’s why the and/or theme ?? And sometimes an offline site has a mockup I can peek at.

    https://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="https://www.elegantthemes.com/preview/TheSource">
    								<img src="https://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?

    Thread Starter Spence911

    (@spence911)

    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

    Thread Starter Spence911

    (@spence911)

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    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!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Adding Links to Sub-domain Logos’ is closed to new replies.