Remove Hentry CSS

Hi,

I work on a better structured data for my site and I have added the plugin “SNIP”. Now I saw that X isl using “hentry” for structured data. Can you confirm this?

Since 2017 schema.org is much wider supported by many search engines to add structured data to a website. So I don´t need the microformat CSS classes from “hentry”: https://rich-snippets.io/hentry-css-class/

I found a code to remove the “hentry” CSS from X - so that it does not confuse search engines when you use schema.org: https://wordpress.stackexchange.com/questions/302055/remove-classes-from-post-class

The problem is, when I delete this CSS from X it has a styling effects on my Ethos frontend. The entry-thumb will now be shown as a big picture.

Is it possible to remove the hentry class without getting problems in the frontend?

Michael

Hi Michael,

Unfortunately, the hentry class is an integral part of the theme when it comes to the archive pages such as the blog listing or category. There is a huge part of CSS code added using that class and it is not possible to get rid of that class without any visual problems.

The only thing that you can do is either accept the hentry class existence or remove it and add additional custom CSS code to bring back the old view.

We will not be able to do that as it is a customization request and outside of our support scope, you can hire a developer to do that.

Thank you for your understanding.

But is it still up-to-date to use the hentry class as CSS element for styling?

Hi @michaelxxx,

The theme utilizes the hentry class as a selector, but it is the Wordpress that generate that class.

I’m not entirely certain what is the issue with “SNIP” plugin and the class hentry, its more likely that the theme has nothing to do with it.

Like Christopher said above, you can remove that class with your code above, but add your custom CSS to the affected div/elements.

Thanks,

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.