Making WordPress.org


Ignore:
Timestamp:
04/05/2022 10:54:43 PM (3 years ago)
Author:
coffee2code
Message:

Photo Directory: Hide .entry-footer for pages when user is not logged in since it'll always be empty and adds excessive padding.

CSS's :empty() would have been more concise, more accurately reflective of intent, and would accommodate future inclusion of content, but it isn't supported by anything at the moment (at least when tag contains any and only whitespace).

As an alternative, the parent theme template-parts/content-page.php could have been copied locally and the footer omitted when empty.

Props aezazshekh, coffee2code.
Fixes #6243.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.