Now Available

Semantic Classes for Easy Element Hiding on Vienna, Berlin, and Kyiv

· Jannis Fedoruk-Betschki

Today, somebody asked which classes they can use on the Berlin theme to hide reading time and the author name through side-wide code injection.

This sparked a broader realisation: while the Magic Pages themes work for a lot of different use cases, everyone has different needs for what metadata and sections they want to display. Some publishers love showing reading time and author info, while others prefer a cleaner, more minimal approach.

So, I quickly added these semantic classes that can be used for that, in addition to the TailwindCSS utility classes.

What's New

All three Magic Pages themes have been updated to use semantic classes for certain elements that should be hideable.

  • Berlin Theme updated to v1.3.0
  • Vienna Theme updated to v1.2.0
  • Kyiv Theme updated to v2.4.0

Available Classes Across All Themes

Post Metadata:

  • .post-reading-time - Reading time display (Berlin)
  • .post-list-reading-time - Reading time in post lists (Berlin)
  • .post-author - Author name and information
  • .post-published-date - Published date
  • .post-list-date - Published date in post lists

Theme Sections:

  • .theme-cta - Newsletter signup sections
  • .theme-footer - Footer sections

If you end up in a situation where you need other classes as well, please reach out!

How It Works

Hiding elements is now as simple as adding CSS to your code injection:

Hide reading time site-wide:

<style>
.post-reading-time,
.post-list-reading-time {
    display: none !important;
}
</style>

Hide author names:

<style>
.post-author {
    display: none !important;
}
</style>

Hide newsletter signup sections:

<style>
.theme-cta {
    display: none !important;
}
</style>

To implement these:

  1. Go to Settings → Code Injection in your Ghost admin
  2. Add your CSS in the Site Header section
  3. Click Save – changes apply immediately ✨

To use this feature, you can simply update the respective theme through the theme gallery in Ghost.

This feature is now available!

If you're already a Magic Pages customer, you can access this feature right away. If you're not yet using Magic Pages, start your free trial today to try it out.

Start Your 14-Day Free Trial

No credit card required

Questions or feedback?

Let us know what you think about this new feature in the comments below!

Websites powered by Magic Pages

From personal blogs to growing businesses — published with Ghost®, hosted with care.

Loading showcase sites...

Start Your 14-Day Free Trial

No credit card required