Tagged: x
-
AuthorPosts
-
January 8, 2017 at 11:53 am #1321228
NaturalifeParticipantHello,
I wanted to format the links on specifically my blog posts.
To make them have a green dotted underline, I was given this code by one of your support members:
.single .entry-content.content a { border-bottom: 1px dotted hsl(137,95%,32%); }The problem is, this code applies to all links in my posts including my social media buttons and images with links. I only want this styling to apply to text. Any suggestions?
Thank you,
CameronSample:http://naturalife.org/natural-remedies/remedies-increase-energy-fight-fatigue
January 8, 2017 at 12:12 pm #1321256
RupokMemberHi Cameron,
Thanks for writing in! It’s because the plugin you are using adding the social share button within the content area that’s why it;s being affected. Let’s add this as well :
.single .nc_socialPanel a { border-bottom: medium none !important; }Cheers!
January 8, 2017 at 1:40 pm #1321317
NaturalifeParticipantThank you for the speedy response! Assuming that works (haven’t tested it yet), how would I apply the no dotted underline to images with links?
January 8, 2017 at 7:57 pm #1321710
LelyModeratorHello There,
You’re welcome!
Unfortunately, right now, I am a little confused with your question. Can you clarify a bit more which image is in question on what page. Which image is showing a dotted underline? I can’t find it on the link provided. This will help us give you a more specific suggestion.January 9, 2017 at 8:29 am #1322392
NaturalifeParticipantSure here’s an example: http://naturalife.org/natural-product-reviews/fitness-and-health-gifts
Ideally I would like to combine a piece of code so that both images and the buttons don’t have a dotted underline.
Thanks!
January 9, 2017 at 10:03 am #1322534
JadeModeratorHi there,
Please find this code and remove it from the customizer:
.single .entry-content.content a { border-bottom: 1px dotted #049f30; }Hope this helps.
January 9, 2017 at 12:15 pm #1322711
NaturalifeParticipantWould that remove the dotted underline on my text links though?
January 9, 2017 at 3:03 pm #1322926
JoaoModeratorHi There,
Please try:
.single .entry-content.content a { border-bottom: 1px solid #049f30; }Hope it helps
Joao
January 10, 2017 at 9:37 am #1324017
NaturalifeParticipantUnfortunately, that still isn’t the solution to my issue.
Let me paraphrase the problem:
I want to keep the dotted underline I have for textual links in my posts / articles. But I want to remove the dotted underline that shows up on link images and the social share buttons on my posts.
The code you provided only changed the code from dotted to solid.
Thank you for your time,
CameronJanuary 10, 2017 at 10:07 am #1324084
ThaiModeratorHi There,
Please try with this CSS instead:
.single .entry-content.content a:not(.x-img-link) { border-bottom: 1px dotted hsl(137,95%,32%); } .single .entry-content.content .nc_socialPanel a { border: none !important; }Hope it helps 🙂
January 10, 2017 at 2:24 pm #1324460
NaturalifeParticipantAhhh at last! Thank you, that worked!
January 10, 2017 at 2:55 pm #1324508
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1321228 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
