-
Add a class to the block
-
Then you can use css to set width for that block like so:
.your-block-class {
width: 70%;
}
- Add the above css code to your themes custom CSS field or the style.css file in appearance>theme editor. Make sure your using a child theme if you do the later. And of course replace your-block-class above with the class name you created.
EDIT: noticed you did this. I recommend using a % instead of px so it will adapt to mobile, tablets, etc..
Related Posts:
- Using tabs for wordpress plugin
- How to add page using HTML, CSS and JS?
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- how to access all user dashboard on fronted page [closed]
- Adding Plugin Assets to Header
- Images under 1MB are not being compressed
- “uagb/section and uagb/columns block”
- insert an html tag using php plugin
- Why is adoptStyles-css stylesheet link added to every page?
- Theme deactived html and css styling on home page posts
- How to make a slider hearder?
- inserting custom css, html and js into the current page as a popup window
- Overriding inline !important CSS with Javscript code snippet with media query
- make p tag collapsed after 3 rows
- General Term for this form Field
- Implementing Scrollable Images
- How to fix shifting header after installing speed / cache plugins?
- WordPress custom blockquote with black background & white text?
- Edit the stylesheet of a child theme
- How to remove a css class for any wordpress page
- Possible jquery / library conflict in plugin usage
- Element works, but not on wordpress site [duplicate]
- Trying to disable all notifications except for one on woocommerce checkout page with css [closed]
- Option value not getting updated until page refresh in WordPress
- How to create a “Most Popular” & “Latest” TAB in WordPress
- How to change css poperty through webhook in wordpress
- Error shown for Trying to get property ‘roles’ of non-object in WordPress After Content for User Roles
- Hook into and send mail using WP Mail SMTP type plugin from HTML static front page?
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- Plugin echos text from shortcode function in gutenberg page editor
- How do I prevent the link from using url of the image in Block Editor?
- Inserting HTML tag with ACF into shortcode
- Can I use a plugin for a singular page on my website?
- plugin style conflicts, how to override? [closed]
- Is there an earlier hook than login_head or login_enqueue_scripts?
- Headers already sent when I try to add headers via a shortcode
- How to disable CSS rule in Twentythirteen style.css?
- Theme’s default styles are overriding my plugin’s custom CSS
- Remove ALL css for a specific plugin page
- Globally register styles but enqueue them selectively
- WordPress repository forbids me call wp-load.php in non-WordPress file
- CSS from textarea in options page to frontend what to do
- custom changes removed after plugin update
- W3 Total cache “empty all caches” and no stylesheets render [closed]
- Admin Panel pagination link styles
- How to style the RSS wordpress?
- Can someone please tell me what is wrong with my plugin?
- Show an image in my header.php
- How to add Internationalization in WordPress using Javascript/React?
- how to disable blockrenderAppender inside all Innerblocks?
- Headers Content-Security-Policy CSP Major Issue
- Cannot find a list of data selectors for Gutenberg editor
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- How to debug error message: Cannot modify header information
- WPBakery JS composer unused css [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- Creating custom HTML pages
- Trouble with plugin styles in admin area of WordPress
- Add a CSS class based on categroy id to archive pages
- Add button gutenberg help
- Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes
- className not populating in custom block
- Gutenberg block can’t save richtext
- Child Pages Short Code plug-in and hover capabilities?
- WooCommerce: Building a page with user input which is used to query order status and external API and return a result
- Removing included CSS file that doesn’t exist
- Use gutenberg block editor on plugin page (outside of a post)
- Using SVN to upload plugin created with gutenberg blocks
- How to hide CSS by default and show on button press
- I am not receiving className in a ServerSideRender component
- (Sticky Row) How do i make a row sticky in wpbakery page builder?
- Will Gutenberg Have a Negative Impact on Page Speed?
- How to create an input field, and base the output on spreadsheet data? [closed]
- WordPress plugin output formatting
- How can i get the post’s full html source by its ID?
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Blog titles from WP blog on plain html site?
- Frontent user submit and view content [closed]
- Ajax Search Lite: Customize Autoscroll
- Delete mobile menu button [closed]
- Widgets Scripts don’t load – but load when I reload the page
- html generated by theme exist but doesnt appear in browser
- Ability to automatically redirect a URL
- How to insert HTML/JavaScript form into WordPress page? [closed]
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- WordPress putting “rn” in every line break?
- Which filter affects the ‘entry-title’ post class
- plugin shortcode output
- Adding CSS to custom post type admin page causes error
- Object method calling for global $wpdb in header.php
- Gutenberg: Block SelectControl saves attributes but after a reload of Gutenberg it loads its defaults. Why?
- How to use my menu PHP code as sidebar?
- What does making sure “that your theme is WordPress header and footer tag enabled” mean?
- Redirect to another page using contact form 7? [closed]
- Know which plugin is calling JS in wp_head()?
- How to include this jQuery File in wordpress?
- Would Gutenberg be considered a PlugIn?
- Can’t get Gutenberg InspectorControls to work
- Edit External CSS