Commit realizado el 12:13:52 08-04-2024
This commit is contained in:
11
wp-content/themes/Divi/sidebar.php
Normal file
11
wp-content/themes/Divi/sidebar.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?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;
|
Reference in New Issue
Block a user