Return to Support

Serving header image from an external Url

Home Forums Graphene WordPress theme Support Serving header image from an external Url

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2968
    jaouadk
    Member

    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

    #22903
    Prasanna SP
    Member

    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.

    #22904
    Prasanna SP
    Member

    Hotlinking is not a good thing though…

    #22905
    jaouadk
    Member

    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.