WordPress.org

Ready to get started?Download WordPress

Forums

VisitPress
Insert logo (4 posts)

  1. gabriel@linton.se
    Member
    Posted 8 months ago #

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

  2. tomastoman
    Member
    Theme Author

    Posted 8 months ago #

    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.

  3. gabriel@linton.se
    Member
    Posted 8 months ago #

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

  4. tomastoman
    Member
    Theme Author

    Posted 8 months ago #

    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="http://your-logo-url" alt="My logo" /></a>
     </div>

Reply

You must log in to post.

About this Theme

About this Topic