Skip to content

Instantly share code, notes, and snippets.

View BinaryMoon's full-sized avatar
🏠
Working from home

Ben Gillbanks BinaryMoon

🏠
Working from home
View GitHub Profile
<?php
/**
* Plugin Name: Opti Add Slider
* Plugin URI: https://prothemedesign.com
* Description: Add a slider to the Opti header.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
* Text Domain: opti
*/
<?php
/**
* Plugin Name: Change Opti slide quantity
* Plugin URI: https://prothemedesign.com
* Description: Change number of posts that appear in the Opti slider.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
* Text Domain: opti
*/
@BinaryMoon
BinaryMoon / gutenberg_classic_editor.php
Last active August 16, 2019 20:33
Set the classic editor block as the default block when creating a new post.
<?php
/**
* Plugin Name: Classic Editor First
* Plugin URI: https://prothemedesign.com
* Description: Set the default post block to use the classic editor block.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
*/
@BinaryMoon
BinaryMoon / get-post-gallery.php
Last active May 1, 2021 13:03
Make WordPress function Get_Post_Gallery work for Gutenberg powered sites.
<?php
/**
* Plugin Name: Get Post Gallery Polyfill
* Plugin URI: https://prothemedesign.com
* Description: Make Get_Post_Gallery work for Gutenberg powered sites.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
*
* @package ptd
@BinaryMoon
BinaryMoon / change-opti-header-image-size.php
Created September 27, 2018 10:02
Change the header image size for the Opti WordPress theme.
<?php
/**
* Plugin Name: Change Header Image Size
* Plugin URI: https://prothemedesign.com
* Description: Change the size of the header image in Opti.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
*/
@BinaryMoon
BinaryMoon / opti-recent-posts-intro.php
Last active October 5, 2018 13:31
Add a text widget to the recent posts column on the Opti Homepage.
<?php
/**
* Plugin Name: Opti Recent Posts Intro
* Plugin URI: https://prothemedesign.com
* Description: Use a widget to add an intro to the recent posts column.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
*/
.recent-posts-intro {
background:#ccc;
padding: 20px;
margin-bottom: 30px;
}
#lead-story {
background: white;
margin-bottom: 30px;
}
#lead-story .item {
@BinaryMoon
BinaryMoon / opti-translate-recent-posts.php
Created October 9, 2018 08:10
Change the "Recent Posts" title in Opti to "Recent Articles".
<?php
/**
* Plugin Name: Opti change "Recent Posts"
* Plugin URI: https://prothemedesign.com
* Description: Change the "Recent Posts" title in Opti to "Recent Articles".
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
* Text Domain: broadsheet
*/
@BinaryMoon
BinaryMoon / skip-to-search.php
Created October 30, 2018 21:08
Add a 'skip to search' link to the top of a WordPress theme.
<?php
/**
* Plugin Name: Skip to search.
* Plugin URI: https://prothemedesign.com
* Description: Add "Skip to search" button to site header.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
* Text Domain: sts
*/