pratikshrestha

Parallax Frame - Rearrange Sections

Oct 16th, 2016
432
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Function to rearrange the sections in child theme
  3.  */
  4. function parallax_frame_child_rearrange_sections(){
  5.     /**
  6.      * Remove Promotion Headline from its current position
  7.      */
  8.     remove_action( 'parallax_frame_before_content', 'parallax_frame_promotion_headline', 60 );
  9.  
  10.     /**
  11.      * Remove Logo Slider from its current position
  12.      */
  13.     remove_action( 'parallax_frame_before_content', 'parallax_frame_logo_slider', 70 );
  14.  
  15.     /**
  16.      * Remove Header Highlight from its current position
  17.      */
  18.     remove_action( 'parallax_frame_before_content', 'parallax_frame_header_highlight_content_display', 30 );
  19.  
  20.     /**
  21.      * Remove Portfolio from its current position
  22.      */
  23.     remove_action( 'parallax_frame_before_content', 'parallax_frame_portfolio_display', 40 );
  24.  
  25.  
  26.     /**
  27.      * Add Promotion Headline before Header Highlight Content
  28.      */
  29.     add_action( 'parallax_frame_after_content', 'parallax_frame_promotion_headline', 26 );
  30.  
  31.     /**
  32.      * Add Header Highlight Content
  33.      */
  34.     add_action( 'parallax_frame_after_content', 'parallax_frame_header_highlight_content_display', 26 );
  35.  
  36.     /**
  37.      * Add Promotion Headline after Header Highlight Content
  38.      */
  39.     add_action( 'parallax_frame_after_content', 'parallax_frame_promotion_headline', 28 );
  40.  
  41.     /**
  42.      * Add Portfolio below Promotion Headline
  43.      */
  44.     add_action( 'parallax_frame_after_content', 'parallax_frame_portfolio_display', 29 );
  45.  
  46.     /**
  47.      * Add Logo Slider after Featured Content in footer
  48.      */
  49.     add_action( 'parallax_frame_after_content', 'parallax_frame_logo_slider', 35 );
  50. }
  51. add_action( 'init', 'parallax_frame_child_rearrange_sections' );
RAW Paste Data