Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can i add custom html to a facet api facet block. Like a link to another page or some descriptive text and an image. It would be good for user experience.
You can create your own facet widget. Just extends from one of existing widgets. You can found examples in module facetapi.
Front-end Developer Solution:
Use one of the following JS functions:
to add some HTML.
ok did it by using form alter and block view alter. so no custom widget is required and all widgets can still be used in addition to mine
4 years, 3 months ago
11 days ago