Link to home
Start Free TrialLog in
Avatar of Mike Waller
Mike WallerFlag for United States of America

asked on

CSS to hide links

Using CSS, how can I hide the links that say Create an Account  or  Log In and when logged in it says My Account • Log Out

The webpage is here: https://ccdenver.org/givethanks/

Any ideas experts?
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

If you want to hide the whole block of links (Create an Account / Login etc), then this will do it:

.account-navigation { display: none; }

Open in new window

Avatar of Mike Waller

ASKER

i tried that but it's still there --> https://ccdenver.org/givethanks/
Yeah ... not sure what's going on. The page isn't even seeing that part of your inline styles. There's an awful lot going on, so it would take a while to go through it. I would recommend you put your style in a stylesheet. There's already a rule for .account-navigation in your application.css, so you should really add the new declaration in there.
I guess your WP module have a CSS with !important.
You can simply disable the module from the backend.
That element is within an iframe, I doubt you'll be able to CSS it away with a display: none. You'll need to find some way to do it from the plugin itself or you can cover it up so that it can't be accessed.

Try this:
.qgiv-embed-container:before {
    content: "";
    display: block;
    height: 15px;
    width: 190px;
    background: #fff;
    position: relative;
    top: 16px;
    left: 290px;
    margin-bottom: -15px;
}

Open in new window

David, your idea didn't work.
I'm just embedding a Qgiv form on the page.
@David - good spot on the iFrame - I missed that completely.

You're going to struggle to hide those links in a clean way because you don't have control over the page that displays them. The company providing that page may have some method to allow you to provide your own CSS to embed in their page, but if not, any solution is going to be a hack. You might also be in breach of any terms that the provider has, so you need to check that as well. You would be removing the methods for anyone that donated to log into their account
Sorry guys, it was a feature I could toggle off which I did, thanks for your help though!
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.