- This topic has 11 replies, 3 voices, and was last updated 1 month, 4 weeks ago by
David.
-
AuthorPosts
-
December 9, 2022 at 1:12 am #2455535
Shami
December 9, 2022 at 1:17 am #2455537Fernando Customer Support
Hi Shami,
For reference, can you provide the link to the page where you want to apply this? We’ll check how your tags are shown currently.
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
December 9, 2022 at 1:25 am #2455542Shami
Please check any post. I’ve provided the link as asked.
Also check the reference link.
December 9, 2022 at 3:58 am #2455696David
StaffCustomer SupportHi there,
can you share a link to YOUR site, where you want those styles applied ? We need to check how they are displayed and whether it is possible.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 9, 2022 at 5:25 am #2455779Shami
I think I shared it earlier. Here it’s again. Open any post.
I’ll use the tags below singlepost at the end before comments for now.
And I’ll try to use them in different places later once I’m satisfied.
December 9, 2022 at 6:07 am #2455829David
StaffCustomer SupportYou can add this CSS:
.tags-links { font-size: 0; } .tags-links a { display: inline-block; font-size: 15px; font-weight: 700; padding: 5px; margin-right: 5px; margin-top: 5px; border-radius: 4px; text-decoration: none !important; background-color: #eeeeee; color: #fff; } .tags-links a:hover { opacity: 0.7; text-decoration: none !important; }
Then you need to give each of your tags there own CSS rule for the color you want to apply:
.tags-links a[href*="life"] { background-color: #f00; } .tags-links a[href*="personal-development"] { background-color: #0f0; } .tags-links a[href*="philosophy"] { background-color: #00f; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 9, 2022 at 8:52 am #2456170Shami
Thanks. How do I make the text bold?
And I also want to remove underline on hover. But only for the tags, not for all the links.
December 9, 2022 at 9:21 am #2456210David
StaffCustomer SupportI edited the CSS above.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 9, 2022 at 9:46 am #2456235Shami
Thanks. Looking exactly like I wanted.
I’d also like to show these tags above the h1 title on singlepost. But I want them without links this time. Also, they shouldn’t be indexed by the search engines.
How do I do that?
Any snippet for the same?
December 9, 2022 at 11:58 am #2456348David
StaffCustomer SupportIf you don’t need the different colors, then you can use a Block Element:
https://docs.generatepress.com/article/block-element-hook/Set the Hook to
before_entry_title
And use a GB Buttons Block, enable its Dynamic Data and set it to display the list of tag terms, just don’t set the links
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 9, 2022 at 9:59 pm #2456654Shami
perfect. thanks.
December 10, 2022 at 4:08 am #2456842David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.