• Hello Justin,

    How can I replace the title by an image (my own logo) ? I want to see my logo in the left-upper corner of each page.

    I tried to change header.php, but this does not seems to work ..

    Pls. let me know,
    Thanks for your support

Viewing 4 replies - 1 through 4 (of 4 total)
  • the header.php should be the correct file to change.

    Place your image there in the appropriate spot and link it to your home page then remove all the content pulling in the site info.

    Try that and post a link and your header.php code and someone can help you fix any problems you might have.

    Thread Starter it-infra

    (@it-infra)

    Thanks Janet.

    Find below my header.php (I am using stargazer theme)

    <!DOCTYPE html>
    <html <?php language_attributes( ‘html’ ); ?>>

    <head>
    <?php wp_head(); // Hook required for scripts, styles, and other <head> items. ?>
    </head>

    <body <?php hybrid_attr( ‘body’ ); ?>>

    <div id=”container”>

    <div class=”skip-link”>
    <?php _e( ‘Skip to content’, ‘stargazer’ ); ?>
    </div><!– .skip-link –>

    <?php hybrid_get_menu( ‘primary’ ); // Loads the menu/primary.php template. ?>

    <div class=”wrap”>

    <header <?php hybrid_attr( ‘header’ ); ?>>

    <?php if ( display_header_text() ) : // If user chooses to display header text. ?>

    <div id=”branding”>
    <?php hybrid_site_title(); ?>
    <?php hybrid_site_description(); ?>
    </div><!– #branding –>

    <?php endif; // End check for header text. ?>

    <?php hybrid_get_menu( ‘secondary’ ); // Loads the menu/secondary.php template. ?>

    </header><!– #header –>

    <?php if ( get_header_image() && !display_header_text() ) : // If there’s a header image but no header text. ?>

    ” title=”<?php echo esc_attr( get_bloginfo( ‘name’ ) ); ?>” rel=”home”><img class=”header-image” src=”<?php header_image(); ?>” width=”<?php echo get_custom_header()->width; ?>” height=”<?php echo get_custom_header()->height; ?>” alt=”” />

    <?php elseif ( get_header_image() ) : // If there’s a header image. ?>

    <img class=”header-image” src=”<?php header_image(); ?>” width=”<?php echo get_custom_header()->width; ?>” height=”<?php echo get_custom_header()->height; ?>” alt=”” />

    <?php endif; // End check for header image. ?>

    <div id=”main” class=”main”>

    <?php hybrid_get_menu( ‘breadcrumbs’ ); // Loads the menu/breadcrumbs.php template. ?>

    <!DOCTYPE html>
    <html <?php language_attributes( 'html' ); ?>>
    
    <head>
    <?php wp_head(); // Hook required for scripts, styles, and other <head> items. ?>
    </head>
    
    <body <?php hybrid_attr( 'body' ); ?>>
    
    <div id="container">
    
    <div class="skip-link">
    <?php _e( 'Skip to content', 'stargazer' ); ?>
    </div><!-- .skip-link -->
    
    <?php hybrid_get_menu( 'primary' ); // Loads the menu/primary.php template. ?>
    
    <div class="wrap">
    
    <div class="logo">
    <a href="/" title="<?php bloginfo('title'); ?>"><img src="yourlogoimagehere" title="<?php bloginfo('title'); ?>" alt="<?php bloginfo('title'); ?>" ></a>
            </div>
    
    <div id="main" class="main">
    
    <?php hybrid_get_menu( 'breadcrumbs' ); // Loads the menu/breadcrumbs.php template. ?>

    where it says yourlogoimagehere you need to put in the path to your logo image.

    Thread Starter it-infra

    (@it-infra)

    Thanks Janet, I will test this ans let you know 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Replace title by logo (image)’ is closed to new replies.