WordPress.org

Ready to get started?Download WordPress

Forums

How to insert am image in the theme directory (5 posts)

  1. bjoshi84
    Member
    Posted 7 months ago #

    Hi,

    I would like to insert an image in the default theme directory
    /wordpress/wp-content/themes/inove/img/ directory

    How do I do it? I am trying to do two things.

    1. Add a favicon for my website
    2. Add a logo on the header beside my Header Text

    Below is the link to my website
    http://www.exchangewarrior.com

    Thanks,
    Badal

  2. bravokeyl
    Member
    Posted 7 months ago #

    http://wordpress.org/support/theme/inove

    Please post here for your theme specific question...

  3. bravokeyl
    Member
    Posted 7 months ago #

    Quick reply here..

    1)To add a favicon you need to have link in the header like this ..

    <link rel="shortcut icon" href="<?php get_template_directory_uri() ;?>./img/favicon.ico">
    here img/favicon.ico is the path to favicon..
    Use FTP to upload favicon to corresponding directory.

    2)You need to add some code in the header.php by creating child theme so that you don't loose that when your theme updates..

  4. bjoshi84
    Member
    Posted 7 months ago #

    I did add this under the header template but it is not working

    <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>http://www.exchangewarrior.com/wp-content/uploads/2013/12/favicon1.png" type="image/x-icon" />

  5. bravokeyl
    Member
    Posted 7 months ago #

    link is incorrect , use this
    <link rel="shortcut icon" href="http://www.exchangewarrior.com/wp-content/uploads/2013/12/favicon1.png" type="image/x-icon" />
    .
    also you are adding in the wrong place..this must be in between <head></head>
    tags

Reply

You must log in to post.

About this Topic