Serving header image from an external Url

  • jaouadk

    #2968

    The theme is set to upload header image from wp-content, how to serve an image from external source so I can minimize bandwidth.?

    Thanks

    Anonymous

    #22903

    Hmmm Don’t know whether it works or not. But give it a try,

    In header.php, change

    <div id="header" style="background-image:url(<?php echo $header_img; ?>);">

    to

    <div id="header" style="background-image:url("http://imagehostedwebsite.tld/imagename.format");">

    where http://imagehostedwebsite.tld/imagename.format is the location of the image.

    Anonymous

    #22904

    Hotlinking is not a good thing though…

    jaouadk

    #22905

    NO no, don’t worry, I only upload images in Online Photo and Video Hosting websites, so there is no hotlinking I guess.

    Thanks a lot for your quick reply.

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.