Plugin for adding single page background? (2 posts)

  1. Martinl276
    Posted 3 years ago #


    Anyone know of a plugin, or an wasy way, to add a background image for a page?

    I want it to appear above my website background.
    I don't want the same image for all pages, I would like to select a different image for each page and type text over the top.

    Thanks in advance

  2. Jonathan Dingman
    Posted 3 years ago #

    Why not just use a conditional tag and CSS?

    <body class="<?php if ( is_single() ) { echo "single-page"; } ?>">

    Then just style .single-page { background-image: url(/your-path.jpg); }

    Something that like would be much more efficient, instead of using a plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic