Change favicon and logo urls to https

Home Forums IncomeUp WordPress Theme Change favicon and logo urls to https

This topic contains 1 reply, has 2 voices, and was last updated by  ab-themes 8 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12195

    Tanja-one
    Participant

    Hi there

    We added a EV SSL certificate for our website today so that everything is now https. Now we get an insecure message because the favicon and the logo urls are still http. Where can I change this urls to https?

    Thanks.

    #12200

    ab-themes
    Keymaster

    Favicon is located in the header.php but the code for getting the url is

    <link rel="shortcut icon" type="image/x-icon" href="<?php echo get_theme_mod_not_empty('favicon', TEMPPATH.'/images/favicon.png');?>" />

    It’s pulling the option from the customizer to show the favicon. This however is obsolete in wordpres 4.3.1, since you put your favicon by putting the ‘Site Identity’. So that should be over https.

    Logos are located in partials folder in header_layout_ files. But they are all pulled from customizer, so they should also be governed by wordpress.

    $header_logo = get_theme_mod('header_logo', '');
    
    <img id="main_logo" src="<?php echo $header_logo;?>" alt="<?php bloginfo('name');?>">

    As you can se we only call the native wordpress functions. We never specify the protocol.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Change favicon and logo urls to https’ is closed to new replies.