Guest User

Untitled

a guest
Feb 20th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <?php // Do not copy this line, start with line 3
  2.  
  3. // Sensei unhook
  4. global $woothemes_sensei;
  5. remove_action( 'sensei_before_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper' ), 10 );
  6. remove_action( 'sensei_after_main_content', array( $woothemes_sensei->frontend, 'sensei_output_content_wrapper_end' ), 10 );
  7.  
  8. add_action('sensei_before_main_content', 'my_theme_wrapper_start', 10);
  9. add_action('sensei_after_main_content', 'my_theme_wrapper_end', 10);
  10.  
  11. function my_theme_wrapper_start() {
  12. echo '<div class="fl-content-full container">
  13. <div class="row">
  14. <div class="fl-content fl-content-left col-md-8">';
  15. }
  16.  
  17. function my_theme_wrapper_end() {
  18. echo '</div>';
  19. get_sidebar();
  20. echo "</div>
  21. </div>";
  22. }
  23.  
  24. add_action( 'after_setup_theme', 'declare_sensei_support' );
  25. function declare_sensei_support() {
  26. add_theme_support( 'sensei' );
  27. }
Add Comment
Please, Sign In to add comment