This repository has been archived on 2022-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
divi/sidebar.php
2021-12-07 11:08:05 +00:00

12 lines
317 B
PHP

<?php
if ( ( is_single() || is_page() ) && in_array( get_post_meta( get_queried_object_id(), '_et_pb_page_layout', true ), array( 'et_full_width_page', 'et_no_sidebar' ) ) ) {
return;
}
if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div id="sidebar">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</div>
<?php
endif;