• 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 the
    has_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)
  • 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 knowa

    Neither can the WordPress support volunteers here help. We don’t have access to the source code of the Divi theme at all, as it’s a commercial product.

    You need to contact the folks you purchased the Divi theme from for help. They built and sold the product, and they should be in the best position to help you customize the commercial theme you purchased from them.

    Divi theme vendor’s support page: https://www.elegantthemes.com/contact/

    Good luck!

    Thread Starter sibichan

    (@sibichan)

    I have modified the header.php with following

    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
    <link rel="icon" type="image/png" sizes="48x48" href="/android-chrome-48x48.png">
    <link rel="icon" type="image/png" sizes="96x96" href="/android-chrome-96x96.png">
    <link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">

    When theme upgrade, changes will be lost, Can we make these changes permanent in someway ?

    I have modified the header.php…

    When theme upgrade, changes will be lost, Can we make these changes permanent in someway ?

    The standard “how” is to have theme HTML changes in a child theme.

    But, in my opinion, you shouldn’t have to modify a theme’s code or create a child theme just to have favicons. That’s why I suggested you contact the vendor you purchased the theme from for help.

    Good luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.