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
@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
*/
.recent-posts-intro {
background:#ccc;
padding: 20px;
margin-bottom: 30px;
}
#lead-story {
background: white;
margin-bottom: 30px;
}
#lead-story .item {
@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
*/
@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 / 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 / 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
*/
<?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
*/
<?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
*/
@BinaryMoon
BinaryMoon / label-extra-navigation.php
Created August 13, 2018 19:09
Label Extra Navigation
<?php
/**
* Plugin Name: Label additional navigation
* Plugin URI: https://prothemedesign.com
* Description: Add an additional navigation position under the header image.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
*
* @package ptd
@BinaryMoon
BinaryMoon / mimbopro-header.php
Created July 8, 2018 11:57
Change Mimbo Pro so that the header can be a custom height
<?php
/**
* Plugin Name: Change Mimbo Pro Header Size
* Plugin URI: https://prothemedesign.com
* Description: Change the height of the header image on Mimbo Pro.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
* Text Domain: mimbopro
*/