Change CDN url in Favicon in Divi theme
-
Using Divi theme with godady hosting. When we check the favicon url in sourcode, it is like
<link rel="shortcut icon" />
I need to replace it with exact domain url.
1). Commented following code in html/wp-content/themes/Divi/epanel/custom_functions.php
add_action( 'wp_head', 'add_favicon' );
function add_favicon(){
global $shortname;
$favicon_url = et_get_option( $shortname . '_favicon' );
// If thehas_site_icon
function doesn't exist (ie we're on < WP 4.3) or if the site icon has not been set,
// and when we have a icon URL from theme option
if ( ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) && ! empty( $favicon_url ) ) {
echo '<link rel="shortcut icon" href="' . esc_url( $favicon_url ) . '" />';
} elseif ( function_exists( 'has_site_icon' ) && has_site_icon() ) {
et_update_option( $shortname . '_favicon', '' );
}
}But favicon code showing in sourcecode
2). I added the following in header.php
<link rel="shortcut icon" />
But in sourcecode showing like
<link rel="shortcut icon" />
Contacted godady and they replied
I am really sorry for the inconvenience we don’t have option to assist you with coding as we are not trained on it i request you to please check with your website admin? and let me know
Need favicon in the site itself, not on CDN. How to do this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.