Many blocks allow you to add a class and/or an ID. If you select the block in the Editor, then look on the right side of the screen under the Advanced tab, it will often show “HTML Anchor” (which is an ID) and “Additional CSS class(es)”. If the effect is something you plan to repeat, a class is often a good way to go – say, word-animation
or something descriptive enough that it’s not likely to conflict with other CSS on your website.
As to how to add the CSS itself, there are a variety of ways. Many themes allow you to go to Appearance > Customize
, then into an Additional CSS
area, and you can add your CSS there. If your theme doesn’t support that, you can either look into a plugin that allows you to add in your custom CSS, or else create a child theme. The child theme doesn’t require a lot of code but can sometimes feel more intimidating than the Customizer or a plugin that just lets you write it in.
Related Posts:
- Will WordPress updates remove Gutenberg Additional Classes?
- Where are Additional CSS files stored
- Running Gutenberg React in Development Mode
- How to include own css on wordpress tinymce editor?
- How to make a script load after Custom Block is loaded in the editor?
- How to customize the default HTML for WordPress Attachments
- Is it possible to use Gutenberg on the front-end?
- Is it possible to change the attributes of a registered style or script before it fires?
- FireFox Inspector :: find CSS file related to
- When using the block.getSaveElement hook can you output different markup based on whether or not you are in the edit view or the live page view?
- Custom CSS for full post vs. excerpt (Content Options)
- Add a containing DIV to core Gutenberg blocks
- How to get WordPress to accept the tag in articles (or other alternatives)
- Gutenberg Blocks – Attributes from comment delimiter or from HTML?
- Gutenberg: How to mix dynamic and static output?
- How to remove padding and margin between divi rows? [closed]
- What values can we use in `formattingControls` parameter in RichText component
- What will happen to the additional CSS when the theme is updated?
- How to display post title & excerpt when mouse hovers on an image?
- Include user defined styles without including wp-load
- Cannot figure out how to center div in WordPress theme [closed]
- Customizing default Mediaelement player
- how can I change the background color of all posts on my server?
- str_replace inside specific css files [closed]
- Good way to customize admin CSS?
- css media query question [closed]
- How to customize the WordPress 2014 theme, to have page using less horizontal margin?
- Remove header title form page through CSS [closed]
- Centering one product on a single page [closed]
- How To Style Links in Content Area With Tag Automatically?
- Inline-Table under TwentyTwelve not working
- custom css and javascript not working on page defined as template?
- WordPress menu: How to make www.link.com/#name never contain current_page_item class?
- Created Custom Block – When I come back to edit post/page and change my block content – Update button stays disabled
- Custom default settings for WP native Gallery Block
- How to add Custom Css within the Editor?
- Custom CSS Nav Menu Style Not Being Applied
- custom email validation using javascript api with elementor pro and code snippets
- Style WooCommerce Product Search Widget
- why won’t my custom css load with the enqueue method or any other method?
- Use Theme CSS in custom code
- adding fade on mouseover to images
- Is it possible to edit a wordpress category with Gutenberg?
- How can I style the Comment Section of a blog post
- Hide entry-header for a specific category
- How do I make elements in mobile only reverse order?
- How to style bootstrap container in WordPress?
- how to add custom html and css to wordpress
- wp.blocks.registerBlockType not showing what I want on the frontend
- How can I delete the word `Category:` from page titles? [duplicate]
- How to have different background image based on post category
- How replace theme styles?
- Wrap WordPress Login Form in custom Div
- Customize WP website specific column with CSS
- How do I target this page specifically?
- How do I change the content of an element for a theme without losing the styling?
- I can’t override CSS
- Two color in one Heading
- Move text from the side of image to below image [closed]
- WordPress Inline Style missing
- Style Radio Buttons inside Edit Page (Custom Fields)
- Adding separate CSS files for separate pages with functions.php
- How to echo custom styles in css format?
- Background setting isn’t applied to entire sidebar height
- Special characters showing in fallback font
- How to support extra color options for shortcodes?
- Adding css and js to a blank page created with custom template
- Will too many overridden css rules lead to performance issues
- Complete Custom Style Part of Site
- add custom css on all page exept of one
- Making custom pages (with an example to explain the goal)
- Custom CSS File wont work on second Page
- how can i change the html and the css of my word press theme that I bought?
- responsive screen not working [closed]
- Edit image alignment in WordPress twentysixteen child theme on attachment page [closed]
- adding new html css to wordpress section from codepen [closed]
- use another theme for just one page
- Instead of Custom CSS Theme CSS is loading
- Particle.js not loading in WordPress Gutenberg
- Narrow paragraph block aligned to left of “wrapper”
- Cannot add custom css in site
- Custom CSS working on home page but not on NEW created PAGE
- Post interior margin in twenty eleven theme
- Disable all Fonts that are Standard in WordPress and replacing them with a custom Font?
- Full Site Editing Non-editble global styles?
- How to add arbitrary custom CSS to a WordPress Block Theme using Site Editor?
- Modifying posts based on category in TwentyTwentyTwo theme
- How to display product variations on same row
- Multi color post title by using custom javascript inside the gutenberg editor?
- Add custom styles to the Raft theme
- Where did I put this one line of css?
- Customise “Add a New Post” page
- Hover Hide-Visible Additional CSS not working in WordPress website, but shows properly in Customize window
- How to use standalone Gutenberg (block editor) instance on any my own admin page in WordPress
- WordPress Page Width Issue: Seeking Solutions
- How to disable the PDF preview in the file block by default
- How do I disable shortcuts in WordPress?
- Newbie question – which css file to edit
- How do i get custom fontSizes and theme fontSizes?
- Create a uniqueId when a block is created or copied