• [email protected]

    (@gabriellintonse)


    Hi!
    Thanks for a nice theme. I wonder how to put in my own logo. Can anyone help me?
    Thanks!
    Gabriel Linton

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author TT Themes

    (@tomastoman)

    Hi Gabriel,
    if you want to put your logo in header area instead of the Site Title and Description, please replace the following code in header.php:

    <div id="header-title">
        <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></p>
        <p class="site-description"><?php bloginfo( 'description' ); ?></p>
      </div>

    by this code:

    <div id="header-title">
        <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" alt="My logo" /></a>
      </div>

    In this specific case, your logo file has to be named “logo.png” and must be located in “wp-content/themes/visitpress/images” folder.

    I hope that my answer will be helpful for you.

    Thread Starter [email protected]

    (@gabriellintonse)

    Thanks!
    And one more question: if my logo is located somewhere else on my computer. How will I do?
    /Gabriel

    Theme Author TT Themes

    (@tomastoman)

    You can upload your logo via Media Uploader in WordPress administration and then copy its URL address into the code described above:

    <div id="header-title">
        <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="https://your-logo-url" alt="My logo" /></a>
     </div>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Insert logo’ is closed to new replies.