Archived topic
Appearance of links only in the posts and pages content
5 replies · Started by Gra on May 10, 2020
Hello,
I seem to have a rather easy problem.
Which CSS rules are responsible for appearance of links in post and pages?
I would like to change appearance of links, but only in the content of posts and pages.
.site-content
and
.post
change appearance of all links, not just those in the content.
Hi there,
you target the links within the entry-content container:
.entry-content a {
/* your styles here */
}
Thank you for quick reply.
In posts and pages works - great.
Does not work on pages created by option: USE SECTION.
You have access to my site. First item in main menu was made by USE SECTION - "POLECAM".
Serwice is in disarray because I'm just switching to generatepress.
Try this for Sections:
.site-content .generate-sections-container a {
color: #000;
}
Please note is is our recommendation to use GenerateBlocks over Sections for new build pages :)
https://generateblocks.com/
Thank you for fast help.
It helped:
.entry-content a { }
.generate-sections-inside-container a { }
Theme is great, probably the best I've ever worked on.
No problem :)