WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mstry510
    Member
    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.

    <?php
    /*
    Template Name: About
    */
    get_header(); ?>

    <?php get_footer(); ?>

  2. jibbius
    Member
    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:

    <style>
    body {background-image:url('pathtoyourimage.jpg');}
    </style>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.