Support » Plugin: Custom Header Images » Header links not working

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Blackbam

    (@blackbam)

    Hello

    it SHOULD be the case. The thing with the URL works quite similar to to the Header Images itself internally. Please check the following Points:

    1. Header Image Links is still activated
    2. If you use custom output, check if [link] shortcode is used properly. If not, try custom output and afterwards check, if the linking feature is workding properly.
    3. Check the source code of the output page, if the URL is outputted correctly or is missing. There might be another reason for this behaviour, if the URL is specified correctly in the output.
    4. You also MAY have found a bug, if pt. 1-3 do not help you. Please report which concrete Image you tried to link and I may have to create a bugfix.

    Thanks, Blackbam.

    Plugin Author Blackbam

    (@blackbam)

    Resolved.

    Hello,

    What was the resolution here? I am also trying out the plugin. I found where the code needs to be for my theme, but I can’t get the header image to link where I am telling it to go.

    I’m not sure how to use the Custom Output you provide. Any tips?

    Thanks!

    Jim

    Actually, they seem to be working fine now! 🙂

    I have another question, but I think I’ll start a new thread.

    I’m having problems with this same issue, the diesel image should have a link but is not working.

    Link to site: http://lateralpty.com/category/cazador/

    Plugin Author Blackbam

    (@blackbam)

    Hello, the link of the diesel image is correctly set in the data-link attribute. But for some reason, the link is not working.

    1. Make sure that you do not have any errors in the output of your console

    2. You should use the “standard custom output”, if it still does not work

    On the settings page, click “restore standard” (at the bottom)

    You should see the following code:

    <div onclick="if(this.getAttribute('data-link')!='') window.location.href=this.getAttribute('data-link')" data-link="[link]" class="chi_display_header" style="height:[height]px; width:[width]px; background-image:url('[image_url]');"></div>

    Note the “onclick” attribute. Now the link should work.

    Thank you, very useful plugin, this is resolved. Now need to figure how to make the link open in a new window:-)

    Plugin Author Blackbam

    (@blackbam)

    Hello, thanks 🙂 and this quite easy:

    First possibility: Use the attribute target=”_blank” in custom output.

    Second possibility: Add the attribute target=”_blank” using Javascript to the header image links.

    Hello,

    I have still the issue that I cannot link the header.

    Where do I have to put the code you posted

    <div onclick="if(this.getAttribute('data-link')!='') window.location.href=this.getAttribute('data-link')" data-link="[link]" class="chi_display_header" style="height:[height]px; width:[width]px; background-image:url('[image_url]');"></div>

    exactly?

    Do I have to replace it with the code in the header.php?

    <?php if(function_exists('chi_display_header')) { chi_display_header(); } ?>

    Do I have als to replace [width] and [height] or will it be changed automatically?

    All issues solved.
    Next time I will read in more detail. Sorry for my spam you can delete both posts!

    1. restore standard at the bottom and it works….

    Plugin Author Blackbam

    (@blackbam)

    Yes 🙂

    Hi there. I am having a similar problem as above. I put in the <div> code into the custom output on the plugin configuration… This page shows the code is active

    http://www.insightaas.com/category/comm/

    The problem I am having is that any customer header image links are not saved in the media library. I put in a link for

    Link of the Custom Header Image

    for the image and when I hit update, it clears that information and doesn’t save it. Any idea why that would happen?

    BTW, I am using the Customizr theme and I installed the header image tag in my index.php

    <?php
    /**
     * The main template file.
     *
     *
     * @package Customizr
     * @since Customizr 1.0
     */
    get_header();
    if(function_exists('chi_display_header')) { chi_display_header(); }
    
        do_action( '__fp_block' );
    
        do_action( '__breadcrumb' );
          ?>

    Plugin Author Blackbam

    (@blackbam)

    Hello

    unfortunatly I cannot exactly understand the problem or why the the link is cleared. I think the the code is placed correctly.

    Did you find any solution for this problem yet? When is the information cleared? Do you mean the custom output function or on the edit post screen?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Header links not working’ is closed to new replies.