weblizar_head_setup

The Enigma weblizar head setup function.

Description

weblizar_head_setup(); 

Usage

  1. if ( !function_exists( 'weblizar_head_setup' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = weblizar_head_setup(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function weblizar_head_setup() 
  2. {  
  3. global $content_width; 
  4. //content width 
  5. if ( ! isset( $content_width ) ) $content_width = 550; //px 
  6.  
  7. //Blog Thumb Image Sizes 
  8. add_image_size('home_post_thumb', 340, 210, true); 
  9. //Blogs thumbs 
  10. add_image_size('wl_page_thumb', 730, 350, true);  
  11. add_image_size('blog_2c_thumb', 570, 350, true); 
  12. add_theme_support( 'title-tag' ); 
  13.  
  14. // Load text domain for translation-ready 
  15. load_theme_textdomain( 'enigma', WL_TEMPLATE_DIR_CORE . '/lang' );  
  16.  
  17. add_theme_support( 'post-thumbnails' ); //supports featured image 
  18. // This theme uses wp_nav_menu() in one location. 
  19. register_nav_menu( 'primary', __( 'Primary Menu', 'enigma' ) ); 
  20. // theme support  
  21. $args = array('default-color' => '000000', ); 
  22. add_theme_support( 'custom-background', $args);  
  23. add_theme_support( 'automatic-feed-links'); 
  24. $defaults = array( 
  25. 'default-image' => '',  
  26. 'width' => 0,  
  27. 'height' => 0,  
  28. 'flex-height' => false,  
  29. 'flex-width' => false,  
  30. 'uploads' => true,  
  31. 'random-default' => false,  
  32. 'header-text' => true,  
  33. 'default-text-color' => '',  
  34. 'wp-head-callback' => '',  
  35. 'admin-head-callback' => '',  
  36. 'admin-preview-callback' => '',  
  37. ); 
  38. add_theme_support( 'custom-header', $defaults ); 
  39.  
  40.  
  41. /** 
  42. * This theme styles the visual editor to resemble the theme style,  
  43. * specifically font, colors, icons, and column width. 
  44. */ 
  45. add_editor_style('css/editor-style.css'); 
  46. require( WL_TEMPLATE_DIR . '/options-reset.php'); //Reset Theme Options Here