SHARE
TWEET

Functions after setup theme

rcm_atul Sep 20th, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Functions after setup theme
  2.  
  3.  
  4. if (site_url() == "http://127.0.0.1" ){
  5. define( "VERSION", time() );
  6. }
  7.  
  8. function intra_theme_bootstraping(){
  9. add_theme_support('title-tag');
  10. add_theme_support("post-thumbnails");
  11. add_theme_support('post-formats', array('audio', 'video', 'quote', 'aside', 'link', 'link','image'));
  12.  
  13. $intra_custom_header_color = array(
  14.   "header-text"              => true,
  15.   "default-text-color"       => "#FF0000",
  16.     "height"                   => 600,
  17.     "width"                    => 1200,
  18.     "flex-width"
  19. );
  20.  
  21. add_theme_support('custom-header', $intra_custom_header_color);
  22. add_theme_support("custom-background");
  23.  
  24. $intra_logo_defaults = array(
  25.     'height' => '100',
  26.     'width'     => '100'
  27. );
  28. add_theme_support('custom-logo', $intra_logo_defaults);
  29. textdomain("intra");
  30. register_nav_menu("mainmenu", __("Main Menu", "intra"));
  31. register_nav_menu("footer-menu", __("Footer Menu", "intra"));
  32. }
  33.  
  34. add_action('after_setup_theme', 'intra_theme_bootstraping');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top