Home Forums Crumina bbpress test forum Changing background in posts

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #995
    Crumina team
    Keymaster

    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!

    #1055
    Crumina team
    Keymaster

    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}

    #1056
    Crumina team
    Keymaster

    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

    #1057
    Crumina team
    Keymaster

    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!

    #1058
    Crumina team
    Keymaster

    Thank you,

    That was clear!

    Can you please tell me the code for putting as background an image (repeat).

    Regards

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.