Separate template for each category (4 posts)

  1. Anonymous
    Posted 11 years ago #

    Is there a way of having each category use its own template?

  2. sicro
    Posted 11 years ago #

    If there's a way of doing this - I would be intersted, too.

  3. dylan
    Posted 11 years ago #

    I, am also looking for something to vary the design according to category. perhaps there is a way to do things conditionally, where, if category = x then sidebar content = y or something like that?

  4. hgrietkerk
    Posted 11 years ago #

    I actually changed my site to have a seperate template for the homepage than for the other pages. The solution was somewhere in this forum under "design".
    I replaced the following string:
    @import url( <?php echo get_settings('siteurl'); ?>path and name of stylesheet );
    with the following one:
    @import url( <?php if ($cat == "1") {echo "path and name of stylesheet );";}else{echo "path and name of second stylesheet );";} ?>
    In the line above I included the url in the path. It works, you can check out my site.
    It is not so pretty (some of the php guys can do it a lot better...)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.