StyledThemes

Header image linked

Home Forums WordPress Themes – Premium Lavish Pro Header image linked

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #42557
    Educant en Colors
    Participant

    Hi!

    How can I link my header image to my website root, please?

    Thanks!

    #42564
    Sushil Adhikari
    Moderator

    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

    #42573
    Educant en Colors
    Participant

    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!

    #42591
    Sushil Adhikari
    Moderator

    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

    #42594
    Educant en Colors
    Participant

    Ok! I will work with this. Thank you!

    #42627
    Sushil Adhikari
    Moderator

    Sounds perfect, Thank you very much for your understanding.

    Best Regards.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.