Home Forums Pro Themes Education Hub Pro Header Image not served by CDN

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #153379
    Neil Anderson
    Participant

    Hi,

    All my images are being served by my CDN apart from my Header Image.

    When I place the same image in a normal page it is served by the CDN, but when it’s set as the Header Image it is served locally, so it looks like the theme is causing it.

    Here it is being served by the CDN when it’s in a normal page https://study-ccna.com/temp-picture/ as shown in GTmetrix:
    Served by CDN

    And here it is being served locally across the rest of the site when it’s the Header Image:
    Served locally

    What do I need to do so that the Header Image is served by my CDN please?

    Thanks!

    #153390
    Psink
    Keymaster

    Hello Neil,

    I guess the issue is the way that header image is used.

    For example, when the same image is used on normal pages it’s directly loaded on a page, so there is no issue.

    But when the image is used for the header, in this case, the image does not load directly on the page instead images is loaded through CSS

    form this css
    #masthead {
    background-image: url(https://study-ccna.com/wp-content/uploads/Study-CCNA.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    }

    Hope you understand this case

    Regards,

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.