Tagged: x
-
AuthorPosts
-
May 21, 2016 at 11:58 am #1003074
iamwithUParticipantI’ve tried to use the Customiser to upload my new Favicon, but it doesn’t work. I’m trying to do it manually. But I understand I have to go to the header.php file.
But I can’t find the header.php file in X-child theme. Can advise?
May 21, 2016 at 7:57 pm #1003396
RadModeratorHi there,
Thanks for posting in.
Favicon through customizer should work, but if you wish to add it manually then you can add it here
\wp-content\themes\x\framework\views\global\_meta.php
It’s the same as header.php since it’s called by wp_head() action.
Thanks!
May 23, 2016 at 1:50 am #1004710
iamwithUParticipantHey thanks Rad, for prompt response in spite of the weekend 🙂
I understand that we should try to use the Child theme, in case there are updates. So is it safer to copy from the parent theme that whole file (in your reply above) and paste it in to the Child’s theme first?
If that will work, please advise which file in Child theme should I paste onto?
For reference, this is what WordPress documentation says:
“In order for your favicon to show up in some older browsers, you will need to edit your page header. Remember, the best way to edit your theme’s files is via a Child Theme. For the purpose of the following instructions you will need to create a copy of your parent theme’s header.php file in your child theme.Go to your WordPress Administration Screen.
Click on Appearance.
Click on Theme Editor.
Select the file called Header or header.php to edit the file.
Search for the line of code that begins with <link rel=”shortcut icon” and ends with /favicon.ico” />. Overwrite it, if it exists, or add the following code below the <head> HTML tag.
<link rel=”shortcut icon” href=”<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico” />”As I’m a beginner, and no experience in coding or CSS, I want to be extra careful in changing anything in the X parent theme. So your advice and steps to implement this will be much appreciated.
May 23, 2016 at 1:55 am #1004715
LelyModeratorHi There,
Yes, changes on the code should be added via child theme.
To do that, copy this file _meta.php from this folder \wp-content\themes\x\framework\views\global\ and paste it here: \wp-content\themes\x-child\framework\views\global\. It’s on the same path on your child theme. Then feel free to update that file on the child theme.
Hope this helps.
May 23, 2016 at 11:39 am #1005512
iamwithUParticipantTks Lely, will try it out after my trip. Appreciate the prompt response. Cheers!
May 23, 2016 at 11:40 am #1005517
RahulModeratorYou are most welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1003074 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
