Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom css for shortcode buttons #7

Open
M3hran opened this issue Feb 10, 2025 · 3 comments
Open

custom css for shortcode buttons #7

M3hran opened this issue Feb 10, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@M3hran
Copy link

M3hran commented Feb 10, 2025

custom css option or inherit from theme styles for shortcode buttons?

perhaps there is a better way, i am adding the client portal shortcode to as menu entry (using shortcut for menus plugin) and font style doesn't match the theme.

@hillelcoren
Copy link
Member

Hmm... I'd expect the font to use the same font as the theme

Can you post a screenshot of how it looks?

@M3hran
Copy link
Author

M3hran commented Feb 11, 2025

Image

<a class="button" style= margin-bottom:-15px; display; >[invoiceninja_client_portals label="Invoices and Payment" sso="true"]</a>

when assign button class it will inherit from theme , (u can ignore the inline style it has no effect) problem is 2 fold,

1-you usually don't want a button in your menu. if i could reconstruct a link and use it i would prefer that. if i give link as an option aside from the shortcode then the user can easily turn it into any UI element using many UX/UI/Menu builders options WP has.

2- ok lets use the shortcode button, it seems like it has minimum set padding at the bottom that doesn't want to adhere to theme's options. i can't remove that padding.

@hillelcoren
Copy link
Member

  1. Thanks for the suggestion, we'll look into it

  2. I don't believe the padding is from the plugin, could your theme be adding it?

@hillelcoren hillelcoren added the enhancement New feature or request label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants