This topic contains 4 replies, has 1 voice, and was last updated by  Ваш Банкир 4 years, 7 months ago.

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

    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

    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

    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

    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

    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.