Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: How To Disable The Header Image Link? #20680
    tim6007
    Member

    Bingo!

    That’s done the trick thanks Sakin.

    in reply to: How To Disable The Header Image Link? #20674
    tim6007
    Member

    Lol, yes I remembered I needed to do that after posting the reply, I have the header back but the home link still remains.

    I will have one last try at resolving this.

    Here is what I believe is the offending code as it appears in the browser source code

    \
    <div id=”page” class=”hfeed”>
    <header id=”branding” role=”banner”>

    <div id=”header-content” class=”clearfix”>

    <div class=”logo-wrap clearfix”>
    <div id=”site-logo”>

    xxxx.com

    </div>

    <div id=”hgroup” class=”site-details with-logo”>
    <h1 id=”site-title”>xxxxx.com</h1>
    <h2 id=”site-description”></h2>
    </div><!– #hgroup –>

    </div><!– .logo-wrap –>
    \

    But this does not appear in the header.php or anywhere else I can see

    in reply to: How To Disable The Header Image Link? #20664
    tim6007
    Member

    Thanks Sakin and yes, I did miss the bracket child theme now works.

    This code however removes the whole header image, but the link is still active.

    I want to show the header image but break the link to the home page.

    Something tells me it is to do with this line…. Line 315 functions php

    <h1> onclick=”return false;” href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”><?php bloginfo( ‘name’ ); ?></h1>

    especially this part … ( home_url( ‘/’ ) )

    I have tried deleting that but it just breaks the theme, so I must be missing something.

    Any ideas?

    in reply to: How To Disable The Header Image Link? #20643
    tim6007
    Member

    Hi Sakin,

    I just tried that code and got an error

    Parse error: syntax error, unexpected $end in /themes/catchbox-child-theme/functions.php on line 23

    That’s this line below…
    <?php endif; // end check for removed header image

    As I’m not a coder I have no idea what this means, but I just want to say again in case I wasn’t clear, I don’t want to remove the header image only the internal code link from the header image to the home page.

    I only used that snippet in the functions.php child file and left the parent functions as it was, this is correct yes?

    Any ideas or corrections please?

    in reply to: How To Disable The Header Image Link? #20640
    tim6007
    Member

    Hi Sakin,

    Thanks for your very prompt response, much appreciated.

    I had a feeling it was something to do with the functions file.
    Fortunately I already know how to add a child theme, and it did have it on the backburner for this project looks like I will have to do it now.

    I’ll give that code a go thanks.

Viewing 5 posts - 1 through 5 (of 5 total)