I figured it out.
For anyone else this is how i did it.
my save function ends with
return el('div', {},
el( 'p', {className: 'paragraphs'}, attributes.paragraphs ),
)
and i changed my attribute to this.
paragraphs: {
type: 'string',
default: 1,
source: 'html',
selector: '.paragraphs',
},
Then in my style.scss i just have a display:none. As the editor options shouldn’t be displayed on the front end for me.
Related Posts:
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- How can I add an image upload field directly to a custom write panel?
- Creating a table in the admin-style?
- On the WordPress Admin section how do I link to submenu pages created for a plugin?
- How to return only certain fields using get_posts()
- Scheduled events disappear from events queue
- Where do I start from
- Where is it better to start learning how to develop for WordPress?
- How to log plugin errors to plugin error_log file
- Custom Post Type Link from Plugin
- How to Get a List of Sub Blogs without Using get_blog_list()?
- Is there any way to test if a function running only on plugin update is successfully running?
- Using wp_cron with custom time interval and the register activation hook
- Conditional check to see if a bootstrap.css is included in a theme
- Throw 403 in a plugin [duplicate]
- WordPress multisite apply different options over each site from same plugin
- Using ob_start() in plugin
- Create Element From Dynamic HTML String [closed]
- Change of query var in pre_get_posts not maintained
- Hook for post permalink update
- How can I view all WP generated thumbnails in Media Manager?
- Only allow plugin to be activated on root site of multisite
- what is the best practice for including ‘wp-includes’ classes
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- Load page template with custom content using a plugin
- How to put placeholder text in the main post input area?
- How can i get the title i specified in add_options_page for my header
- Performance of several get_option() calls
- Is there a way to list tags order by post_meta field
- how to redirect to another post without getting headers already sent error?
- Add tab to profile.php wordpress plugin development
- Sharing a common set of image files for media library, across all sites within multisite
- Plugin update not reflected in WordPress plugin page
- How do I alter the comment form ‘allowed tags’ text in a plugin?
- Best plugin for most viewed post [closed]
- What could cause my plugin’s options/settings page not to load?
- How to remove images from my plugin page in WP Directory?
- How to create database table, add data, update and delete using wpdb via plugins?
- Extending theme PHP class in plugin
- Any ideas to trigger some code after plugin update?
- Is there an additional block.json property to set to get an InnerBlocks child to respect the “supports” property?
- Plugin with action ‘save_post’ needs to press publish twice on order to publish
- WP Editor Issue in Backend
- How to test plugin update through WordPress plugin updater without tagging new release in the repo
- On the .org repo, can your plugin name/slug contain “WooCommerce” [closed]
- Wrap text around shortcode
- WP and object persistence (or lack thereof)
- UWooCommerce – add cart discount programmatically?
- Checked() function on a multidimensional array
- Bad Request in AJAX
- Remove sidebar on single page using plugin API
- When does save_post hook fire on post save/update
- Plugin does not add action
- Enqueuing scripts and styles in custom plugins
- Include file in plugin file
- Plugin language always shows WP site language, not profile language
- Adding custom stylesheet into header.php using a plugin
- Developing the save function in Gutenberg blocks
- Creating an installation zip file
- update_callback is not working in register_rest_field
- How to create ShortCode
- Detect change in site_url and home_url
- Reporting errors in a shortcode plugin
- shortcode tags not working in do_shortcode
- Why is the form not updating when I select a new sector from the list?
- How to remove/replace current page template?
- How do I add a menu item to a Pods admin menu?
- Is there a way to add a link with add_post_meta?
- How to Show Category List With Corresponding Links?
- .htaccess with WordPress – create my own pretty url with parameters (above WordPress settings)
- Import images remotly run through timeout error
- Generating a password-protected front-end page via a plugin
- Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial
- How do I add a 5 digit ZIP code validation to a Contact7 form?
- HTMLCollection not counting right in editor? / for loop not working on elements in DOM
- wp_remote_post not working with admin-post.php
- How can we stop showing short code in create or edit post section
- Delete Plugin Options with Verify
- Load custom translation in custom plugin fails
- set a custom post type to a taxonomy term programmatically in metabox
- Uncaught ReferenceError: kpoejy is not defined
- Is there better way to do this without duplicating queries?
- How to create a simple plugin which show/hide an html code in wordpress?
- How to display properly exception or echo string after posting in plugin?
- How to create custom frontend php page via plugin
- How can I add recent posts to menu like mashable
- Translation of plugin Upload button
- Changing upload directory for plugin uploads only
- Create wordpress dashboard metabox which spans all columns
- How do I query posts and have their related taxonomies returned in the results?
- add_filter adds output in the head
- How can i add insertion point between inner blocks in my custom block like core blocks
- Update option hook not firing
- $_GET vs get_query_var()
- Checking if the query is empty does not work
- Remove default wordpress roles
- What is the meta_query key name for the woo product average rating? [closed]
- how to catch a data from a array in WordPress
- Why my admin-ajax url returns 0 even after adding echo and die() at the end of function?
- External api call using wordpress