• Resolved cleartag

    (@cleartag)


    Hi,

    I love the theme. I need to customize the header, to add a logo instead of the website title. And also I would like to have the navigation like in flat bootstrap theme not inline. Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Tim Nicholson

    (@timnicholson)

    Thanks for the kind words, cleartag. To use a logo instead of the site title, its probably easiest to modify header.php. You would want the logo to go within the “navbar-brand” section.

    For the menu question, are you saying you don’t want it to stick to the top of the page? Pratt is almost identical to Flat Bootstrap except that Pratt has the fixed header. You may just want to use the parent theme instead. If not, let me know and I’ll try to help you remove the “stickiness” of the nav bar.

    Since the title of this post is “Logo in Header” would it be appropriate to elaborate on how to do this exactly? I have been trying to change the code, but it is a little above me. In the header.php file, I am looking at this section of code. Can you please advise me on what to do to eliminate the site title and replace it with my logo image?

    $navbar .= '<a class="navbar-brand" href="'
    			.esc_url( home_url( '/' ) )
    			.'" rel="home">'
    			.get_bloginfo( 'name' )
    			.'</a>';
    
            $navbar .= '</div><!-- navbar-header -->';

    In html, I would use this code to place my logo:

    <a class="navbar-brand" rel="home" href="https://candtconstruction.com">
    <img width="155" height="50" alt="CandTConstruction" src="https://candtconstruction.com/wp-content/themes/pratt/images/logo-50.gif"></a>

    Thank you in advance for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Logo in Header’ is closed to new replies.