Background on Presentation Page only

  • Author
    Posts
  • #25214
    Amalia Maloney

    I really need help on this! I found this response in the forum about telling my Tempera theme to use the background image I want only on the Presentation Page:

    < ?php if (is_front_page()) {
    ?>
    body {
    background:url (link2yourimage.jpg) !important;
    }
    < ?php } ?>

    But so far it hasn’t been working. Do I put this in the Custom CSS field under Miscellaneous in the Tempera Settings?
    What code do I also put there to tell the header and content area of the Presentation page to be transparent for only the Presentation Page?
    Thank you!

    #25533
    Nick

    Hi Amalia,

    This is wordpress code, so I think you’d need to put it in your header php, but also include <style> tags…but I could be wrong….

    < ?php if (is_front_page()) {
    ?>
    <style type="text/css">
    body {
    background:url (link2yourimage.jpg) !important;
    }
    </style>
    < ?php } ?>

    Mind you I think this is only going to use a fixed size image, so is probably not so nice, unless you are using a tile image.

    Personally I think it might be better to use a plugin, to have a background that fits to individual screen size…..??

    #25573
    Amalia Maloney

    Hi Nick! Thanks so much for your helpful response. I took your advice and installed a plug-in called Background Manager that works great!
    Thanks again!

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

The topic ‘Background on Presentation Page only’ is closed to new replies.