WordPress.org

Ready to get started?Download WordPress

Forums

Path
Favicon (5 posts)

  1. Pepesurfer
    Member
    Posted 9 months ago #

    In order to have a favicon I've uploaded the favicon to childtheme root directory. Is it ok to put this code on the header?
    <link rel=”shortcut icon” href=”childtheme/favicon.ico” />

  2. Sami Keijonen
    Member
    Theme Author

    Posted 9 months ago #

    If it's working then it should be fine. But in which file you have put this line.

    <link rel=”shortcut icon” href=”childtheme/favicon.ico” />
  3. Pepesurfer
    Member
    Posted 9 months ago #

    Hi,
    in path theme, in header

    <head>
    <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
    <title><?php hybrid_document_title(); ?></title>
    
    <!-- Mobile viewport optimized -->
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    <?php wp_head(); // wp_head ?>
    <link rel=”shortcut icon” href=”/childtheme/favicon.ico” />
    </head>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    Many thanks

  4. Sami Keijonen
    Member
    Theme Author

    Posted 9 months ago #

    If that header.php is in child theme, then it's ok.

  5. Pepesurfer
    Member
    Posted 9 months ago #

    My child theme doesn't have header!!!
    only functions and css, I use the original Path theme to insert
    Thanks in advance for your help
    JM

Reply

You must log in to post.

About this Theme

About this Topic

Tags