• ok i need to creat a custom page template that is simple and doesn’t have the headers footers and the side bar.

    for example i want to have different contact forms that open into a new window that is just the contact form and not all the other stuff i have on my website

    my web site is MOREinMORELL.com

    Thank you in advance for any help, PS I am new at this

    Denise

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter denise morell

    (@denise-morell)

    yes i have read this and i added the code but i need it to not have all the nav bar side bar and other stuff from my website, i need to know what to do for that

    added what code?
    you create the page template and leave out

    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    etc.

    a good place to start is copy the theme’s page.php
    you will need to rename it to something else and add

    <?php
    /*
    Template Name: anythingyouwant
    */
    ?>

    to top

    then just start removing stuff you don’t want from file

    Thread Starter denise morell

    (@denise-morell)

    thanks for trying, but i am not getting it, where do i copy the page and now i am noticing that my pages are being under lined i dont know what i did to achieve it, but i have to fix it

    ftp to site or use host’s file manager
    download the page.php file from your theme
    open it in notepad or any plain text editor
    save it as newpage.php (or whatever you like)
    open newpage.php
    add this to very top

    <?php
    /*
    Template Name: newpage
    */
    ?>

    start removing the stuff you do not want – like sidebar, footer, etc.
    when done – save
    upload newpage.php to same place as your theme’s page.php
    now go to add new page in dashboard
    in right sidebar is a drop down to choose templates
    your newpage template should show there
    select it
    add content you want – save/publish

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘custom page template’ is closed to new replies.