Hyperlink is not changing

Posted in: Newspaper
Post count: 497

I have used the custom code provided by your team and applied in the custom css area. The problem is that the hyperlinks of my page https://www.pakdefense.com/privacy-policy/ are changing. But, when I created a new blog post, then the hyperlinks are not changing. Please help me to fix this…

Post count: 20688

Hi,

Maybe that code does not apply for those links, I could take a look if you can provide an exmaple. Note that you can also color the links as you are creating them, either in WordPress editor or composer
https://www.screencast.com/t/7ZQ3m7vs
https://www.screencast.com/t/qV5x1kQmvKme

Thanks

Post count: 497

Thanks Simion, Do I have to re-create the links each time I have to create blogs. I thought the same work do by the custom CSS code which I have applied? Why the custom CSS code is not working on the links of this blog?

Post count: 497

Dear, this process is very time consuming. Please provide me the correct custom code that helps me to show my hyperlinks like this:

https://ibb.co/dSPmQT

Thanks

  • This reply was modified 8 years by great1212.
Post count: 20688

The link color by default is the theme accent color. You can change the link color by changing the theme accent color, or color them as I showed above, or with a CSS code if those settings are not sufficient.

I believe in a previous topic this code was provided to you
https://www.screencast.com/t/snYhRAEYX0J7
That code worked for the HTML you have in that page content, which is like this
https://www.screencast.com/t/eQM62QUCmLs

Where exactly do you want to change the color of the links? If it is a post, then that code will not work, it is meant for page contents.

I see the links have a color at the moment, in a post on your website
https://www.screencast.com/t/a1h7nEqAD
Also in the blog page – https://www.screencast.com/t/YkJaryMFUf8x

Post count: 497

Dear, I have change the color of links by myself and its very time consuming. Can’t we change it by using any code?

Post count: 20688

I can give you another code besides that, try it like this for the already colored links
https://www.screencast.com/t/2lc0tTDqs

.td-post-content p span a span {
color: yellow !important;
}

Like this for posts with links that you did not color in the WordPress editor

.td-post-content p span a {
color: yellow !important;
}

Enter them both and see how the links look after that.

Post count: 497

Can we use another color beside yellow. I want to use the color green or dark green as it complement to my theme look and can we make our hyperlinks to somewhat bigger, bolder or prominent than the rest of the rest without using the wordpress composer option heading 1,2,3. Thanks

Post count: 20688

You can change the color in the code, use any color you want, then all the links will have that color

.td-post-content p span a span {
color: #339966 !important;
}
.td-post-content p span a {
color: #339966 !important;
}

So you also want to make the links bolder, the links are already bold
https://www.screencast.com/t/DQebXJvh6W
Maybe you want to make the font bigger like this
https://www.screencast.com/t/Ebc2RwQzUo
If that is the case use this code to also color the links and increase the font size

.td-post-content p span a span {
color: #339966 !important;
font-size: 20px;
}
.td-post-content p span a {
color: #339966 !important;
font-size: 20px;
}

Post count: 497

Thanks Simion. You were very helpful each time I need help. The code works like the charm. Thanks Does the code will work with every post I create in future?

  • This reply was modified 8 years by great1212.
Post count: 497

Dear, every hyperlink of my post has changed except this. Please take a look:

https://ibb.co/gvJ55T

I have tried to edit, remove and re-insert the link, but it didn’t work for me. Any idea about how to solve it?

Post count: 20688

Glad it works, the link you mention is in a list there. This would work in that case
https://www.screencast.com/t/rlXIe4X19jfq

.td-post-content li span a {
color: #339990 !important;
font-size: 18px;
}

Post count: 497

Dear, that code works, but the problem I am facing is that when I insert new hyperlink in the wordpress editor, then it is not changing anymore. Its color and size and not changing and looks like the remaining of the text. Please look at this pic:

https://ibb.co/kHUGfT

Please help me…

  • This reply was modified 8 years by great1212.
Post count: 20688

I don’t know how exactly you are making all these span tags and links inside spans and strong tags over spans etc. That is why there is need for so many codes. However, remove the code I provided above and enter this one
https://www.screencast.com/t/tcRQf8Jx

.td-post-content li span a,
.td-post-content li a span,
.td-post-content a {
color: #339990 !important;
font-size: 18px;
}

Post count: 497

Dear, the code works great. Can I use the same code to change the page hyperlinks also? Right now I am using seperate CSS code to change the page hyperlinks

  • This reply was modified 8 years by great1212.
Post count: 20688

For pages it is different, this code will only work for posts (post content versus page content).
So if you have a different code that works in pages, leave it as it is. That one with the ones provided in this topic should cover all the situations, there could be some exceptions maybe.

Viewing 16 posts - 1 through 16 (of 16 total)
The forum ‘Newspaper’ is closed to new topics and replies.