• Resolved AyeAaron

    (@ayeaaron)


    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thread Starter AyeAaron

    (@ayeaaron)

    https://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

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

    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" />

    Thread Starter AyeAaron

    (@ayeaaron)

    That worked. Thanks a million!

    You’re welcome!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changing my Blog Title to an image’ is closed to new replies.