• fuhi

    (@fuhi)


    I’m using your template with a header image and I’d like to add link to this image but I don’t know where I have to add it ;/ ?

    I’m begining so could You help me ? plizz

    Thank you in advance for your feedback!

Viewing 6 replies - 1 through 6 (of 6 total)
  • 5ingingwolf

    (@5ingingwolf)

    Can you right click on the image and get a file location?

    Thread Starter fuhi

    (@fuhi)

    .site-header {
    background-image: url(“https://janpalony.com/wp-content/uploads/2015/11/cropped-Bez-nazwy-2.png”);

    but i cant find it in style, header or any other file ;/

    5ingingwolf

    (@5ingingwolf)

    Have you tried Appearance, Customize? I am sure I have seen it in there (I went to take a look but Bluehost have screwed my WordPress installation and it won’t load).

    tefox

    (@tefox)

    Hi @fuhi,
    Header image added as background to .site header, so you can’t add link directly to this image. You can try to do this in 2 ways:
    1) Create own child theme for Azeria. In child theme rewrite template header.php – add header image with <img> tag and wrap this image into link. Something like this (just example, not tested):

    <?php
    $header_image = get_header_image();
    if ( $header_image ) :
    ?>
    <a href="https://your-link-url">
        <img src="<?php echo esc_url( $header_image ); ?>" alt="">
    </a>
    <?php
    endif;
    ?>

    But this way requires a lot of customization.
    2) Upload this image as logo (if you need link to your home page)

    Thread Starter fuhi

    (@fuhi)

    Thanks for response, but I have one more question for pt.2 : Is it possible to change size of logo on width and hight all site-branding ?

    tefox

    (@tefox)

    To force logo fill all header you also need create child theme and rewite header.php. Than move azeria_logo() from .container. Also some CSS modification will be required.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Linking of head image’ is closed to new replies.