Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By DrupalUser17 on
Can you help please, I searched for this on google but I can't find a solution, How can I remove the drupal 8 favicon, i tried the theme sitting and global sitting but it's not changing anything because I have to put another link if I want to replace it with my own, But I don't want to replace it I want to remove it.
Thanks
Comments
~
Just drop your custom favicon in your site root. That's where browsers look first. Also make sure you flush your browser cache (you may have to do it several times and browsers seem to not to really care about refreshing fa icons very often). Many times I use a different browser, that hasn't been used on the site yet and it shows the new one there.
Thanks, But How can I get to
Thanks, But How can I get to the site root?
~
However you uploaded the Drupal files in the first place. FTP, ssh or your hosts file browser. Put it in the public file directory
I am not sure where it is, I
I am not sure where it is, I am new to drupal, I have uploaded drupal from cpanel to the main directory, but I can't find the folder that contain the favicon, Can you please tell me where can i find it. Thanks
~
Put it in the main directory.
To put it in the main
To put it in the main directory I have to find it, I can't find it.
~
You said you put Drupal in the main directory-put it there as well. Put it is the same one where you see core, sites etc.
You are using Cpanel so it will be the public_html directory
So you're telling me to put
So you're telling me to put my own, But my main question was how to remove it completely I don't want to have favicon in my website.
~
http://www.inmotionhosting.com/support/edu/drupal-7/customize-theme/disa...
Theme folder
I put my new favicon in the theme folder, that usually works.
I want to remove the favicon
I want to remove the favicon it completely and not to replace it with anything.
~
Well, then I would try deleting it.
Yes, But where is it, I tried
Yes, But where is it, I tried to find it from the cpanel but I couldn't.
~
Usually you can find it in the theme folder, it depends on which theme you are using. If you use Bootstrap theme, it'll be under themes/bootstrap.
I am using "Bartik" custom
I am using "Bartik" custom theme, and can't find it there.
Empty favicon.ico file
Create an empty favicon.ico file in the folder core/themes/bartik, and check the page in a fresh browser.
cpanel
You have cpanel. You need to learn your file manager. It is under public html.
Yes I am looking there but
Yes I am looking there but can't find it.
I did that it's still showing
I did that it's still showing in the home page.
use hook_page_attachments_alter() in your .theme file
works for me, in drupal 8.4.4
just check that the favicon is in index [0] ;)