Hide author/editor in Highlighted content web part

Contributor

Is there a way to hide author/editor in Highlighted content web part?

If not, are there any plans on updating this web part to include this feature?

6 Replies
All the configuration options for that Web Part are provided in the Web Part settings panel, so if what you need is no there then you don't have support for this scenario. For new improvements in SPO check the Microsoft 365 roadmap
We are also needing the ability to add/remove columns from view, and importantly, have the document preview in the grid show it's Document Library origin. Keen to hear on any development for the Highlighted Content webpart.
Has there been any update on this? I would like to remove the author from the web part
Is there any update on this?

@Elinkr 

This piece of code removes it - insert as a Modern Script Part

 

<style type="text/css">

.ms-DocumentCardTile .ms-DocumentCard:not(.ms-DocumentCard--compact) .ms-DocumentCardActivity {
Visibility:hidden !important;
}

</style>

Hi @Stephan_Leistra,

the "Highlighted Content Webpart" is basically just a search webpart with a fixed search term.

If you have some requirements that are not doable with the "Hightlighted Content Webpart" out of the box then you can  use the "Search Results" webpart from the "Modern Search Webparts"
https://microsoft-search.github.io/pnp-modern-search/ 

and customize it to your needs.

Here you can either tweak the search query to select and sort differently or configure the display templates as you like. (Even enter your own HTML if you like)

Best Regards,
Sven