- This topic has 13 replies, 4 voices, and was last updated 3 years, 5 months ago by Elvin.
-
AuthorPosts
-
November 8, 2020 at 4:59 am #1522377NICOLO’
Is it possible to change meta output on my last posts? I’m using marketers template and there are icons before the text. What I would to have is no icon and something like the colors used on “Coywolf” blog.
Thank youNovember 8, 2020 at 10:26 am #1522849LeoStaffCustomer SupportHi there,
Any chance you can link me to your site in question and example you are trying to achieve?
Please use the private info field.
Thanks!
November 14, 2020 at 7:37 am #1531213NICOLO’Is this customization too difficult?
tyNovember 14, 2020 at 8:21 am #1531240DavidStaffCustomer SupportHi there,
it is possible with some custom CSS – which will mean you having to add CSS for each of your categories. Can you share a link to your site and ill take a look at whats necessary.
November 14, 2020 at 8:40 am #1531257NICOLO’Sure. Thank you.
I’m interested in both create background for category text and how to modify icons that now appears before categories/tagNovember 14, 2020 at 4:28 pm #1531579DavidStaffCustomer Support1. Add this PHP Snippet to remove the commas between the Post Meta terms:
add_filter( 'generate_term_separator', function() { return ''; } );
2. Then add this CSS to style each term:
/* Space between Meta */ .cat-links { margin-bottom: 0.5em; } /* default styling */ .entry-meta .cat-links a, .entry-meta .tags-links a { background-color: #f00; color: #fff; padding: 2px 4px; border-radius: 6px; margin-right: 4px; } /* Category Link Styles */ .entry-meta .cat-links a[href*='category-slug'] { background-color: #00f; color: #fff; } /* Example category slug term */ .entry-meta .cat-links a[href*='corsi-venezia'] { background-color: #00f; color: #fff; } /* Tags Link Styles */ .entry-meta .tags-links a[href*='tags-slug'] { background-color: #0f0; color: #fff; } /* Example tags slug term */ .entry-meta .tags-links a[href*='amministrazione'] { background-color: #0f0; color: #fff; }
You will need to create a separate CSS Rule for each of your Category Terms and Tags Terms – each one is identified by its slug, as per the examples.
What do you want to do with the Icons?
November 15, 2020 at 12:18 pm #1532616NICOLO’Wonderful!
Now I simply want to remove icons ๐November 16, 2020 at 1:17 am #1533003DavidStaffCustomer SupportRemove the CSS you’re using to display the taxonomy labels eg. DOVE and ARGOMENTI.
Then add this PHP Snippet to add them in place of the icons.add_filter( 'generate_inside_post_meta_item_output', function( $output, $item ) { if ( 'categories' === $item ) { return 'DOVE: '; } if ( 'tags' === $item ) { return 'ARGOMENTI: '; } return $output; }, 50, 2 );
November 17, 2020 at 11:58 am #1535196NICOLO’Not working! It removes labels and icon remain!
November 17, 2020 at 2:35 pm #1535371DavidStaffCustomer SupportGo to Customizer > General and change the Icon Type to SVG.
November 18, 2020 at 12:42 pm #1536709NICOLO’It is already SVG! :\
November 18, 2020 at 5:38 pm #1536909ElvinStaffCustomer SupportHi,
You should be able to remove the icons from display by adding this CSS:
span.gp-icon.icon-categories, span.gp-icon.icon-tags { display: none; }
November 19, 2020 at 11:12 am #1538000NICOLO’Worked!
Thank youNovember 19, 2020 at 1:00 pm #1538115ElvinStaffCustomer SupportNice one. No problem. ๐
-
AuthorPosts
- You must be logged in to reply to this topic.