Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Custom page in Wordpress

  • 22-02-2012 06:34PM
    #1
    Registered Users, Registered Users 2 Posts: 2,789 ✭✭✭


    Would anyone know the easiest way to do this? I've taken an existing theme, modified the style sheets to my liking and now want a couple of custom pages. I can this this by placing this code at the top of a HTML file and renaming .PHP and uploading.
    <?php
    /*
    Template Name: *custom*
    */
    ?>
    

    This works great, but I'd like the ability for my client to edit via the dashboard. Do I need to start modifying an existing page? I really just want to apply predetermined styles and remove the header.


Comments

  • Closed Accounts Posts: 7,144 ✭✭✭DonkeyStyle \o/


    placing this code at the top of a HTML file and renaming .PHP
    This isn't really how you're supposed to use templates.
    Instead, make your template.php file from a copy of single.php and make the necessary changes to that.
    When you do it this way, the client can still edit the text like any other wordpress page.


  • Registered Users, Registered Users 2 Posts: 2,789 ✭✭✭grizzly


    Thanks, I'll try that.


Advertisement
Advertisement