• Have looked through some old posts and tried what’s there to no avail..

    I want to replace the standard header with a log that clicks to home. Here’s the relevant lines from the header file if anyone can help please.

    <div id=”header” onclick=”location.href='<?php echo get_settings(‘home’); ?>/’;”>
    <h1 id=”blog-title”>/” title=”<?php bloginfo(‘name’) ?>”><?php bloginfo(‘name’) ?></h1>
    <div id=”blog-description”><?php bloginfo(‘description’) ?></div>
    </div>

Viewing 9 replies - 1 through 9 (of 9 total)
  • In place (or in addition to) where the header.php file has <?php blogino(‘name’) ?> – put an HTML IMG tag that points to your logo.

    You should be good to go unless things get pushed around weirdly in your theme.

    Thread Starter alangnw

    (@alangnw)

    Tried, as follows, and it seems to have changed the slogan into h1 and no sign of the image? (I have checked the image address and know it is correct. Thanks for any further help you can offer…

    <div id="header" onclick="location.href='<?php echo get_settings('home'); ?>/';">
    		<h1 id="blog-title"><a>/" title="<img src="https://www.canarycard.net/wp-content/themes/barthelme-101/images/testlogo.png><img src="https://www.canarycard.net/wp-content/themes/barthelme-101/images/testlogo.png></a></h1>
    		<div id="blog-description"><?php bloginfo('description') ?></div>
    	</div>

    Remove the <h1 id="blog-title">/" title="

    and one of the IMG and the trailing </h1>

    and you should be good to go

    you may want to replace https://www.canarycard.net/wp-content/themes/barthelme-101/ with
    <?php bloginfo('template_directory'); ?>
    this will save you work in the future if you rename the theme directory

    Thread Starter alangnw

    (@alangnw)

    Still no luck I’m afraid. Would you have any other ideas? Thanks for the help!

    <div id=”header” onclick=”location.href='<?php echo get_settings(‘home’); ?>/’;”>
    /” title=”<img src=”/wp-content/themes/barthelme-101/images/testlogo.png>
    <div id=”blog-description”><?php bloginfo(‘description’) ?></div>
    </div>

    Remove
    /” title=”

    Add a close quote ” after .png

    Thread Starter alangnw

    (@alangnw)

    Great – I′ve got it showing. Thanks so much for your help!

    One last question on the logo…. Any idea how I might get it to align to the left hand edge of the browser window?

    Am still struggling with the header image, and hope someone could help.

    Here’s my code:

    <div id=”header” onclick=”location.href='<?php echo get_settings(‘home’); ?>/’;”>
    <img src=”/wp-content/themes/barthleme/images/m.jpg”>
    <div id=”blog-description”><?php bloginfo(‘description’) ?></div>
    </div><!– #header –>

    The image shows up properly (see https://www.litterless.org), but there’s still a gray background. How can I get rid of this?

    Thanks, much!

    its caused by the css additions that are inserted into the header by the theme you are using.

    Specifically the bit that starts like so:

    body div#header{background:#C2C2C2

    Ah, thanks. How stupid, I’ve been checking the style sheet up and down, and only just realized that this background is set within the Theme Options, which comes with the Barthleme theme. Cheers!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Another logo question…’ is closed to new replies.