Advertisement
Guest User

Setting up WordPress Functions File

a guest
Oct 24th, 2014
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. // For Vanilla WordPress
  2. add_action( 'after_setup_theme', 'your_child_theme_setup' );
  3.  
  4. your_child_theme_setup() {
  5.     add_theme_support( 'post-thumbnails' );
  6.     add_theme_support( 'custom-background');
  7.     register_nav_menu( 'primary', __( 'Navigation Menu', 'myTheme' ) );
  8.     define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'myTheme_header_image_height', 198 ) );
  9. }
  10.  
  11. // For Genesis
  12. add_action( 'genesis_setup', 'your_child_theme_setup', 11 );
  13. function your_child_theme_setup() {
  14.     ... your genesis code
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement