• Dear developers,

    Some of the recent updates of JetPack broke my website as now there are
    “genericon” and “genericon-link” assigned to thumbnail.
    Supposedly, this is done in “the_post_thumbnail()” PHP function.

    Could you kindly tell me how could I remove those
    from my thumbnails? Is there a setting somewhere?
    If not, I can modify my Theme to override default Jetpack
    behaviour as I really do not want those classes to be applied.

    Kind regards,
    Denis.

    https://wordpress.org/plugins/jetpack/

Viewing 1 replies (of 1 total)
  • Thread Starter davydov-denis

    (@davydov-denis)

    so far a workaround is to add CSS:

    .genericon {
       width: auto !important;
       height: auto !important;
       display: block !important;
    }
    
    .genericon-link:before {
        content: "" !important;
    }

    any better way?

Viewing 1 replies (of 1 total)
  • The topic ‘remove genericons from the_post_thumbnail()’ is closed to new replies.