Help to setup wordpress themes site

Status
Not open for further replies.

ChaoscripT

Active Member
1,005
2010
11
20
Hi,
I want to create wordpress themes site,
That users can download themes,
I need help how to setup the "demo" themes, that when user click on "demo", it will show him the theme.

Regards.
 
1 comment
Hi,
I want to create wordpress themes site,
That users can download themes,
I need help how to setup the "demo" themes, that when user click on "demo", it will show him the theme.

Regards.

So then you can either show them a picture or create a new directory, setup a different wordpress in a new directory that the link will take you too, or switch your sites theme to that theme they click on using something like this:
Code:
<?php 
function thisismyurl_change_theme_manually() {
  if ( 'twentyeleven' != get_stylesheet() && is_admin() )
    switch_theme( 'twentyeleven', 'style.css' );
}
add_action( 'template_redirect' , 'thisismyurl_change_theme_manually' );
 
Last edited:
Status
Not open for further replies.
Back
Top