WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Inherit Favicon from a parent to a child theme (3 posts)

  1. jdarias
    Member
    Posted 3 years ago #

    My parent theme has the favicon linked with this:

    <link rel="icon" type="image/png" href="<?php bloginfo('template_url'); ?>/favicons/favicon.png" />
    	<!--[if IE]>
    		<link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/favicons/favicon.ico">
    	<![endif]-->

    This code is located in the head section of header.php, wich is inherited by the child theme (no custon header.php)
    However, the child theme doesn´t display them.
    What is the correct way to link the favicons?

  2. JackdUpFord
    Member
    Posted 3 years ago #

    So if the child theme uses the same header file as the main theme I believe it should work.

    Have you tried clearing your cache and cookies. Go ahead and clear you private data or see if it works in another browser that has not already visited the site.

    Let me know if that works

  3. jdarias
    Member
    Posted 3 years ago #

    It did! Thanks!
    It´s working now. It was a matter of deactivating the cache plugin.
    I still have a similar problem, but i will create another thread for it. I´ll post the link.

    Edit: here it is: http://wordpress.org/support/topic/how-to-include-some-static-html-file-in-a-parent-and-child-theme

Topic Closed

This topic has been closed to new replies.

About this Topic