Skip to content

Instantly share code, notes, and snippets.

@Elgameel
Elgameel / functions.php
Last active December 15, 2017 13:04 — forked from reasonstousegenesis/functions.php
Edit the author box title with Genesis (Removes 'About').
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Edit the author box title with Genesis
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/author-box-title/
*/
add_filter( 'genesis_author_box_title', 'rtug_author_box_title' );
@Elgameel
Elgameel / responsive-table.js
Last active April 6, 2019 15:45 — forked from jpen365/responsive-table.js
Get table headings to use with responsive table layout and exclude wp-block-table is-style-stripes
/* Credits:
This bit of code: Exis | exisweb.net/responsive-tables-in-wordpress
Original idea: Dudley Storey | codepen.io/dudleystorey/pen/Geprd */
var headertext = [];
var headers = document.querySelectorAll("table:not(.is-style-stripes) thead");
var tablebody = document.querySelectorAll("table:not(.is-style-stripes) tbody");
for (var i = 0; i < headers.length; i++) {
headertext[i]=[];