Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: background image

    Just thinking you could try using custom tags in the admin, put the image url in there and then just do something like –

    Create custom tag called BGIMAGE with the image url as the value. Then use this in the head of the header file….

    <?php $key = "BGIMAGE";
    $BGIMAGE = get_post_meta($postID, $key, true); 
    
    if(!empty($BGIMAGE)) { ?>
    <style>
    body {
    background-url:('<?=$BGIMAGE; ?>');
    }
    </style>
    <?php } ?>

    Hope that helps.

    Marc

Viewing 1 replies (of 1 total)