• Hi everyone okay so I have a page that I want to have as a different theme.

    Meaning the whole is is the same theme just a page with a different theme.

    I looked everywhere and can’t find exactly what I’m looking for, is there a plugin for this perhaps?

    Please let me know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Not quite clear what you want to achieve. If you want to make a template for Pages within your theme, you create a file, yourname.php in the theme folder, and in the head of the file, you put:

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

    It will then show up in the Templates-menu in your Page Editor.

    Thread Starter comiccon69

    (@comiccon69)

    Thanks! But, I did that and it shows up in the page template, but when I load the page it just comes out blank?

    I made the arras-theme.php file on notepad, saved it a php script then went into my ftp client went to the theme I am currently using and just transfered the file over to my site’s theme.

    <?php
    /*
    Template Name: arras-theme
    */
    ?>

    That’s what is in the php file

    What am I doing wrong?

    Your file just contains the template name. You need to fill it with PHP-code, f.i. the Loop. You could start by copying in the contents of your page.php, and edit it to fit your needs.

    <?php
    /*
    Template Name: arras-theme
    */
    get_header();
    ?>
    
    *Your template file here, the Loop and such.*
    
    <?php get_footer(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Making a page a different theme’ is closed to new replies.