Use CDN for Custom Header Image
placing the CDN url in the field
This is hotlinking. You shouldn’t do this because you are, in effect, stealing bandwidth.
Instead, download the images to your computer, upload them to your own site’s media gallery and link to them from their (for the social sharing icons), or upload them to the header options.
This is from Graphene’s “Top Bar Options” pane:
Please do not hotlink the icons on the site. Download the icons you need and upload them to your server instead.Mod
AnonymousApril 11, 2012 at 5:33 am #27552
Not recommended, but try this,
In header.php change,
<div id="header" style="background-image:url(<?php echo $header_img; ?>);">
<div id="header" style="background-image:url('http://image_path');">
image_pathwith the URL of your image hosted in a CDN server.
I’ve tried to do that. I copied a copy of header.php over to my child theme, and made the changes mentioned above. Cleared all caches. It is still coming from local server. Should I <restore original header image> in header settings? Maybe not use the child theme header file?
- You must be logged in to reply to this topic.