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

Changing the appearance of the plugin in the template folder #1460

Open
harbievan opened this issue Jul 15, 2022 · 1 comment
Open

Changing the appearance of the plugin in the template folder #1460

harbievan opened this issue Jul 15, 2022 · 1 comment

Comments

@harbievan
Copy link

Hello
Is it possible to change the appearance of the settings section from within the style file of my own template?
Template settings section that with cmb2 has been added

I put this in my style file as a test but it didn't change::::

.cmb2-options-page .cmb2-metabox > .cmb-row {
background: #000000 !important;
}

I want to customize the style, please help.
tanx

@tw2113
Copy link
Contributor

tw2113 commented Jul 15, 2022

If you're wanting to customize the styles for the admin area of the metaboxes and/or settings pages, you could use either the admin_head hook to output some inline styles, or the admin_enqueue_scripts hook if you want to get some dedicated css/js files added to your admin area.

Adding that CSS to your theme isn't going to affect anything on the backend, as it's not loaded in the admin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants