
Copy-paste snippets for blocks, block themes, security, performance, Tailwind CSS, PHP and React. New snippets every Monday, Wednesday and Friday, each one run in a real WordPress before it is published.

This code will add additional categories into oxygen block library

Video Tutorial Basic oxygen structure with:div.container > list wrapper (with image inside) + menu element Front end preview Front end preview for mobile

If you need to pause the Oxygen Slider Element on hover, it is not there by default. Just use the below Javascript (jQuery) in a code-block on the and add the below code to JS section. Note : Just comment the PHP/HTML content middle Line.

Hide the title of any classic WordPress widget by starting it with an exclamation mark, and keep the title in the widget admin.

The Oxygen slider element shows all slides once in a flash on page load then go correct styling. This is called FOUC (Flash Of Unstyled Content). If you are facing the same issue, here is the solution. Just follow steps. Copy your slider element ID in somewhere like notepad and add an extra class to…

Show titles built from custom fields, taxonomy terms and the date in the WordPress admin post list, instead of (no title) rows.

Add CSS classes, including Tailwind classes, to the links of a WordPress wp_nav_menu() with one extra argument, without replacing existing classes.

Are working on the online shop or live website? Is always pain to migrate customers? You want to migrate page by page and not to redo entire website at once? In scenario where you have existing website and want to partially rebuild it and migrate to tailwind we are offering option to enable Winden only…

Show the estimated reading time of a WordPress post in your theme without a plugin: 200 words per minute plus time for images.

Remove the inline CSS WordPress prints for single Gutenberg blocks, like wp-block-group-inline-css, and keep the rest of the block styles.

Toggle between two elements in WordPress: one button switches between two content panels, for example monthly and yearly prices. No jQuery.

A WordPress preview page for Tailwind fluid typography: every fluid-text class with its name and its real px size at the current screen width.

If you are importing frameworks such as Bootstrap, Tailwind CSS, Bulma, Materialize … you may not want that Oxygen Builder defaults overwrite some of frameworks styles. Thats why we offering solution do remove Oxygen CSS. Keep in mind that if you disable Oxygen CSS non of Oxygen CSS’s will be added on the website: Oxygen…

This is nice feature but in most of the cases you will not want to have it so the clients do not go off brand and mess up with styling. Also its loading on front end so it’s extra load.

Preview your Tailwind type scale on a WordPress page: every text-* class with its class name and the real font size in px and rem.

Show the current screen width in a corner of your WordPress front end while you are logged in, to check breakpoints. Visitors never get the code.

Create ACF field group and assign it to posts. Create field label and name it color and choose field type Color picker. Assign color to each post Create a repeater in Oxygen builder Select first child of Repeater Add class to that element “data-color-bg” Go to advanced > attributes > Add attribute. First field needs…
3rd party plugins actions admin archive block-themes block editor Blocks block styles block theme build Category core CPT CSS custom post types debugging development full site editing gutenberg hook hooks Image javascript load styles Must Have npm Oxygen performance php plugins repeater rest api scripts organizer security settings api single product tailwind Taxonomy theme.json Tips updates WooCommerce wordpress wp-cli WP Admin