Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • things15
    Participant

    @things15

    Thanks for a quick turn-around. I implemented your solution by creating a new header.php in my child theme containing only the above code & now my site is blank. Do I need to copy the entire code of parent theme’s header.php file to the child’s header.php or do I need to add it as a function as far as I’m aware with functions.php we use filters/actions(no idea how it works though).

    Please guide me on where exactly the code will go. Below header.php code for site-title:

    <?php if ( is_front_page() || is_home() ) : ?>
    
    							<h1 id="site-title">
    
    								<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    
    							</h1>
    
                      <?php else : ?>
    
                         <h3 id="site-title">
    
                            <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    
                         </h3>
    
                      <?php endif; ?>

    things15
    Participant

    @things15

    Thanks for the reply, I think I have a similar code in my theme’s header file but as I’m new to coding & don’t know what to change so could you please provide the correct code/function where site-title is activity page regardless of the front page which I can add to the header.php under a child theme. Thanks.

    Here’s my site:

    http://www.thingsfail.com

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar