Skip to content

Instantly share code, notes, and snippets.

@webmandesign
webmandesign / gutenberg-wide-alignement-wrapper.php
Last active September 9, 2020 17:14
Wrapping aligned Gutenberg blocks with additional div on a WordPress website front-end.
<?php
// IMPORTANT UPDATE 20190307:
// Since WordPress 5.0.0 we can actually use much simpler solution:
/**
* Applies wrapper div around aligned blocks.
*
* Copy this function into your WordPress theme's `functions.php` file
* and change the `themeprefix` accordingly.
@ryantownley
ryantownley / functions.php
Last active March 7, 2018 18:54
Add breadcrumbs to Genesis Portfolio Pro archives and single pages
<?php
//* Do NOT include the opening php tag
//* Add the breadcrumb navigation to portfolio archives and single pages
add_action( 'genesis_before_loop', 'add_portfolio_breadcrumb' );
function add_portfolio_breadcrumb() {
if ( get_post_type( $post_id ) == 'portfolio' || is_post_type_archive( 'portfolio' ) || is_tax( 'portfolio-type' ) ) {
add_action( 'genesis_before_loop', 'genesis_do_breadcrumbs', 15 );
}
}
@nicoleslaw
nicoleslaw / 1_Tiny_Content_Framework.md
Last active January 23, 2024 02:28
Tiny Content Framework

Tiny Content Framework

About the project

This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.

Give me feedback on Twitter (@nicoleslaw) or by email (nicole@nicolefenton.com).

Contents