• Resolved Rosa Parker

    (@rosa-bosma)


    Hi,

    I need a different selector for excerpt and full post, because I want to give these a different width. How can I differentiate between excerpt and full post? Couldn’t find separate selectors so far…

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • to wrap its content, excerpt uses .entry-summary, full post uses .entry-content

    Thread Starter Rosa Parker

    (@rosa-bosma)

    I tried that, but unfortunately, .entry-summary doesn’t wrap the headline (date, posted by), and if I edit the headline’s width in its own selector, its width is also effected in .entry-content (which has a wider width than .entry-summary).

    Thread Starter Rosa Parker

    (@rosa-bosma)

    I finally managed to find the selector! And I will post it here, should someone need it:

    .singular .post or .singular-post .post will select all posts appearing as individual post, and will override the CSS that comes from .post. The selector .post, however, will still apply to posts appearing on the page with all posts, just not singular posts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need different selectors for excerpt and full post’ is closed to new replies.