pratikshrestha

Catch Responsive Child Move Breadcrumb

Sep 20th, 2016
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2. /**
  3. * Child Theme functions and definitions
  4. *
  5. */
  6.  
  7. /**
  8. * Loading Parent theme stylesheet
  9. *
  10. */
  11. add_action( 'wp_enqueue_scripts', 'catchresponsive_child_enqueue_styles' );
  12. function catchresponsive_child_enqueue_styles() {
  13. wp_enqueue_style( 'catchresponsive-parent-style', get_template_directory_uri() . '/style.css' );
  14. }
  15.  
  16. /**
  17. * Function to move breadcrumb in child theme below slider
  18. */
  19. function catchresponsive_child_move_breadcrumb() {
  20. remove_action( 'catchresponsive_after_header', 'catchresponsive_add_breadcrumb', 50 );
  21. add_action( 'catchresponsive_before_content', 'catchresponsive_add_breadcrumb', 15 );
  22.  
  23. }
  24. add_action( 'init', 'catchresponsive_child_move_breadcrumb' );
Advertisement
Add Comment
Please, Sign In to add comment