Black Friday Sale! Get up to $40 off GP Premium!Learn more

[Resolved] Apply CSS to single posts, not globally

Home Forums Support Apply CSS to single posts, not globally

  • This topic has 3 replies, 2 voices, and was last updated 3 years ago by Leo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #411698
    themedleb

    Hi, can I apply CSS to only single posts, not globally? if yes what is the single posts identifier I could use in CSS? And if you have a list of other pages identifiers so I can customize each one differently like search page, archive page, … and other pages created by me.

    Thanks.

    GeneratePress 1.4
    GP Premium 1.4.3
    #411704
    Leo
    Staff
    Customer Support

    Hi there,

    You can add .single in front of your CSS selector.

    If you use developer tool of your browser, the unique ID should be in the body tag at the top.

    Those are generic tags from WordPress.

    #411709
    themedleb

    Thank you Leo, this is much helpful.

    #411982
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.