Skip to content

Instantly share code, notes, and snippets.

@Bowriverstudio
Bowriverstudio / gist:0eabbe2a122b149730806390c810c6f4
Created October 22, 2022 19:30
Sample Content Post for Testing Gutenberg Short
<!-- wp:paragraph {"align":"center","backgroundColor":"cyan-bluish-gray","textColor":"foreground","className":"has-very-light-gray-background-color"} -->
<p class="has-text-align-center has-very-light-gray-background-color has-foreground-color has-cyan-bluish-gray-background-color has-text-color has-background">Gutenberg Sample Content.<br>Put together with ❤️ by <a href="http://bowriverstudio.com">Bowriver Studio</a></p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level":1} -->
<h1>This is a heading (H1)</h1>
<!-- /wp:heading -->
<!-- wp:heading -->
<h2>This is a heading (H2)</h2>
HELLO WORLD
@Bowriverstudio
Bowriverstudio / gist:ad559aab2fda28bc9e47ce3a66b1e2a4
Created October 22, 2018 22:16
Remove scripts and styles from bookly on pages not using the shortcode
/**
* Removes the scripts regestered for the plugin bookly except on the page bookly shortcode is rendered on.
*
* @author bowriverstudio.com
* @see bowriverstudio.com/2018/10/15/adding-plugin-bookly-to-site/
* @see https://www.booking-wp-plugin.com/
* @todo You will have to modify the code "PAGE_SLUG" to your page ie: book-free-consolation
* @version 15.1 (Based on bookly's version)
*/
function brs_deregister_bookly_scripts(){