As it happens, I was literally just doing some stuff with the customizer.
You can use the following class to get what you need..
WP_Customize_Code_Editor_Control
I’ll include it in the control ready to go.
$wp_customize->add_control( new WP_Customize_Code_Editor_Control( $wp_customize, 'favorite_html', array(
'label' => 'Theme CSS',
'description' => '',
'code_type' => 'text/css',
'section' => 'section_id',
'settings' => 'settings_control'
)));
Related Posts:
- Is it possible to create a full width row in WordPress’s editor window? [closed]
- Can the Theme Customizer be used to generate static/cachable CSS, and how?
- Add fields in customization tab to change background colours of certain classes
- Shrink Header Image on Scroll
- Disable File Editing function
- WordPress code editor messed up my code!
- How do I get access to the CSS Editor
- Removing Image Links from Custom Post Type
- Customizer Appearance Issue
- Change image using only CSS [closed]
- Customizer: CSS changes not persistent
- How to make CSS load live based on options clicked in the theme customizer?
- Menu is not styled properly and footer as well [closed]
- In which file can I find the custom CSS code I entered?
- Why is the “Additional CSS” section missing in my theme Customizer?
- adding additional css classes have no effect within block editor
- Making a
- CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page
- How to change the color of an svg element?
- What is the difference between the selectors “.class.class” and “.class .class”?
- How can I replace text with CSS?
- Bootstrap 4, How do I center-align a button?
- How do I horizontally center a span element inside a div
- Is background-color:none valid CSS?
- Text not wrapping inside a div element
- How to make padding:auto work in CSS?
- How to vertically center inside the parent element with CSS?
- CSS Outside Border
- CSS not working in Chrome
- Pure CSS to make font-size responsive based on dynamic amount of characters
- use multiple css filters at the same time?
- Adding border to CSS triangle [duplicate]
- How to enqueue style before style.css
- wp_enqueue_scripts, wp_register_scripts, wp_print_scripts: i’m confused
- Which Details Are Required For Style.css File Header?
- WordPress Register Style Called Incorrectly
- wp_enqueue_script + how to load JS or CSS in one URL merge call?
- Duplicate and alter sidebar for Twenty Eleven
- hSite has no css on mobile [closed]
- How to dequeue styles coming from plugins?
- How to set different font family based on text language?
- Relative path in wp_register_style not working
- How to Add Custom CSS Buttons to WordPress as a Shortcode?
- How do I add an indicator to my .menu-item if it contains a .sub-menu?
- How do you customize the admin bar for buddypress?
- Load in wp admin assets from child theme
- Enqueue styles in new site editor in WordPress 5.9
- Header’s CSS doesn’t work in Chrome and Opera – any ideas how to fix it?
- Two column Dropdown for WordPress Toolbar
- Code working just in specific time period
- Moving button on Online Consulting theme
- Style WP_Debug?
- How can I get the search form to be selected automatically?
- Using transient for dynamic css , how to name it?
- Is there a way to add additional CSS styles to the styles css file dynamically?
- Is it safe to use WordPress generated classes?
- Search Bar in Thesis WordPress Site
- Unstable handling of CSS under WordPress/Elementor
- Add core style in theme
- How to sync the style in the visual editor with the style of a child theme?
- How to change the settings of a video? [closed]
- Change text color dynamically in WordPress [closed]
- Add Custom Alignment Option to WordPress Blocks/Gutenberg
- Custom css author role
- Styling last item in ul [closed]
- Font styling in embedded Twitter feed
- WordPress backend is loading as a list
- Embed widget from external source (Zendesk)
- Custom CSS in Widget editor (Gutenberg) gets stripped out
- Need to make sidebar responsive only when screen width is greater than 1024px
- Does anyone know how to make text fade in when scrolling down, that doesn’t require any plug-ins? [duplicate]
- Blog page and the Home page showing the same content
- Unused CSS in WordPress Plugins
- I have text on a banner on my wordpress site and I am unable to get rid of it? Would appreciate any help or advice :-)
- How to change specific menu tab from left to right in My Home Theme?
- WP Admin Bar transparent on some pages (.screen-reader-shortcut)
- Admin bar default color scheme for nonregistered/nonlogged users
- Lines of CSS only being delivered while logged in
- How to Compress Css/js code in wordpress and increase loading speed?
- How to Take Logo Out of Navigation Menu? [closed]
- @media applying globally and not separately for each screen width [closed]
- Make different border color gallery items
- How remove the white space between my menu and slider?
- WordPress site using unknown overriding css
- Move both sidebars more to their sides [closed]
- Style Switching
- Adding a css style to the main nav menu in child pages
- Adding custom css to a theme depending on whether the admin user is logged in or not
- Adjusting post width according to the image size
- Theme looks ugly – FOUC – stylesheets loaded in footer
- custom css in admin panel by user id
- To override CSS of parent theme
- Add “sub-nav” class to a sub menu parent item
- Current Post/Page Ancestor, CSS
- How to target only one element if more elements share the same CSS class
- Can’t override CSS with child theme
- remove white overlay [closed]
- Why doesn’t media(max-width) work on h2 title?
- How to use WordPress 3.8 back-end CSS in front-end?
- Enqueue MCE Editor CSS in admin page