Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #390286

    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?

    #390735

    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

    #390797

    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.

    #391386

    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

    #391480

    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Call custom sidebar for custom archives’ is closed to new replies.