Where is the favicon? - wordpress

This might be a silly question... I usually add my Favicon's in the area of the my site, but a previous developer has set this website up.
I usually add code a bit like this:
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/assets/images/favicon/favicon.ico" type="image/x-icon">
The site has a favicon but I can't find where its being created, or even where its being held in the WordPress theme: https://www.sbccanford.co.uk/
Any ideas? I've popped the URL to the website above.
Thanks,
Meg

It seems that was added in the customizer. Go to Admin Dashboard -> Appearence -> Customize -> Site identity. and its there.

Related

WooCommerce Remove WordPress Header lines

I am just about to launch an eCommerce site using WordPress and WooCommerce and trying to tidy up the source code and strip out all the WordPress header lines.
The site is pure eCommerce with a blog for users and search engines, I believe the functions below are for a pure blog website.
<link rel="profile" href="http://gmpg.org/xfn/11"/>
<link rel="pingback" href="http://www.domain.co.uk/xmlrpc.php"/>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.domain.co.uk/xmlrpc.php?rsd"/>
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.domain.co.uk/wp-includes/wlwmanifest.xml"/>
Does anyone know what is required from the above for WordPress to function? And how we can remove these from WordPress, if we can?
Thanks Kindly.
J
You can safely remove all of these from your header.php file. They aren't required for the site to function.
More info: In HTML5, the "profile" attribute was dropped.
The others are purely optional.
For de-registering the bottom two, you'll need to add some new lines to your functions.php:
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
These functions, from the wp_head action hook, can be viewed in wp-includes/general-template.php, starting on line 2190.
From this file, rsd_link "display(s) the link to the Really Simple Discovery service endpoint."
The wlmanifest_link "display(s) the link to the Windows Live Writer manifest file." If you don't use Windows Live Writer, there's no need for this.

Favicon not working for wordpress site

I am trying to add favicon to mysite but it is not working. I have put my favicon to C:\xampp\htdocs\wordpress\wp-content\themes\expound folder
Then in header.php file, I put the code below:
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
Have you tried selecting your site's "icon" in the admin panel? It's a little hard to find, but it's there.
Open your site then customize -> open Site Identity -> Set Site Icon after you can show favicon icon.

How to get magento header in wordpress

I am having word press installed in side a sub directory of magento like
---Magento
----wp
--Blog (This is word press directory)
In word press we have header.php in theme folder.There I am trying to access the magento header block.
I am able to get this following way(Below code is written in head section of header.php of wordpress)
Mage::getLayout()->createBlock('page/html_head')->toHtml();
When I echo this I am able to get the magento header.But the css and js of magento application are not rendered as well the word press application is halting after rendering the content of magento. i.e nothing comes after header.
Please suggest me idea how can I get the css and js of magento application and the wordpress content properly?
The dirty way is to link Magento JS and CSS in your header.php file. like
<script type="text/javascript" src="<?php getSkinUrl('jsfolder/js.js') ?>"></script>
<link rel="stylesheet" type="text/css" href="<?php getSkinUrl('cssfolder/style.css') ?>">
There's actually a tweak in page.xml file but I wonder how, or why not to play it yourself?

Favicon stopped working in Chrome all of the sudden

I have this code used in my WP theme:
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/fav.ico?<?php echo date('U'); ?>">
and not cache it, since <?php echo date('U'); ?>. My problem is, and my client reported it to me today, that the favicon stopped showing only in Chrome. I tried moving it to the root of the page, adding type, removing the "refresh" hack, changing name to favicon.ico and even adding additional link icon for PNG image. Nothing helps. Yes, I've been trying to
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/fav.ico?v=2">
Can someone help me with this one?
If you have messed up with the code then use plugins like http://wordpress.org/plugins/custom-favicon/
This plugin will override your theme favicon functionality and will help you with your desired result.
This should help.

Choosing a specific stylesheet on a wordpress site when showing the site in a tab

This might be an easy question (hopefully) for you to answer. Not sure this is the right place to post the question, since I do not know if this is a CSS issue or a normal PHP programming issue (I know very little about PHP programming), so here goes:
I have a wordpress blog that uses three different stylesheets depending on the platform where the blog is viewed (web, ipad, iphone).
I recently made a tab on my Facebook page which opens the blog in an iframe, but it opens the web-style (default) stylesheet which is way too wide for the max width in Facebook tabs (810 px). However, the ipad-adapted stylesheet would work just fine there. I still wish to see the normal web-style view when I enter my web from outside Facebook, so it isn't an option to swith to the ipad-stylesheet as a default stylesheet.
Is there a way of passing on a parameter from the facebook tab: e.g. http://www.myblog.com/?style=facebook so that the site that shows inside the facebook tab uses the right stylesheet? I would think more people have had this problem but I have scoured the Internet for hours without knowing really what to look for. Somebody spoke about CSS selectors, but I have no clue as to how they work or how to implement them in a solution.
This is the code in the header.php that deals with the stylesheets:
<!-- Theme Styles -->
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/style.css" type="text/css" media="screen" />
<?php $disable_theme_features = of_get_option( 'disable_theme_features' ); if ($disable_theme_features['4'] == '0') { ?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/style-ipad.css" type="text/css" media="screen" />
<?php } if ($disable_theme_features['3'] == '0') { ?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/style-iphone.css" type="text/css" media="screen" />
<?php } ?>
Is there a way to make this happening without resorting to a complete makeover of the template? Any help would be greatly appreciated!! And sorry again if this is a noob question, that is because i am noob at PHP.
Thanks again!
You could use a PHP if statement. Such as if at the URL, then use this stylesheet.

Resources