Forums

[resolved] Changing my Blog Title to an image (7 posts)

  1. AyeAaron
    Member
    Posted 2 years ago #

    How do I replace my blog title with an image with a header like this:

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
        <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
        <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
     <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    
        <?php wp_head(); ?>

    Here is the image I'd like to replace the blog title with:

    wp-content/themes/mini/img/headerimg.png

    Thanks,

    Aaron

  2. Edward Caissie
    Member
    Posted 2 years ago #

    The code you are referencing above is for the page title that appears in the top bar of your browser.

    A link to your site and the active theme you are trying to edit would be useful in making suggestions, although you can start by looking for something like:

    <?php bloginfo('name'); ?>

    ... in your header.php file as this is a very common function call to display the blog name (title?) in a text format.

  3. AyeAaron
    Member
    Posted 2 years ago #

    http://aarondavis.net/knifelike/ is my blog.

    The code i originally posted is everything from my header.php
    I am using the Mini theme.

    Thanks,

    Aaron

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    you are doing it in the wrong place, in that theme you nead to edit head.php it looks like

  5. Edward Caissie
    Member
    Posted 2 years ago #

    OK ... look inside the head.php file for the above function call I mentioned; it appears to be on line 3 of that file.

    You can try replacing that bit of code with an appropriate image link, such as:

    <img src="<?php bloginfo('template_url'); ?>/img/headerimg.png" />
  6. AyeAaron
    Member
    Posted 2 years ago #

    That worked. Thanks a million!

  7. Edward Caissie
    Member
    Posted 2 years ago #

    You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic