Skip to content

Instantly share code, notes, and snippets.

View kristarella's full-sized avatar

Kristen Symonds kristarella

View GitHub Profile
@kristarella
kristarella / resume-template.html
Created March 12, 2019 07:29
Resume template for WordPress Block Editor (Gutenberg)
<!-- wp:columns {"className":"clear three-one"} -->
<div class="wp-block-columns has-2-columns clear three-one"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"align":"center"} -->
<h2 style="text-align:center" id="mce_5">Professional Experience</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Text here...</p>
<!-- /wp:paragraph -->
<?php
add_filter( 'the_content', 'add_thing_to_search_page' );
function add_thing_to_search_page( $content ) {
// Check if it's the search page
if ( is_search() ) {
$mycode = 'Put your HTML here';
return $mycode . $content;
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Change Open Graph image URLs in Yoast SEO for categories + Taxonomy Images plugin */
add_filter( 'wpseo_opengraph_image', 'change_opengraph_image_url' );
function change_opengraph_image_url( $url ) {
$image_url = apply_filters( 'taxonomy-images-queried-term-image-url', '' );
if (is_category() && $image_url) {
return $image_url;