Tagged: x
-
AuthorPosts
-
February 26, 2017 at 7:13 am #1386124
bradmacleanParticipantHello,
I’ve been working with WPengine to set up and configure their CDN offering. They put in a #of rules to force my sites assets to CDN to get the performance benefits that come with it. However, they were unable to force my site background image and suggested I reach out to you for a recommendation. Here is the asset:I added this image to my site background from the “Layout and Design” section under customize (see attached).
This is the biggest image on my site and shows up on every page so it would be very beneficial to get it on CDN.
Thanks!
BradFebruary 26, 2017 at 7:15 am #1386126
bradmacleanParticipantThis reply has been marked as private.February 26, 2017 at 7:33 am #1386141
ChristianModeratorHey there,
Try removing the background then set it up again so it’ll use the CDN updated URL.
Thanks.
February 26, 2017 at 8:11 am #1386155
bradmacleanParticipantThx Christian for the quick response. It did not work. Here’s what I did:
1) Removed background image via customize
2) Saved
3) Purged caches
4) Re-added background image and saved
5) Ran speed test on GTmetrix and checked requests via waterfall tabIt does not show it having the CDN domain.
FYI Here are the HTML post-processing rules i have in place:
#https?://(www\.)?(will2walk.org|w2wfoundation.wpengine.com|2d1j0u3jkk3u3hvho61hegor.wpengine.netdna-cdn.com)/wp-(content|includes)# => https://2d1j0u3jkk3u3hvho61hegor-wpengine.netdna-ssl.com/wp-$3
Thanks,
BradFebruary 26, 2017 at 8:42 am #1386165
ChristianModeratorThanks for the additional details. I see the issue now. X uses a protocol relative URL in this section. Regretfully, the only solution for this currently would be to modify the file
themes\x\framework\functions\global\admin\customizer\output.phpReplace
<?php echo x_make_protocol_relative( $x_design_bg_image_full ); ?>with your image CDN URL.I’ll forward this to our development team for investigation.
Thanks.
February 26, 2017 at 9:27 am #1386214
bradmacleanParticipantThanks! I’ll standby.
Best,
BradFebruary 26, 2017 at 9:42 am #1386225
ChristianModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1386124 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
