Remove Link From Site Logo

Posted in: Newspaper
Post count: 13

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.
Post count: 388

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'; ?>.

Post count: 13

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

Post count: 9544

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"

  • This reply was modified 11 years by simchris.
  • This reply was modified 11 years by simchris.
Post count: 13

Thanks Chris And The Medium

Both of you guys were right…

The problem was that I forgot to place the “header style1.php” file in the “parts” folder inside of the child theme…

Everything works perfectly fine now thanks!

Post count: 388

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

Post count: 13

OOhh Noooo,

I tried option 1 before I reached out to support…

I screwed that pooch on my own ha.

but you guys did an amazing job, and my site is working 100% correctly…thanks again.

  • This reply was modified 11 years by scorpio85.
Post count: 3

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

Post count: 22421

Hello,
Please specify the header style you use as the logo is added differently on every header style.
Thank you!

Post count: 3

Thanks Bogdan,

I’m using Header Style 10 (Newspaper Theme).

Post count: 22421

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!

Post count: 3

Hi Bogdan,

I’m not a technical guy.

Could u show me what text/code to be removed and what code need to put in place of that?

Thanks!

Post count: 22421

Hi,
You requested the logo to not be a link anymore, so you can simply delete the parts I highlighted in the code and that’s it.
Thank you!

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newspaper’ is closed to new topics and replies.