• Resolved cottage218

    (@cottage218)


    Hi,

    I am trying to make the header of my site clickable. We are using a banner image for the header. Also, after updating to the new version of Mesocolumn the custom colors that we set up for our categories only held for some of the categories and we can’t figure out where to edit. Can you help? Our blog is https://storiesfromthecottage.com

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Richie KS

    (@rkcorp)

    add this to child functions.php or wp-content/meso-custom-functions.php if had one.

    <?php
    remove_action('bp_inside_header','meso_cih_overlay');
    function meso_headerlink_overlay() {
    $header_overlay = get_theme_mod('custom_header_overlay');
    if( get_header_image() && $header_overlay == 'yes' ) {
    echo '<div id="custom-img-header"><a href="https://www,yourlink.com/"><img src="'. get_header_image() . '" alt="' . get_bloginfo('name') . '" /></a></div>';
    }
    }
    add_action('bp_inside_header','meso_headerlink_overlay');
    ?>

    color will not work if no post exist in ‘that’ category.

    Thread Starter cottage218

    (@cottage218)

    Richie,

    Thanks for your quick reply. The color issue has been resolved as we now have posts in each category.

    As for the clickable header, I created a meso-custom-functions.php and included the code above. The header is now clickable, but goes to an about:blank. We have not set up a static front page — just a front page that features our recent posts. That’s where I want users to be redirected upon clicking the header. Thoughts?

    Thanks again for your help!

    Thread Starter cottage218

    (@cottage218)

    I figured it out! Working great now. Thanks again for your help!

    Hi,
    with code <?php remove_action… added to child functions.php, header image appears 2 times in the rifght place, on clickable, the other no.
    Any idea to have only clickable header ?
    Thanks for your help!

    Theme Author Richie KS

    (@rkcorp)

    try

    remove_action(‘bp_inside_header’,’meso_cih_overlay’,20);

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Clickable header and different colors for categories in primary menu’ is closed to new replies.