Ready to get started?Download WordPress


add html to a page template?? (2 posts)

  1. mstry510
    Posted 1 year ago #

    I have the simple page template code below. How do I add an image from the media library to show as my content area background?

    Thank You.

    Template Name: About
    get_header(); ?>

    <?php get_footer(); ?>

  2. jibbius
    Posted 1 year ago #

    you can add html code anywhere between ?> and <?php

    Note: Traditionally, you would do this via css... but you can do the following:

    body {background-image:url('pathtoyourimage.jpg');}

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.