Site Overlay

Small Wins

Today’s accomplishment, though small, is also big.

Given a WordPress widget that is inserted both in a Page and in a global footer, where I want the full text to appear in the Page entries and only the first sentence to appear in the global footer entries, I worked out a combination of CSS selectors that only set `display: none;` on the non-first-child elements in the global footer without affecting the same elements in the page.

Leave a Reply

Your email address will not be published.

Scroll Up