inkthemes_setup

The Black Rider Lite Responsive Theme inkthemes setup function.

Description

inkthemes_setup(); 

Usage

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

Defined (1)

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

/functions/inkthemes-functions.php  
  1. function inkthemes_setup() { 
  2. /** ----------------------------------------------------------------------------------- */ 
  3. /** Theme Support 
  4. /**----------------------------------------------------------------------------------- */ 
  5. add_theme_support('post-thumbnails'); 
  6. add_image_size('post-thumbnails', 216, 168, true); 
  7. //custom background support 
  8. add_theme_support('custom-background', array( 
  9. // Background color default 
  10. 'default-color' => '000',  
  11. // Background image default 
  12. //'default-image' => get_template_directory_uri() . '/images/body-bg.png' 
  13. )); 
  14. $args = array( 
  15. 'width' => 1920,  
  16. 'height' => 654,  
  17. 'flex-height' => true,  
  18. 'flex-width' => true,  
  19. 'header-text' => false,  
  20. 'default-image' => get_template_directory_uri() . '/images/slider-1.jpg',  
  21. ); 
  22. //custom header support 
  23. add_theme_support('custom-header', $args); 
  24. /** ----------------------------------------------------------------------------------- */ 
  25. /** Auto Feed Links Support 
  26. /**----------------------------------------------------------------------------------- */ 
  27. add_theme_support('automatic-feed-links'); 
  28. //Load languages file 
  29. load_theme_textdomain('blcr', get_template_directory() . '/languages'); 
  30. $locale = get_locale(); 
  31. $locale_file = get_stylesheet_directory_uri() . "/languages/$locale.php"; 
  32. if (is_readable($locale_file)) 
  33. require_once($locale_file); 
  34. // This theme styles the visual editor with editor-style.css to match the theme style. 
  35. add_editor_style(); 
  36. // activate support for thumbnails 
  37. // added in 2.9 
  38. add_theme_support('menus'); 
  39. set_post_thumbnail_size(216, 168, false);