WordPress.org

Support

Support » How-To and Troubleshooting » add html to a page template??

add html to a page template??

  • 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(); ?>

Viewing 1 replies (of 1 total)
  • 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>

Viewing 1 replies (of 1 total)
  • The topic ‘add html to a page template??’ is closed to new replies.