Viewing 1 replies (of 1 total)
  • ying

    (@yingscarlett)

    Hi @steveblues68 ,

    1. remove the Favicon from the Customizer > Site Identity.

    2. add this PHP code, replace the page id 2459 and 2458 to the actual post id, then replace the image URLs.

    add_action('wp_head', function() {
        if (is_page(2459)) {
            echo '<link rel="icon" href="https://domainname.com/uploads/2020/10/10/favicon-2459.png" />';
        } elseif (is_page(2458)) {
            echo '<link rel="icon" href="https://domainname.com/uploads/2020/10/10/favicon-2458.png" />';
        } else {
            // Add a default favicon URL here
            echo '<link rel="icon" href="https://domainname.com/default-favicon.png" />';
        }
    });

    Let me know if this helps!

    • This reply was modified 2 years, 10 months ago by ying.
Viewing 1 replies (of 1 total)

The topic ‘favicon’ is closed to new replies.