WordPress.org

Ready to get started?Download WordPress

Forums

Plugin for adding single page background? (2 posts)

  1. Martinl276
    Member
    Posted 1 year ago #

    Hi

    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
    Martin

  2. Jonathan Dingman
    Member
    Posted 1 year 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