-
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
- Best way to overide plugin CSS?
- How do I cleanly override a plugin’s CSS with a child theme?
- Why does wp_enqueue_style() in plugin not load stylesheet?
- How can I reduce the amount of files loaded/included per plugin?
- How to create gutenberg block using REST API independently or as headless way?
- Change My Basket text in the header of WooCommerce Artificer theme
- Layout shop page: resize images and columns
- How to find out what blocks are added by a plugin
- How extend shortcode default values for a plugin?
- Passing select control value to block
- send_headers don’t work on wordpress multisite
- How do I write into a file (css)
- Custom CSS for plugin form
- Theme’s default styles are overriding my plugin’s custom CSS
- Remove ALL css for a specific plugin page
- Headers Content-Security-Policy CSP Major Issue
- Gutenberg block can’t save richtext
- Child Pages Short Code plug-in and hover capabilities?
- How to hide CSS by default and show on button press
- WordPress plugin output formatting
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- plugin shortcode output
- How to include this jQuery File in wordpress?
- Would Gutenberg be considered a PlugIn?
- Can’t get Gutenberg InspectorControls to work
- My single.php page does not show the related data to the post which is clicked
- Stop Plugin from Getting Styles from Other Plugin
- Enqueue stylesheet in plugin for wp-login.php
- How to apply next/previous classes to LIs for pagination links?
- How to add CSS via custom plugin?
- How to add custom table style for table block in gutenberg editor
- how to prevent all css and javascripts files from loading
- Front-end CSS Library for plugin [closed]
- Infinite scroll messing up nth:of-type
- Wooslider custom css
- WordPress Plugin Insert Html Code with Shortcode
- Not able to override plugin’s default css rules
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- Cannot access WP admin because plugin returns 204
- Best practice when modifying plugins CSS [duplicate]
- how would I include some html in the header section of a wordpress plugin? I get an error
- CSS/JS files in WordPress
- How do I fill the Home Description?
- How do I work with the SlideDeck plug-in?
- Custom Plugin scripts from admin working in frontend
- Themes conflicts and overrides my WordPress Support widget Plugin styles
- Gutenberg default attributes are empty when accessing in edit
- How to save Setting pages data to the database?
- Gutenberg: Prevent links from being clickable in the block. Error: “Cannot destructure property ‘frameElement’ of ‘r’ as it is null.”
- Menu not closing after clicking – WordPress – Elementor
- Prevent WordPress from sending set-cookie http header
- WordPress Gutenberg How to make TextControl Required?
- SASS not showing in customized preloader plugin
- How do I insert a shape onto an image and then play an audio file upon mouse hover or mouse click on that shape in WordPress
- Set up new WordPress domain using unclear files
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- How to echo a PHP Code After the Content
- How to prevent encoding plugin HTML output to entities?
- Why is every single HTML tag being stripped out of liveblog entries?
- Form tries to download a file on submit
- Primary Menu doesn’t show because of w3 cache
- Like/Dislike Bar not working when updating
- Change text “My Basket” in woocommerce artificer theme
- Content expands beyond its column container [closed]
- Block registration with viewScript
- Custom gutenberg block image preview not working
- How can I utilize the same “show more” functionality that I see in superuser on my own WordPress site?
- Gutenberg Block to Select Category Term
- A way to upload old html pages with all its assets via WordPress admin and to add a fixed menu on top of those (a la Wayback Machine)
- How do I set register_meta for a specific CPT?
- Update Content for a Custom Block Toolbar Button
- How can I display an attribute from each post inside foreach($latest_posts1 as $post )
- Wrong block appender button showing
- How to get custom setting from get_option and pass it in getEntityRecords in gutenberg block?
- Footer option is missing in Customiser