Serving header image from an external Url

  • jaouadk


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




    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; ?>);">


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

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



    Hotlinking is not a good thing though…



    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.
Graphene Themes Forum