mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-05 12:32:23 +08:00
https://github.com/impress-org/givewp-snippet-library/blob/master/theme-compatibility/kadencewp-theme.php
42 lines
941 B
Text
42 lines
941 B
Text
function givewp_kadence_theme_start_wrapper() {
|
|
/**
|
|
* Hook for Hero Section
|
|
*/
|
|
do_action( 'kadence_hero_header' );
|
|
?>
|
|
<div id="primary" class="content-area">
|
|
<div class="content-container site-container">
|
|
<main id="main" class="site-main" role="main">
|
|
<?php
|
|
/**
|
|
* Hook for anything before main content
|
|
*/
|
|
do_action( 'kadence_before_main_content' );
|
|
?>
|
|
<div class="content-wrap">
|
|
<?php
|
|
}
|
|
|
|
add_filter( 'give_default_wrapper_start', 'givewp_kadence_theme_start_wrapper' );
|
|
|
|
/**
|
|
* Custom Give Single Template Wrapper End -- KadenceWP Theme
|
|
*/
|
|
function givewp_kadence_theme_end_wrapper() { ?>
|
|
</div>
|
|
<?php
|
|
/**
|
|
* Hook for anything after main content
|
|
*/
|
|
do_action( 'kadence_after_main_content' );
|
|
?>
|
|
</main><!-- #main -->
|
|
<?php
|
|
get_sidebar();
|
|
?>
|
|
</div>
|
|
</div><!-- #primary -->
|
|
<?php
|
|
}
|
|
|
|
add_filter( 'give_default_wrapper_end', 'givewp_kadence_theme_end_wrapper' );
|