How to remove logo link which allows people to click on the image
Permalink 1 user found helpful
Hi
Have designed the following website:
http://www.pro-bookkeeping.com.au/website/...
but issue is if you click on the main logo image to links to a page with the image. Is it possible to change this link to the websites homepage or remove it altogether?
Have designed the following website:
http://www.pro-bookkeeping.com.au/website/...
but issue is if you click on the main logo image to links to a page with the image. Is it possible to change this link to the websites homepage or remove it altogether?
It is linking to the image because you are using the slideshow block for your logo. Rather than do that, I recommend using the image block and setting the url to /website/. This will also remove a lot of overhead from the slideshow javascript, which should make your page load faster.
Thanks
If you found my answer to be the best answer, please select it as best answer at the top of my post. This will help others find the correct answer faster, and gives me karma points. :-) Thanks!
The ideal way to have your logo image in the header is to add this code to the header of your template, rather than using any blocks.
Put the logo image in the /themes/mytheme/images dir define the size of your actual logo in the below mentioned code and you are good to go !!
<div id="topLogo"><a href="<?php echo DIR_REL?>/"><img src="<?php echo $this->getThemePath()?>/images/mylogo.jpg" width="100px" height="180px" alt="My company logo" /></a></div>
Put the logo image in the /themes/mytheme/images dir define the size of your actual logo in the below mentioned code and you are good to go !!
<div id="topLogo"><a href="<?php echo DIR_REL?>/"><img src="<?php echo $this->getThemePath()?>/images/mylogo.jpg" width="100px" height="180px" alt="My company logo" /></a></div>
Pritam is correct if you were going to edit the theme code itself, but if you were going to be editing code, I would go a step further, and use this code:
If you add this where you want your logo to appear on all pages, you would then be able to add your same image block you have now to your global scrapbook, rename it Logo, and then it would appear on all pages by default. And, if ever you needed to change the logo sitewide, you would only need to change it once through the scrapbook. :-)
<?php <a href="<?php echo DIR_REL ?>/"> $block = Block::getByName('Logo'); if ($block && $block->bID) { $block->display(); </a> ?>
If you add this where you want your logo to appear on all pages, you would then be able to add your same image block you have now to your global scrapbook, rename it Logo, and then it would appear on all pages by default. And, if ever you needed to change the logo sitewide, you would only need to change it once through the scrapbook. :-)