functions.php 787 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Add Editor Styles
  4. */
  5. function newtheme_editor_styles() {
  6. // Enqueue editor styles.
  7. add_editor_style(
  8. array(
  9. '/assets/theme.css',
  10. )
  11. );
  12. // Primary navigation is used on the header and the footer pattern
  13. register_nav_menus(
  14. array(
  15. 'primary' => __( 'Primary Navigation', 'videomaker' ),
  16. 'social' => __( 'Social Navigation', 'videomaker' ),
  17. 'footer' => __( 'Footer Navigation', 'videomaker' )
  18. )
  19. );
  20. }
  21. add_action( 'after_setup_theme', 'newtheme_editor_styles' );
  22. /**
  23. *
  24. * Enqueue scripts and styles.
  25. */
  26. function newtheme_scripts() {
  27. wp_enqueue_style( 'newtheme-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array('blockbase-ponyfill'), wp_get_theme()->get( 'Version' ) );
  28. }
  29. add_action( 'wp_enqueue_scripts', 'newtheme_scripts' );