• dragonsjaw

    (@dragonsjaw)


    I have removed the title and description and brought the Custom Header up the page. I want to make the full header image a link to home.

    <?php // Display Custom Header Image
    		dynamicnews_display_custom_header(); ?>

    What would I add to this in the header to get the image to link to home?

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • JED Ex

    (@jeddah-exapts)

    Hello there,

    Did you manage to add the link?

    thx

    Thread Starter dragonsjaw

    (@dragonsjaw)

    Forgot about this, and no I never did. Seems someone who has a better grasp of php or the theme author would just tell me how to put a link into / around? the php.. I know how to make a link LOL
    But I just moved on.
    If I find the time I may ask the theme developer as I do have the Pro version of this theme now.
    sorry..

    JED Ex

    (@jeddah-exapts)

    I also have a pro version, but currently the developer is off due to holidays.

    I hacked it this way:

    Wrapped around “custom-header” a link to the banner:

    Modified file: Dynamic News Lite: template-tags.php (inc/template-tags.php)

    JED Ex

    (@jeddah-exapts)

    Before modification:

    <div id="custom-header">
    <img src="<?php echo get_header_image(); ?>" />
    </div>

    After modification:

    <div id="custom-header">
    <a href="https://yourpage.com">
    <img src="<?php echo get_header_image(); ?>" />
    </a>
    </div>

    Thread Starter dragonsjaw

    (@dragonsjaw)

    won’t that then get overwritten on theme updates?
    I guess I could try putting an inc/ folder into the child theme and include the template-tags.php that way.

    thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Make full custom header a link to home?’ is closed to new replies.