Title: Link to CSS vs HTTPS
Last modified: June 11, 2018

---

# Link to CSS vs HTTPS

 *  [opino](https://wordpress.org/support/users/opino/)
 * (@opino)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/link-to-css-vs-https/)
 * I installed the wordpress on january 2018. Since then I installed all updates.
   The below issue occurs since the installation, even if I installed all updates.
   But it occurs just spontanously. It disapeares on the next day and comes back
   after few days.
    The <link tag sometimes contains simple HTTP links and sometimes
   HTTPS. I was not able to find any coherency when there is HTTP and when HTTPS.
   See the below example from [http://www.opat.sk/category/pivo-a-vino/](http://www.opat.sk/category/pivo-a-vino/):
 *     ```
       <link rel='stylesheet' id='foobox-noie7-min-css'  href='http://www.opat.sk/wp-content/plugins/foobox-image-lightbox/free/css/foobox.noie7.min.css?ver=2.5.2' type='text/css' media='all' />
       <link rel='stylesheet' id='foogallery-core-css'  href='https://www.opat.sk/wp-content/plugins/foogallery/extensions/default-templates/shared/css/foogallery.min.css?ver=1.4.30' type='text/css' media='all' />
       <link rel='stylesheet' id='catchkathmandu-style-css'  href='http://www.opat.sk/wp-content/themes/catch-kathmandu/style.css?ver=4.9.6' type='text/css' media='all' />
       ```
   
 * As you can see, the second line is HTTPS while the rest is HTTP. This happens
   just sometimes and just on some subpages of my site. For example at the same 
   moment I tried another subpage where it was only HTTP on the same part of the
   code. [http://www.opat.sk/fotky-apartmanu/](http://www.opat.sk/fotky-apartmanu/)
 *     ```
       <link rel='stylesheet' id='foobox-noie7-min-css'  href='http://www.opat.sk/wp-content/plugins/foobox-image-lightbox/free/css/foobox.noie7.min.css?ver=2.5.2' type='text/css' media='all' />
       <link rel='stylesheet' id='foogallery-core-css'  href='http://www.opat.sk/wp-content/plugins/foogallery/extensions/default-templates/shared/css/foogallery.min.css?ver=1.4.30' type='text/css' media='all' />
       <link rel='stylesheet' id='catchkathmandu-style-css'  href='http://www.opat.sk/wp-content/themes/catch-kathmandu/style.css?ver=4.9.6' type='text/css' media='all' />
       ```
   
 * This is not related just to foobox nor to foogallery as I noticed the same begavior
   also with the theme CSS.
    Simpy said, some CSS are linked with HTTP and some 
   with HTTPS and it is not depended on one plugin. Any idea why this happens and
   how to prevent it? Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flink-to-css-vs-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Jeroen Rotty](https://wordpress.org/support/users/jeroenrotty/)
 * (@jeroenrotty)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/link-to-css-vs-https/#post-10396209)
 * Hi there,
 * You should backup your database, do a search-and-replace in the database ([this script is really nice for that](https://interconnectit.com/products/search-and-replace-for-wordpress-databases/),
   from InterConnect.it). And should look if that solves things.
 * Jeroen

Viewing 1 replies (of 1 total)

The topic ‘Link to CSS vs HTTPS’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [link](https://wordpress.org/support/topic-tag/link/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Jeroen Rotty](https://wordpress.org/support/users/jeroenrotty/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/link-to-css-vs-https/#post-10396209)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
