Skip to content

Instantly share code, notes, and snippets.

@maddisondesigns
maddisondesigns / functions.php
Last active January 1, 2019 11:07
Remove Yoast SEO nag after update
<?php
/*
* Remove the annoying Yoast SEO nag for all Admin Users. Tested with v3.4.2
*/
class ahRemoveYoastNag_Remove_Yoast_SEO_Nag {
private $yoastPluginFile;
public function __construct() {
$this->yoastPluginFile = "wordpress-seo/wp-seo.php";
register_activation_hook( $this->yoastPluginFile, array( $this, 'ryn_remove_yoast_nag_on_activation' ) );
@SmartWizardSolutions
SmartWizardSolutions / functions.php
Created January 17, 2014 03:40
Move Genesis Page Title Above Content/Sidebar Using New HTML5 hooks.
<?php
//Moves titles above content and sidebar
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
add_action( 'genesis_after_header', 'genesis_do_post_title', 20 );
//this removes post titles from blog archive pages as well
//Add titles back to home page, single posts, categeory archives and one specific page
add_action('get_header', 'move_other_post_titles');
function move_other_post_titles() {