• On https secured WP site, the following two links that throw http non-secure warning.

    @import url(https://fonts.googleapis.com/css?family=Autour+One|Meie+Script|Armata|Rum+Raisin|Sonsie+One|Kavoon|Denk+One|Gravitas+One|Racing+Sans+One|Nosifer|Ropa+Sans|Offside|Titan+One|Paytone+One|Audiowide|Righteous|Faster+One|Russo+One|Germania+One|Krona+One|Emblema+One|Creepster|Delius+Unicase|Wallpoet|Sansita+One|Monoton|Kenia|Monofett);
    
    <link rel=’stylesheet’ id=’rt-wpp-plugin-style-css’ href=’https://example.com/wp-content/plugins/rt-prettyphoto/css/prettyPhoto.css’ type=’text/css’ media=’all’ />

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This topic was modified 7 years, 8 months ago by bdbrown.
Viewing 1 replies (of 1 total)
  • Thread Starter highpitch

    (@highpitch)

    /* Adding Plugin custm CSS file */
    if(!empty($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] != ‘off’){
    wp_enqueue_style(‘rt-wpp-plugin-style’, str_replace( ‘http:’,’https:’, RT_WPP_PLUGIN_PATH ).’css/prettyPhoto.css’);
    } else {
    wp_enqueue_style(‘rt-wpp-plugin-style’, RT_WPP_PLUGIN_PATH.’css/prettyPhoto.css’);
    }

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This reply was modified 7 years, 8 months ago by bdbrown.
    • This reply was modified 7 years, 8 months ago by bdbrown.
Viewing 1 replies (of 1 total)
  • The topic ‘Replacing http with https’ is closed to new replies.