fauzanjeg

JKIT || Set GeneratePress Theme Container in JKit Template

Apr 5th, 2022 (edited)
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.95 KB | None | 0 0
  1. /**
  2.  * Set GeneratePress Theme Container in JKit Template
  3.  */
  4.  
  5.  /** For Header */
  6. function add_custom_attribute_after_header() {
  7.     /**
  8.      * Template from header.php of GeneratePress Theme
  9.      */
  10.     ?>
  11.     <div <?php generate_do_attr( 'page' ); ?>>
  12.         <?php
  13.         /**
  14.          * generate_inside_site_container hook.
  15.          *
  16.          * @since 2.4
  17.          */
  18.         do_action( 'generate_inside_site_container' );
  19.         ?>
  20.         <div <?php generate_do_attr( 'site-content' ); ?>>
  21.             <?php
  22.             /**
  23.              * generate_inside_container hook.
  24.              *
  25.              * @since 0.1
  26.              */
  27.             do_action( 'generate_inside_container' );
  28. }
  29. add_action( 'jkit_header', 'add_custom_attribute_after_header', 999 );
  30.  
  31.  /** For Footer */
  32. function add_custom_attribute_before_footer() {
  33.     /**
  34.      * Tempalte from footer.php of GeneratePress Theme
  35.      */
  36.     ?>
  37.         </div>
  38.     </div>
  39.     <?php
  40. }
  41. add_action( 'jkit_footer', 'add_custom_attribute_before_footer', -999 );
  42.  
  43. /**
  44.  * END Set GeneratePress Theme Container in JKit Template
  45.  */
Add Comment
Please, Sign In to add comment