Hi
I have created some custom archive pages and single-template pages. If I use your custom sidebar setting how can I call this into my template file?
I tried calling it in using the name dynamic_sidebar('Custom Sidebar')
but that didn’t work.
Any ideas?
Hey Tinsterman!
Thank you for using Enfold.
What is the name of the custom widget that you created? Solution no. 3 on this link should work: https://kriesi.at/support/topic/questions-related-to-the-search-function/#post-312982
Best regards,
Ismael
Hi
Its called “free member side bar” and in my custom template I call
get_sidebar('free-member');
Then in the file sidebar-free-member.php I call this
<?php
global $avia_config;
echo "<aside class='sidebar sidebar_".$sidebar." ".$sidebar_smartphone." ".avia_layout_class( 'sidebar', false )." units' ".avia_markup_helper(array('context' => 'sidebar', 'echo' => false)).">";
echo "<div class='inner_sidebar extralight-border'>";
dynamic_sidebar("Free Member SideBar");
echo "</div>";
echo "</aside>";
However, the standard Blog sidebar appears.
Hi!
What is the exact Custom Widget area name? If it’s “Free Member Sidebar” (case sensitive), this should work:
dynamic_sidebar("Free Member Sidebar");
Best regards,
Ismael
Hi
I fixed it by renaming my sidebar the same as my sidebar file. sidebar-free-member.php
dynamic_sidebar(“Free Member”);
Strange… but thanks for your help!
Please close this ticket