Forums

[resolved] Separate theme for one page (3 posts)

  1. Rohaq
    Member
    Posted 5 years ago #

    I've got the vast majority of a WordPress site built; the layout's done, the blog and main content pages are done too, and displayed in an iframe on the main page. I also want a second iframe in another section that displays a particular page. Same page every time, but I need the ability to edit it in WP. It needs to be displayed with a different theme to the other pages though, since it's got considerably less space to play with.

    Anyone know how I can change the theme for this one page? Even if it means writing its own PHP page, that'd work just fine for me, but I don't know exactly how to specify which theme it should be using in that code.

    I tried renaming my index.php to another filename and defining define('WP_USE_THEMES', true); as false, thinking I could insert a CSS stylesheet in to deal with the themes, but then it just stopped displaying any code whatsoever in the browser.

    Cheers all.

  2. Kafkaesqui
    Moderator
    Posted 5 years ago #

    If by 'page' you mean Page, you can certainly create and apply a custom template to it (with it's own layout etc.):

    http://codex.wordpress.org/Pages#Creating_your_own_Page_Templates

  3. Rohaq
    Member
    Posted 5 years ago #

    Aah, that worked brilliantly, cheers.

    Now to figure out how to wrap long words.

Topic Closed

This topic has been closed to new replies.

About this Topic