Forums
Forums / Themes and Templates / Get specific widget from sidebar?
(@deniro)
15 years, 4 months ago
Hello.
I have a footer widget area coded like this:
<div style="width: 1000px"> <div style="width: 25%">FIRST 'XYZ SIDEBAR' WIDGET HERE</div> <div style="width: 25%">SECOND 'XYZ SIDEBAR' WIDGET HERE</div> <div style="width: 25%">THIRD 'XYZ SIDEBAR' WIDGET HERE</div> <div style="width: 25%">FOURTH 'XYZ SIDEBAR' WIDGET HERE</div> </div>
How to add specific widgets from the sidebar there? get_sidebar() loads the whole sidebar and get_template_part doesn’t seem to work.
Thanks!
(@esmi)
Try creating 4 separate widget-capable areas in your footer.
The topic ‘Get specific widget from sidebar?’ is closed to new replies.