Support » Fixing WordPress » Remove Sidebar from page–called in footer
4 years, 6 months ago
I am using the Balita theme which has a dynamic sidebar called in the footer. I would like to remove the sidebar on a custom page template, but I am not sure how since it is called in the footer.
It’s usually called from the theme’s functions.php file using
and it probably calls from footer.php (it varies though)
Thanks–I am going to give it a shot when I look at it later tonight. Crossing my fingers!
Yes, that can be challenging, hope you good luck!
there is a conditional tag for page templates;
<?php if( !is_page_template('template-file-name.php' ) ) : ?>
<?php get_sidebar(); //or whatever code is used in your theme's footer.php to call the sidebar// ?>
<?php endif; ?>