::before
]]>Once you’ve determined the correct selectors, add the ::before
pseudo element directive after the selectors and add appropriate CSS rules as needed to place the icon where you want. All the CSS code so developed can go in the Additional CSS panel of the customizer.
.category-1913 .entry-title.td-module-title::before {
font-family: dashicons;
content: "\f482";
}
This assumes you have the dashicons font, normally used in the backend, loaded on front end pages. You can do so with wp_enqueue_style( 'dashicons' );
called from a callback hooked to “wp_enqueue_scripts” if you want to use that specific \f482
icon. You may use any icon font or image file you like.
I would like it to show on the post’s page, for example:
https://interfans.org/podcast-ep-67-tornati-sulla-terra/
Or in any module in the homepage
As of now it only shows on cat page:
https://interfans.org/archivio/podcast/
Can you help more?
]]>