-
-
Hello,
I am building out a site that is a subdomain for another site.
I would like to have the subdomain Logo to link to the homepage of the domain (when clicked) rather than a homepage on the subdomain website. How can accomplish this? I do not see where I can modify the logo link.
Please advise.
Thank you
-
Hello,
To change the logo link go to Settings > General > Site Address (URL). Set the link you want the logo to point to, here.
Best regards!
-
Confused, if I change the site address you URL, does that impact getting to the subdomain? I thought the WordPress URL and Site URL must be the same?
-
Hello,
It’s not essential for the WordPress URL and Site url to be the same. You can have a different site url in case you want to direct the site to another sub-domain. But however, it is true that it will impact somehow the sub-domain. Unless you set a fixed home page.
Anyway, if you feel more comfortable editing directly the logo link in the theme code, then just go to file
functions-specular.php
and find these lines:
$logo = "<a href='".esc_url(home_url('/'))."'>".$logo.$logo_light."</a>";
And this:
$logo = "<a href='".esc_url(home_url('/'))."'>".$logo."</a>";
edit to this:
$logo = "<a href='https://mysite.com'>".$logo.$logo_light."</a>";
And this:
$logo = "<a href='https://mysite.com'>".$logo."</a>";
Replace the test link with the link you want the logo to have.
Best regards!
-
You must be logged in to reply to this topic.