- This topic has 13 replies, 4 voices, and was last updated 1 year, 7 months ago by
Elvin.
-
AuthorPosts
-
November 8, 2020 at 4:59 am #1522377
NICOLO’
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 #1522849Leo
StaffCustomer 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!
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 14, 2020 at 7:37 am #1531213NICOLO’
Is this customization too difficult?
tyNovember 14, 2020 at 8:21 am #1531240David
StaffCustomer 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/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 #1531579David
StaffCustomer 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?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 15, 2020 at 12:18 pm #1532616NICOLO’
Wonderful!
Now I simply want to remove icons ๐November 16, 2020 at 1:17 am #1533003David
StaffCustomer 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 );
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 17, 2020 at 11:58 am #1535196NICOLO’
Not working! It removes labels and icon remain!
November 17, 2020 at 2:35 pm #1535371David
StaffCustomer SupportGo to Customizer > General and change the Icon Type to SVG.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 18, 2020 at 12:42 pm #1536709NICOLO’
It is already SVG! :\
November 18, 2020 at 5:38 pm #1536909Elvin
StaffCustomer 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; }
A wise man once said:
"Have you cleared your cache?"November 19, 2020 at 11:12 am #1538000NICOLO’
Worked!
Thank youNovember 19, 2020 at 1:00 pm #1538115Elvin
StaffCustomer SupportNice one. No problem. ๐
A wise man once said:
"Have you cleared your cache?" -
AuthorPosts
- You must be logged in to reply to this topic.