Tagged: 

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

    I would like to add specific sidebar to the Custom Archive and Taxonomy.

    I can see this topic https://kriesi.at/support/topic/problem-with-sidebar-on-archive-page/ but this code is no more http://pastebin.com/9kWRHt9C

    So can you please let us know.

    Thanks

    M

    #286043

    Hi ppcinc!

    Thank you for using the theme!

    Please create a custom sidebar on Appearance > Widgets. Name it “Archive Sidebar” for example. Edit archives.php, find this code on line 78:

    //get the sidebar
    				$avia_config['currently_viewing'] = 'blog';
    				get_sidebar();

    Replace it with:

    //get the sidebar
    				echo '<aside class="sidebar sidebar_right  three alpha units" role="complementary" itemscope="itemscope" itemtype="https://schema.org/WPSideBar"><div class="inner_sidebar extralight-border">';
    				dynamic_sidebar('Archive Sidebar');
    				echo '</div></aside>';

    Make sure that the name of the custom widget area is Archive Sidebar.

    Regards,
    Ismael

    #286054

    Great Ismael,

    It works perfectly fine, but may i know how can we display “Displayed Everywhere widget” within this ? as i can see the “Displayed Everywhere widget” is no more after this archive sidebar.

    Thanks
    Mike

    #286071

    Well i think i figured out by:

    `echo ‘<aside class=”sidebar sidebar_right three alpha units” role=”complementary” itemscope=”itemscope” itemtype=”https://schema.org/WPSideBar”><div class=”inner_sidebar extralight-border”>’;

    dynamic_sidebar(‘Displayed Everywhere’);
    dynamic_sidebar(‘ Archive Sidebar’);
    echo ‘</div></aside>’;`

    Thanks

    Mike

    #286079

    Hi!

    Glad you figured it out. If you still have questions, let us know. :)

    Regards,
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Sidebar for Archive & Custom Taxanomy’ is closed to new replies.