I have created a sub-template to show three widgets below the main row and above footer. The problem is that when I call those templates from any main template they just don't work. To me, the code is right as if I insert same code directly into footer.php, it works. But, I can't use it because I just want to show those widgets on single posts/pages not the homepage. Check the code below:
Code:
<div id="footerwidget-bg">
<div id="main" class="row">
<div id="footerwidget-one" class="col4">
<?php dynamic_sidebar( 'Footer Widget ONE' ); ?>
</div>
<div id="footerwidget-two" class="col4">
<?php dynamic_sidebar( 'Footer Widget TWO' ); ?>
</div>
<div id="footerwidget-three" class="col4">
<?php dynamic_sidebar( 'Footer Widget THREE' ); ?>
</div>
</div>
</div>
I am using below code to call the widgetsinfooter.php sub template.
Code:
<?php bfa_get_template_part( 'widgetsinfooter' ); ?>