Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

favicon

favicon
    • 6 years, 8 months ago marco.oltremateria
      Participant

      Expired

      Hi,

      after updating specular theme on http://www.oltremateria.it the favicon is missing.

      I checked the core-functions.php file as you suggested in other tickets and it seems correct: it contains already the following code:

      <span style=”color: #4b4d4d; font-family: Inconsolata, Consolas, Monaco, ‘Lucida Console’, monospace; font-size: 15px; white-space: pre; background-color: #f9f9f9;”>/*——————— FAVICON ———————————————– */ if(!function_exists(‘codeless_favicon’)) { function codeless_favicon($url = “”) { $icon_link = “”; if($url) { $type = “image/x-icon”; if(strpos($url,’.png’ )) $type = “image/png”; if(strpos($url,’.gif’ )) $type = “image/gif”; $icon_link = ‘<link rel=”icon” href=”‘.$url.'” type=”‘.$type.'”>’; } return $icon_link; } } /*——————— End FAVICON ———————</span>

      I also tried to upload a new favicon with a new name, in specular theme options, but no favicon is visible yet.

      The site has a specular-child theme, I do not know if there is something to change in child-theme

      Regards

      Marco

       

       

    • 6 years, 8 months ago Mirela
      Participant

      Hello,

      Is child theme active at the moment? Did you made any changes of code in the child theme? Please try activating parent theme and see if favicon shows up.
      If it does, then another code in your child theme is changing it (taking priority).

      Let me know how it goes.
      Best regards!

    • 6 years, 8 months ago marco.oltremateria
      Participant

      Expired

      Ok,

      yes the site has a child theme. I tried to activate the main specular main theme but still the favicon doesn’t show.

      I found that on IE the favicon is appearing, but only with this browser, while is still missinig on other browsers like chrome and firefox.

      Do you see the favicon in your browser?

      I checked the child theme but it seems that no function is influencing the favicon.

      Any suggestions?

      Regards

      Marco

       

    • 6 years, 8 months ago Ruco
      Keymaster

      Hello,

      Please try to delete the the lines below in header.php file:
      <?php if (function_exists('codeless_favicon')) { echo codeless_favicon($cl_redata['favicon']['url']); } ?>

      After that please check this article on how to add the favicon in the latest WordPress version:
      https://codex.wordpress.org/Creating_a_Favicon

      Regards!

    • 6 years, 8 months ago marco.oltremateria
      Participant

      Expired

      Pardon me,

      do you me header.php in spcular directory?

      I see several header.php files in different directories:

      \wp-content\themes\header.php

      \wp-content\themes\specular\admin\templates

      \wp-content\wp-includes\header.php

       

      Regards

      Marco

    • 6 years, 8 months ago Mirela
      Participant

      Hello,

      Every change you do to theme, would be in files inside the specular theme folder. Not any other folder outside it. The file mentioned is located in
      \wp-content\themes\specular\header.php.
      Screenshot: https://postimg.cc/image/bh9x9ty13/

      Best regards!

    • 6 years, 8 months ago marco.oltremateria
      Participant

      Expired

      Ok,

      if I delete these lines in header.php , but in this case still there is no favicon appearing in chrome and then also in IE it disappeared.

      So after deleting the code lines, I uploaded favicon.ico in root directory of the site and finally the favicon appears in chrome and IE.

      I am not sure it is visible in firefox, could you please check in your browsers?

      Regards

      Marco

    • 6 years, 8 months ago Ruco
      Keymaster

      Hello,

      After deleted these lines you have to add the new icon at:
      1.Go to Administration Screen > Appearance > Customize
      2. Click Site Identify
      3. Click Select Image at Site Icon section, upload the image file you prepared in the above step from Upload Files tab screen, and click Select.

      Let us know.

      Regards!

Viewing 7 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password