• Resolved Taryn

    (@ladytike)


    I’m new to WordPress, and so between all of the posts I’ve seen on this topic, I’d like someone to please tell me if what I’m thinking is something I can do.

    I want my daughter to be able to have her own blog with it’s own theme, but have it on our main site. So, can I create a category for her to post her stuff to, and create a different theme just for her category?

    To create her category theme (I’m no designer), can I download a free theme, use one of the page templates from that theme, put it in our blog’s directory, then somehow call it for her category?

    Thanks! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Taryn

    (@ladytike)

    Sorry to repost this, but just didn’t want to waste a lot of time doing this if a) it’s not the right thing to do, or b) there’s a better way to do it. 🙂

    yes and no.

    You can have a seperate category.php for your her posts, so that they are styled differently.

    The bit about just using another theme, though is a little more tricky, since each theme has its own associated CSS.

    You could, I ‘spose hardcode the CSS call into the new category.php

    For instance,

    you find a category.php from another theme that you like.

    If the category that you want to change is numbered 3 then I believe you rename the file category-3.php

    (You will want to check the codex on that to make sure, I could be wrong, but its similar, if not correct)

    You take THAT themes style.css and rename it to something like daughter.css.

    Edit the category-3.php so that you are hardcoding the call to daughter.css, so instead of the usual:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    You would change that so that it reads:

    <link rel="stylesheet" href="http://blahblah/daughter.css" type="text/css" media="screen" />

    Upload the renamed files to the theme directory that is being used for the rest of the site.

    The bigger problem though with that method is that your header.php, sidebar, etc.. is going to be the same. Fixing that *might* be as easy as removing <?php get_header(); ?> and all the other calls from the new category-3.php, taking whats inside that theme’s sidebar.php, footer, header, etc,… and combining it all into category-3.php

    Im guessing that could be done.

    Thread Starter Taryn

    (@ladytike)

    Yay! Thank you so much! I decided to do this with pages instead of categories, but your instructions were dead on and it’s working! Here’s my site, and the “Desi” pages are a whole different theme.

    Thanks again! 🙂

    I think it would be great if a future version of WordPress could have support for separate category themes, with their own sidebars and themes, built in. This seems to me to be an obvious feature for a lot of reasons.

    Thanks,
    jtg
    http://jtg.us

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Different theme for each category’ is closed to new replies.