1

I've put a logo on my site's homepage and the logo was clickable. And then I adjusted its position through custom.css file, but now the logo is NOT clickable (plain image). How to make it clickable again? Here's a homepage of my site: My site's URL

2
  • Is this the element that you are referring to? <a title="Ассоциация репетиторов" href="https://repetit.moscow/"><img class="pull-left" src="/images/logo.png" alt="" /></a> I am struggling to track down your css declaration (from my mobile phone), could you please edit your question to provide the exact html element (and potentially its parents) as well as your new css declaration? This way volunteers and future researchers will not need to visit your site to understand your question. Nov 13, 2019 at 7:46
  • You think I've understood what you were asking? If I were qualified enough to understand all of that then I would've solved it myself. And yes that's the code of the logo to make it clickable.
    – papakota
    Nov 13, 2019 at 20:36

2 Answers 2

1

You can use the inspector in Chrome or Firefox to inspect the HTML + CSS. The issue with the non-clickable logo seems to be caused by the float: left; in your CSS. If you remove it, the logo is clickable again. However, the top bar won't look good; You have to solve that in another way.

#toolbar .float-left .module, #toolbar .float-left>time {
    margin: 0 15px 0 0;
    float: left;
}
2
  • if you were able to delve into the OP's soite to extract the necessary details, please edit the question so that the current state of the logo element / document is not lost from this page when the OP fixes the website. Nov 13, 2019 at 21:50
  • So what exactly should I do? If I just add those lines to custom.css, that's doesn't help...
    – papakota
    Nov 13, 2019 at 22:01
1

OK, I've found the solution. I simply changed the last line of custom.css to this:

#toolbar .float-left .module:last-of-type {
float: none !important;
width: 100% !important; 
position: static; /* add to override its previous "module" ruling */
1
  • This page should have a green tick awarded -- the answer that you select may be your own. Now that you have over 15 rep, you can upvote answers that you find helpful. If pe7er's answer was helpful to you, you may show your appreciation by upvoting his answer. Nov 23, 2019 at 6:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.