• Resolved dtelliott86

    (@dtelliott86)


    Update: Updating to the latest version of LCP fixed the issue below. (I didn’t notice right away due to caching.)

    I’m using LCP on my site, and I’m looking to switch to HTTPS. However, I get an error message in some browsers because LCP tries to pull in its style sheet using HTTP. Here’s the code that browsers flag:

    <link rel='stylesheet' id='lcp_paginator-css' href='https://www.niacaction.org/wp-content/plugins/list-category-posts//lcp_paginator.css?ver=4.2.7' type='text/css' media='all' />

    How can I get the CSS file to load over HTTPS?

    I think the following code from the list-category-posts/list-category-posts.php file is what causes it to appear:

    function lcp_pagination_css(){
      if ( @file_exists( get_stylesheet_directory() . '/lcp_paginator.css' ) ):
        $css_file = get_stylesheet_directory_uri() . '/lcp_paginator.css';
      elseif ( @file_exists( get_template_directory() . '/lcp_paginator.css' ) ):
        $css_file = get_template_directory_uri() . '/lcp_paginator.css';
      else:
        $css_file = plugin_dir_url(__FILE__) . '/lcp_paginator.css';
      endif;

    https://ww.wp.xz.cn/plugins/list-category-posts/

The topic ‘Issue with HTTPS pages – fixed’ is closed to new replies.