Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch theme for one page only in Wordpress

Tags:

php

wordpress

Is there a way we can change to a specific theme for a specific page only in Wordpress?

I tried easy theme switcher but the problem with that is that it changes theme permanently.

I don't want that...

like image 327
John Kim Avatar asked Jul 03 '12 01:07

John Kim


1 Answers

I am not 100% sure of exactly what you want to achieve - but if it is only to have a different display for a single page (rather then really change ALL the theme to include all the functions etc..) , then -

You should can create a page-template and then choose it in the drop-down menu for your page .

(in the sidebar - Page-attributes ->Template)

In that case , you could also use specific functions by adding them to the page itself (before the output.)

For example :

<?php
    /*
    Template Name: my-page-name
    */
    function my_specific_page_function() {
    //..do_whatever
    }
?>
like image 157
krembo99 Avatar answered Sep 24 '22 19:09

krembo99