Getting rid of hyperlink underline

Open to all! Ask other shopowners for help.
Post Reply
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

Getting rid of hyperlink underline

Post by Portman »

Hi,

I am assuming this is a really easy one...

I've created a modal link on a module I've created... the link is on a question circle.... but how I have done it there is a hyperlink undeline under the circle which looks really bad and I can't work out how to get rid of it....

the link is in the language file which may be the problem,

Code: Select all

 const MODULE_ORDER_TOTAL_AU_TOTAL_HEADING = 'Conversion into Australian Dollars <a href="#" role="button" class="card-link ml-0 border-bottom border-primary" data-toggle="modal" data-target="#CModal"><i class="fas fa-question-circle"></i></a>';
how do I fix this? Any help would be appreciated


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Getting rid of hyperlink underline

Post by heatherbell »

Portman wrote: Wed May 29, 2024 5:20 am how do I fix this?
Target the element that displays the link (which would be in the module file or tpl_ file, not the language file) with css in your user.css file text-decoration: none; or inline the style into the language constant, <a style ="text-decoration: none;", possibly style ="text-decoration: none !important;" might be necessary.
User avatar
burt
Core Team
Posts: 4560
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 413 times

Re: Getting rid of hyperlink underline

Post by burt »

I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

Re: Getting rid of hyperlink underline

Post by Portman »

thanks @heatherbell & @burt

I tried the inline method you suggested earlier, but with no luck, the solution Burt suggested though worked
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Getting rid of hyperlink underline

Post by heatherbell »

Portman wrote: Thu May 30, 2024 4:18 am I tried the inline method you suggested earlier, but with no luck
Strange because that is what that Bootstrap utility does:
Screenshot 2024-05-30 071436.png
You do not have the required permissions to view the files attached to this post.
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

Re: Getting rid of hyperlink underline

Post by Portman »

yeah I thought it should work too , I tried a number of options in the inline method that you suggested and I just could not get it to work, but when I tried the bootstrap option it worked straight away... it is probably me and my lack of coding experience rather than the advice you gave.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply