Favicon issue

I have a problem with the favicon . There is 1 page where i do not have a favicon may be because i am using a path and not the classic wordpress favicon. How could be possible to solve this issue ? thanks

Hi There,

Thanks for writing in! By default, it will not be visible. Please try adding the following code into your child theme’s functions.php file. If you don’t have an active child theme, please follow our child theme setup guide here (https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57).

// Add Favicon to WP Login and WP Admin
function add_favicon() {
    $favicon_url = 'https://mallorcandibiza.com/wp-includes/images/favicon.ico';
  echo '<link rel="shortcut icon" href="' . $favicon_url . '" />';
}
  
// Run the function on WP Login and WP Admin
add_action('login_head', 'add_favicon');
add_action('admin_head', 'add_favicon');

Hope that helps.

Unfortunately , does not work

Hi There,

That is because /Support link is not built using WordPress. It seems to be a separate template and I don’t see WordPress running on that pages.

You can directly add the following meta tag to those pages between <head> and </head>

<link rel="shortcut icon" href="//example.com/wp-includes/images/favicon.ico">

Hope that helps.

and in which part i must add this code , where is the head head option/page ?

Hi again,

Since /support is not built with WordPress, we’re unsure about the code structure, you’ll need to edit the source code and find the <head> </head> tags and place the above code in between, please see https://www.w3schools.com/html/html_head.asp

If you’re not sure how to do this, you’ll need to contact the developer who built the /support page

Hope this helps!

Solved thanks you , perfect support as always , Applause, apllause +1

Awesome thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.