Astra_Posts_Structure_Markup::astra_force_render_banner_layout_1()
Enable layout 1 for some cases. Ex. WC Product.
Description
Return
(void)
Source
File: inc/modules/posts-structures/class-astra-posts-structure-markup.php
public function astra_force_render_banner_layout_1() {
$is_singular = is_singular() ? true : false;
if ( $is_singular ) {
?> <header class="entry-header <?php astra_entry_header_class(); ?>">
<?php
astra_single_header_top();
} else {
?>
<section class="ast-archive-description">
<?php
do_action( 'astra_before_archive_title' );
}
astra_banner_elements_order();
if ( $is_singular ) {
?>
</header> <!-- .entry-header -->
<?php
astra_single_header_bottom();
} else {
?>
</section>
<?php
do_action( 'astra_after_archive_title' );
}
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |