This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A custom var_dump that wraps the content in pre elements so it's easier to read. | |
* Inspired by: https://twitter.com/wpmark/status/1310870151483584514 | |
* | |
* @param mixed $things A variable length list of things to be output. | |
* @return void | |
*/ | |
function bm_var_dump( ...$things ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Change Mimbo Pro Search Full Post | |
* Plugin URI: https://prothemedesign.com | |
* Description: Display full posts in search results. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: mimbopro | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Disable editor styles. | |
* Plugin URI: https://prothemedesign.com | |
* Description: Remove support for editor styles. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.entry-title { | |
background: yellow; | |
color: black; | |
position: absolute; | |
padding:2rem 3rem; | |
font-size: 2.5rem !important; | |
transform: translate(0, -7rem); | |
} | |
header.entry-header { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Always use the slider in Carmack. | |
* Plugin URI: https://prothemedesign.com | |
* Description: Don't display posts in the boxes under the slider. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: broadsheet | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Lens disable more posts on . | |
* Plugin URI: https://prothemedesign.com | |
* Description: Disable Lens 'more posts' functionality for logged out users. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* | |
* @package ptd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Intitiate sidebars | |
* | |
* @link https://developer.wordpress.org/reference/functions/register_sidebar/ | |
*/ | |
function mytheme_widgets_init() { | |
// Sidebar. | |
register_sidebar( |