I want to style Category Pages individually

Scorpion Ghost

Elite Member
Executive VIP
Jr. VIP
Joined
Mar 22, 2013
Messages
9,153
Reaction score
10,492
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.
 
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! :)
 
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! :)

Good you made a sale. I wish you all of luck in your further business ;)
 
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.
 
Back
Top