WordPress.org

Ready to get started?Download WordPress

Forums

Custom Category Theme Hurdle. (9 posts)

  1. mattys
    Member
    Posted 6 years ago #

    Hello,

    I have been asked to make one WP installation into many
    so to speak by desiging a custom category theme, header ... for each cat' page. Which will be re-directed to via .htacess or whatever method they choose to use.

    EG; each custom cat pages becomes a mini site.

    I have done this by following the docs on custom cat pages
    but have run into a problem with the comments.

    How would i go about making a separate comments page that links to each custom header and cat page. ATM the comments page pulls the main header and i need to them indvidualized to suite. Hope that makes sense.

    Matt

  2. oscarmota
    Member
    Posted 6 years ago #

    If you want a different template for a category, just create a new template called category-#.php where # is the category ID.

  3. mattys
    Member
    Posted 6 years ago #

    Hi Oscar,

    I've done the theme for the cat page but!! i need a separate comments page to fit the cat theme.

    Each cat page will basically be one site/landing page.
    Illeaviating the need for multiple WP installations.
    (See link below)

    http://www.nb2k.com/wp/?cat=6 < ManUnited

    ?cat=7 < Spurs
    ?cat=8 < Arsenal

    and so on..

    If you try to leave a comment it pulls the header from what ever is the current installed theme. Which would not be ideal.

    Can i make custom comments.php page's and somehow link to them from the cat pages.

  4. oscarmota
    Member
    Posted 6 years ago #

    Sorry, the link you posted seems weird/broken :S so I can't see what actually happens.

  5. mattys
    Member
    Posted 6 years ago #

    http://www.nb2k.com/wp/index.php < if that doesn't work then we're doomed.

    The link to the cat page in questions is ManU in the right sidebar categories if it does work. :)

  6. oscarmota
    Member
    Posted 6 years ago #

    Try it for yourself http://www.nb2k.com/wp/?cat=6

    It seems that the WP theme is broken

  7. mattys
    Member
    Posted 6 years ago #

    Works fine here. Can you access the page are there errors or it just doesn't pull up?

  8. mattys
    Member
    Posted 6 years ago #

    Sorry Oscar i'm a first rate tool.

    I just checked in FF and IE and it wasn't formatting the page via my css rules. It appears the path to the css file was missing a " That Opera obviously thinks is okay to parse.

    http://www.nb2k.com/wp/?cat=6

    Hope it is all working now.. if not i do belive i'll scream.

  9. oscarmota
    Member
    Posted 6 years ago #

    That's not the comments template, is single.php template.

    You could try the solution in this post

Topic Closed

This topic has been closed to new replies.

About this Topic