Home › Forums › WordPress Themes – Premium › Lavish Pro › Header image linked
Hi!
How can I link my header image to my website root, please?
Thanks!
Hi Educant en Colors,
To have a link on header image you need to customize header.php template keeping on child theme. This will prevent your changes to be lost on theme update.
And for root directory link, you can take this function as a reference.
Note: Please start customizing theme only if you are technically sound on WordPress, on this case we recommend you to take help of professional WordPress Developer.
Thanks
Hi Sushil,
Thank you for your answer.
I tried including this code between header aside tags:
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" style="display: block; height: 100%; width:100%; text-indent:-9999px;">click anywere!</a>
but it doesn’t work on 100% height. Only on a top thin area about 20-25px. I know that is an inline element, but I haven’t found an alternative.
How would you do it?
Thanks!
Hi there,
You can do like that but you have to make position of link to absolute and add some more css to make it working . You can take this code for a reference:
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" style=" width: 100%;font-size: 25px;color: #000;position: absolute;top: 137px;text-align: center;">click anywere!</a>
As this involves customization work, please take a help from a developer or you can send your quote for customization work at [email protected]
Thanks
Ok! I will work with this. Thank you!
Sounds perfect, Thank you very much for your understanding.
Best Regards.
With our premium themes, we offer access to site documentation, video tutorials and timely support. Even if you have just started on WordPress, our support staff have the patience to help you create appealing sites gracefully.
Company
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.To find out more, including how to control cookies, see here: Privacy Policy
© Copyright © 2023 Styled Themes. All Right Reserved.