- This topic has 11 replies, 2 voices, and was last updated 5 years, 8 months ago by
David.
-
AuthorPosts
-
July 29, 2020 at 1:01 am #1380134
RJ
Hey there – I style my links using this code:
/* Hyperlinks */ body:not(.blog):not(.archive):not(.search) .inside-article a { background: linear-gradient(180deg,rgba(255,255,255,0) 50%, #FFFF00 50%); }I have some text which includes a link added as an Element Hook inserted underneath all my posts.
How do I style the link so it appears like the rest of my site?
Example: https://robinharford.com/write-anywhere/
TIA
July 29, 2020 at 3:52 am #1380303David
StaffCustomer SupportHi there,
maybe the lack of coffee but the only ‘unstyled’ links i can see is the menu items in the footer .. what am i missing ?
July 29, 2020 at 4:23 am #1380344RJ
Sorry about that, David – I was tinkering with the site.
If you scroll to the bottom here:
https://robinharford.com/zagging/You’ll see the sentence:
My newsletter teaches you how to sell more books – click here.‘Click here’ is unstyled. How do I make it look like the other links in the body of that page? They are highlighted yellow.
July 29, 2020 at 5:27 am #1380400David
StaffCustomer SupportWhich hook are you using ?
If you use theafter_contenthook that would place it within theinside-articlecontainer. And your CSS should apply to it to.July 29, 2020 at 7:07 am #1380506RJ
That did it. I had it in
after_main_content.Thanks for that, David.
July 29, 2020 at 7:49 am #1380677David
StaffCustomer SupportGlad to be of help
July 30, 2020 at 12:58 am #1381454RJ
Hey there –
1). How would I make the styling apply to my footer links?
2). Also when I create a button using Generateblocks and link it, the button disappears and the yellow styling shows instead. How do I stop this from happening?
TIA
July 30, 2020 at 2:20 am #1381534David
StaffCustomer Support1. You can include .copyright-bar a in your CSS selector.
So this:
body:not(.blog):not(.archive):not(.search) .inside-article a {becomes:
body:not(.blog):not(.archive):not(.search) .inside-article a, .copyright-bar a {2. Can i see an example ?
July 30, 2020 at 4:42 am #1381666RJ
Thanks for the copyright code.
I tried to create a blue button, but it ends up looking like this:
https://robinharford.com/test/July 30, 2020 at 7:22 am #1381772David
StaffCustomer SupportUse this selector in your CSS:
body:not(.blog):not(.archive):not(.search) .inside-article a:not(.gb-button), .copyright-bar a {July 30, 2020 at 7:31 am #1381789RJ
That worked. Many thanks, David. Appreciate it.
July 30, 2020 at 8:26 am #1382010David
StaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.