Using the Functions File

Rule #1

Structure should be logical and go from general to specific:

  • Start engine
  • Include anciliary files (using require_once and built-in Genesis DIR constants, eg CHILD_DIR)
  • Register additional featured image sizes
  • Register additional widget areas/sidebars
  • Load scripts / custom stylesheets
  • Functions hooked to standard WP filters (eg excerpt, content)
  • Layout, eg forcing layout on home.php or elsewhere
  • Post classes, eg adding new class to particular posts etc
  • Site-wide remove Genesis actions
  • Site-wide add to Genesis actions
  • Custom functions

Rule #2

Add additional image sizes using add_image_size(). Include the theme name in the image size name, eg ‘Lifestyle Thumbnail’

Rule #3

Register theme-specific widget areas using genesis_register_sidebar(). Always assign an ID to each sidebar.

Rule #4

Use wp_enqueue_script to load js. (See note General[8] about js frameworks)

WordPress SEO