How can I disable Cakeday?

I want to disable birthdays and anniversaries, and I don’t want the user to be able to choose their Date of Birth. How can I do this?

If you’ve installed the plugin then just remove it from your YML and rebuild.

1 Like

It won’t let me remove the plugin :frowning:

Search for cakeday on Admin > Settings and then disable the setting :arrow_down:

1 Like

is this going to hide the “Cakeday” from the main menu? :slight_smile:

Nope, but you can hide the Cakeday link inside the hamburger menu with

.widget-link.cakeday-link {
    display: none !important;
}

and hide the Date of Birth field on the user profile with

.user-custom-preferences-outlet.user-date-of-birth-input {
    display: none;
}
6 Likes

What happens if you delete that line from app.yml?

Why is there an “!important” in the first one and not in the second one? :slight_smile:

Because in the first case I have to make CSS understand that the display property that I am declaring now has more importance than the existing one for the same element and already declared previously in the defualt stylesheet

.menu-panel li a.widget-link, .menu-panel li.heading a.widget-link {
    display: block;
}
1 Like

Thanks for the explanation!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.