-
Hello,
I create an empty template for my custom post type but the sidebar is always displayed as right sidebar !
Thank you for your help<?php /** * Template Name: Liste Categories Formations * * * @package WordPress */ get_header(); ?> <div <?php post_class(''); ?> id="post-<?php the_ID(); ?>" > <div class="container"> <div class="section"> <?php // Check Sidebar Layout $sidebar_layout = boc_post_sidebar_layout(); // IF Sidebar Left if($sidebar_layout == 'left-sidebar'){ get_sidebar(); } if($sidebar_layout != 'full-width'){ echo "<div class='post_content col span_3_of_4'>"; }else { echo "<div class='post_content'>"; } ?> <div class="section"> </div> <?php // Close "post_content" echo "</div>"; // IF Sidebar Right if($sidebar_layout == 'right-sidebar'){ get_sidebar(); } ?> </div> </div> </div> <!-- Post :: END --> <?php get_footer(); ?>
- Theme support is offered to verified customers only. To post a topic go to your Theme Category and add your question at the page bottom.
Theme Categories
Recent Topics
- PHP 8.5.9 Fatal errors and warnings in Fortuna theme
- Alea updates
- Why "Fortune" theme is no longer available?
- PHP 8.1 Error
- Issue with WPB editor icons
- Issue with Icons and Text Alignment for Arabic Content
- Installing and Activating Plugin Fortuna Portfolio CPT (1/8)
- Testimonials page is blank
- warning boc_framework line 905
- Transparent header issue without changes