Skip to content

Instantly share code, notes, and snippets.

@sibinx7
Last active February 6, 2017 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sibinx7/462bfe04320658da4ca41e3230fea439 to your computer and use it in GitHub Desktop.
Save sibinx7/462bfe04320658da4ca41e3230fea439 to your computer and use it in GitHub Desktop.
Learning Wordpress genesis

Tips and Tricks while learning Genesis Theme Framework

Sample code to remove loop

add_action('genesis_meta','quick_tips_meta');

function quick_tips_meta(){
  if(is_active_sidebar('sidebar-section')){
    // remove loop 
    remove_action('genesis_loop','genesis_do_loop');
    // re enable loop with custom data 
    add_action('genesis_loop','quick_tips_home_sections');
    // enable full size layout 
    add_filter('genesis_pre_get_option_site_layout','__genesis_return_full_width_content');
  }
}

function quick_tips_home_sections(){
  // add custom widgets
}


Header section

  • remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
  • remove_action( 'genesis_site_title', 'genesis_seo_site_title' );

Footer

  • add_filter('genesis_footer_backtotop_text',__return_false )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment