panovae

functions.php

Jan 22nd, 2014
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. <?php
  2. /**
  3. * This is your child theme functions file. In general, most PHP customizations should be placed within this
  4. * file. Sometimes, you may have to overwrite a template file. However, you should consult the theme
  5. * documentation and support forums before making a decision. In most cases, what you want to accomplish
  6. * can be done from this file alone. This isn't a foreign practice introduced by parent/child themes. This is
  7. * how WordPress works. By utilizing the functions.php file, you are both future-proofing your site and using
  8. * a general best practice for coding.
  9. *
  10. * All style/design changes should take place within your style.css file, not this one.
  11. *
  12. * The functions file can be your best friend or your worst enemy. Always double-check your code to make
  13. * sure that you close everything that you open and that it works before uploading it to a live site.
  14. *
  15. * @package PrototypeChild
  16. * @subpackage Functions
  17. */
  18.  
  19. /* Uncomment the below line to use the child theme setup function. */
  20. add_action( 'after_setup_theme', 'twentyfourteen_cyr_theme_setup', 10 );
  21. /**
  22. * Setup function. All child themes should run their setup within this function. The idea is to add/remove
  23. * filters and actions after the parent theme has been set up. This function provides you that opportunity.
  24. *
  25. * @since 0.1
  26. */
  27. function twentyfourteen_cyr_theme_setup() {
  28.  
  29. add_action('wp_print_styles', 'pae_load_fonts');
  30. }
  31. function pae_load_fonts() {
  32. wp_register_style('googleFonts', 'http://fonts.googleapis.com/css?family=Exo+2:400,300,700,900,300italic,400italic,700italic,900italic&subset=latin,cyrillic' );
  33. wp_enqueue_style( 'googleFonts');
  34. }
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment