1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I want to style Category Pages individually

Discussion in 'Web Design' started by Scorpion Ghost, Jul 29, 2015.

  1. Scorpion Ghost

    Scorpion Ghost Senior Member

    Joined:
    Mar 22, 2013
    Messages:
    1,073
    Likes Received:
    250
    Occupation:
    Internet!
    Location:
    On the Interwebz
    Home Page:
    I have a wordpress site I've been working on for the past 2 months. It's a fiverr-clone. My problem is that I've basically reached a point where I've done many of the changes I wanted, and now I want to do something that I can't wrap my mind around. Here's the thing.

    There's a .php file that's for the category pages.

    Say I have 10 categories.

    So all of those category pages will have more or less the same stuff/styling on them.

    I want to do like Fiverr where every category has a different picture, like here: https://www.fiverr.com/categories/writing-translation#layout=auto&page=1

    How can I style 10 different pages differently if they're all affected by the same .php file?


    I hope I'm clear, and that someone can provide some insight about my problem...

    I would gladly share the site here as it would help you help me, and help my business too. However, that would be self-promotion and I don't wanna do that. So if anyone is interested to check this out for me I can PM you with my website.
     
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    974
    Likes Received:
    680
    Occupation:
    Web/Bot Developer
    This might help you out:
    Code:
    https://codex.wordpress.org/Category_Templates
     
    • Thanks Thanks x 1
  3. Scorpion Ghost

    Scorpion Ghost Senior Member

    Joined:
    Mar 22, 2013
    Messages:
    1,073
    Likes Received:
    250
    Occupation:
    Internet!
    Location:
    On the Interwebz
    Home Page:
    I thought about it, and I think I got it.

    Every page has it's own unique class name. I can use that, and with CSS do what I want to do.

    Thank you for the response MrBlue.

    Since I'm already here talking about my site. With no promotion, the other day I make a sale. I couldn't believe it. That's motivation like a motherfucker! :)
     
  4. Ramse

    Ramse Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 6, 2014
    Messages:
    828
    Likes Received:
    93
    Home Page:
    Good you made a sale. I wish you all of luck in your further business ;)
     
  5. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,797
    Likes Received:
    2,690
    Occupation:
    blog creator
    Location:
    UK
    If you are going to make changes to any wordpress page php then do so in a child theme as you will lose any changes you have made next time wordpress update which is quite often lately.