Home › Forums › Crumina bbpress test forum › Changing background in posts
Hi all,
I would like to ask how I can change the background of a post?
I tried to add the custom fields pg_background but the change can’t be saved.
Thank you!
Hi SidNik!
You can change the background of a post with css code. But each post has its class. So I’ll show you the example of the code for a certain post in the attachment.
.postid-172{background: red}
Hi and thank you for your response.
But where can I find the css code for a specific post?
After all wouldn’t it be better if we could do using a custom field or via each post’s options?
Regards
Each post has its id
You just have to change the id here (I mean to change this id with the id of that post, for which you want to set custom background)
.postid-172{background: red} and after that put this code in custom css field, which you find in theme options>main options.
Thanks!
Thank you,
That was clear!
Can you please tell me the code for putting as background an image (repeat).