Hi,
I really need help here,
I need to remove the hyperlink from my blog logo/site title, or change the destination…preferably change the destination.
Right now when the logo is clicked, it goes to http://pitchforkmarketing.com
But that is a landing page, i need it to link to
http://pitchforkmarketing.com/blog, which is my actual blog
Or not link to anything at all and i can just add a “home” link in the nav menu.
Please help, thanks alot.
-
This topic was modified 11 years by
scorpio85.
Try changing the site url in WordPress’s settings (“General” tab) to pitchforkmarketing.com/blog. This represents where the WP site is.
The target of that link is generated in whichever header file is associated with the style you’ve chosen in the theme panel (and located in wp-content/themes/Newspaper/parts/). The relevant code is <?php echo home_url(); ?>. If the first step fails to work, or for some reason you don’t want to change youur site url, you could create a child theme and change the line to <?php echo home_url() . '/blog'; ?>.
I tried doing option 1 before and it completely broke my whole site to the point that I had to recreate all of my posts, and images…it was a nightmare.
I tried the second option before. well, I erased the entire line. it didnt work.
Then i tried your suggestion of replacing the php line, but it failed to work and the logo still links to pitchforkmarketing.com
Im working of of the child theme file “header-style-1.php”
I’m certain that is the correct file. Any other options
btw, thanks TheMediumUTM
You likely need to remove the auto generated echo home_url() to the static URL you want in all the header-styleX.php files to be safe.
in the /parts/ folder, try the
header-style-1.php
logo-mobile.php
edit this line
<a itemprop="url" href="<?php echo home_url(); ?>">
<img width="300" class="td-retina-data" data-retina="<?php echo htmlentities($td_customLogoR) ?>" src="<?php echo $td_customLogo?>" alt="<?php echo $td_logo_alt ?>"<?php echo $td_logo_title ?>/>
</a>
need to replace these
href="<?php echo home_url(); ?>"
with
href="http://yoursite.com/directory"
Oh man! I’m really sorry about what option 1 did!! It might have been possible to undo that đ I should probably give up trying to offer support after an oversight like that… Out of curiosity, what were the WordPress address and site address filled in with, and where is the WordPress install located in your website files?
Yeah, either Chris’s or my edit to the php line would work but Chris’s is easier to parse later if you change your URL one day. :p
Hi,
I hope someone can help with this similar issue. I want to remove the link from the logo totally.
I replaced the code href=”<?php echo home_url(); ?>”
in the files
header-style-1.php
logo-mobile.php
with href=””
But, the logo is still hyperlink and it points to my homepage.
May I know how to remove the link from the site logo completely?
Thanks!
Jon
Hi,
Header style 10 uses the logo-text file: http://screencast.com/t/UaqJhTG2y, so you will need to remove/replace the path from here: http://screencast.com/t/JzzYXX0pmhP
Thank you!