Site logo

Archived topic

CSS Issue

15 replies · Started by Forum User on February 6, 2022

Viewing posts 1–15 of 16

You just assited me with a mobile image sizing issue but I think I may have done something wrong when I added the CSS.

On my desktop site my bottom header/page hero is missing https://www.tryhypnosisnow.com/wp-content/uploads/2021/02/NYC-Hypnotherapy-for-weight-loss-stop-smopking-4-scaled.jpg

Notice the difference between these 2 screenshots.

https://postimg.cc/HrrDrZ20

https://postimg.cc/1nZLY9ZM

This is all of my additional CSS

#mobile-header img { width: 100%; height: auto; }
h1.entry-title {
display: none;
}
@media (max-width: 768px) {
    .page-hero {
        background-image: url(https://www.tryhypnosisnow.com/wp-content/uploads/2020/04/Hypnosis-NYC-for-quit-smoking-weight-loss-anxiety-phobias-confidence.jpeg);
    }
}
@media (min-width: 769px) {
    .main-navigation li.search-item {
        display: none !important;
    }
}
#mobile-header .inside-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.main-navigation .mobile-bar-items {
    order: 4;
}
input.ticket-selector-submit-btn {
background-color: #001de0!important; color: #fffff;
}
@media(max-width: 1024px) {
    .page-hero {
        display: none;
    }
}
@media(max-width: 768px) {
    .wp-block-image.small-image img {
        max-width: 150px;
    }
    .wp-block-image.small-image figure {
         text-align: center;
    }
}
@media (max-width: 531px) {
  #mobile-header {
      min-height: 154px;
  }
  .site-logo.mobile-header-logo {
    min-height: 93px;
    width: 100%;
  }
}
@media(max-width: 500px) {
  .wp-block-image .alignleft,
  .wp-block-image .alignleft img {
    float: none;
    width: 100%
  }
}

Hi there,

Can you try disable your lazy load plugin?

Done.

done

I found this CSS on your site:

.featured-image {
    display: none;
}

If you can disable your cache plugin, I should be able to tell where the CSS is coming from.

Cache plugin disabled

Hi there,

I've checked the site as well and Autoptimize seems to still be active as I see this element -
<style id="aoatfcss" media="all"> which holds the CSS Ying found, and the cached file - https://share.getcloudapp.com/7KuqXPRD

If you have CDN or your webserver has page caching, you may have to clear them as well. :D

I cleared my CDN cache and Autoptimize has been disabled.

Your featured image is now showing correctly, I assume you've figured it out?

Let me know :)

When the plugins are disabled the image shows but when I activate the plugins it does not. On which browsers are you checking the image?

I'm using Chrome.

When the plugins are disabled the image shows but when I activate the plugins it does not.

When the plugin is activated, the cached CSS stopped the featured image from showing.

I would recommend reaching out to the plugin support for a complete cache clearing.

Thank you

This archived topic is closed to new replies.