• I have read every piece of documentation I can find on creating templates, but I am very obviously missing something.

    I am using the default template for WordPress. I installed the e-Commerce plug-in. It works wonderfully. But I don’t want my shop pages to look the same as my blog pages. I decided to create a new page template to use for the e-Commerce pages.

    I did what I *think* I’ve been reading is needed – created a very simple page in html, then added the php code to the top of it and saved it as a php file and used ftp to get it up to the wp-content>>themes>>default directory. The name of the page template file is pennylanebath.php

    Here is the exact source code for the page:

    <?php
    /*
    Template Name: PennyLaneBath
    */
    ?>
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; dir=”ltr” lang=”en-US”>
    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
    <title>Penny Lane Bath Products</title>
    <body>
    <div align=”center”>
    <center>
    <table border=”1″ cellpadding=”0″ cellspacing=”0″ style=”border-collapse: collapse; border-width: 1″ bordercolor=”#F2F2F2″ width=”760″ id=”AutoNumber6″ height=”1399″>
    <tr>
    <td width=”760″ style=”border-style: none; border-width: medium” height=”419″ bgcolor=”#F2F2F2″ bordercolor=”#F2F2F2″ valign=”top”><img src=”https://backtobasicliving.com/blog/wp-content/themes/default/images/pennylanebanner.jpg&#8221; width=”760″ height=”100″ />
    </td>
    </tr>
    </table>
    </center>
    </div>
    </body>
    </html>

    I selected the pennylanebath template as my page template for the “products page” that comes with e-commerce. The problem is that even though the page I created is showing up – the page is blank, and NONE of the e-Commerce stuff displays. https://backtobasicliving.com/blog/penny-lane-bath-products/?preview=true If I switch it back to the “default template” the e-commerce content displays just fine – but that’s not the template I want to use.

    Will someone please tell me what I’m doing wrong?

    Thanks in advance,
    Penny

Viewing 1 replies (of 1 total)
  • Thread Starter basicliving

    (@basicliving)

    That should have read “I am using the default theme for WordPress.” not default template. My apologies for any confusion.

Viewing 1 replies (of 1 total)
  • The topic ‘Template page help please – I’m sure there is a simple answer’ is closed to new replies.