How would I designate a section as fullwidth on a post with a sidebar? I want to put the fullwidth section below or at the end of the post. Thanks,
Hi Ravi,
This falls into a customization request which is outside of our support scope. We are going to do our best to redirect you to correct resources and pointers but we will not be able to implement the functionality for you.
Please kindly go to X > Global Blocks and add a global block and use the builder to create a fullwidth section and row.
Then, make sure that you have the Child Theme installed and add the PHP code below to functions.php file:
function fullwidth_global_block() {
if (is_single()) {
echo do_shortcode('[cs_gb id=916]');
}
}
add_action('x_before_site_end', 'fullwidth_global_block');
Replace
[cs_gb id=916]width whatever code you get when you finish adding the Global Block:
I used the x_before_site_end action to add the Global Block after the content which includes the main content area and sidebar. You can learn more about the actions available in X here.
Thank you.
Thank you, that worked well!
You’re welcome
.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
