WordPress.org

Ready to get started?Download WordPress

Forums

How to add an image instead the classic title and subtitle? (6 posts)

  1. anniewood
    Member
    Posted 5 years ago #

    I instaled a theme that on the header you have the typical <h1> title and an <h2> subtitle. But what I want is to replace these for an image. How do I do that? Thanks in advance!

  2. fldtrace
    Member
    Posted 5 years ago #

    Please see that similar problem as yours:

    example

    You will need to go into your wordpress installation for that, and open header.php (wp-content/themes/*active theme* which might be the default if you haven't changed it).

  3. anniewood
    Member
    Posted 5 years ago #

    thanks a lot for the reply, but im afraid im a real newbie with this. Could you please explain this part further:

    ---

    Replace
    <?php bloginfo('name'); ?>
    with
    img src="http://path_to_your_gif_file.gif/"

    ----

    I have to take off the whole <?php bloginfo('name'); ?> or supplant 'name' with img src="http://path_to_your_gif_file.gif/"....or what?

    Sorry for the trouble and thanks!

  4. anniewood
    Member
    Posted 5 years ago #

    by the way the code on my header.php is

    `<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() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>`

  5. fldtrace
    Member
    Posted 5 years ago #

    Post the code within <header></header>.

    Was that the the only code from header.php? Post everything.

  6. anniewood
    Member
    Posted 5 years ago #

    this is the code inside my header.php

    <head>
    <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() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <? include(TEMPLATEPATH."/custom.php"); ?>

    <?php wp_head(); ?>
    </head>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags