Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #172152

    Hello, i tried long time to solve this issue. But no results.

    Im using the event manager plugin, and i want to have a seperate sidebar with “recent posts” etc on it on all of my event single pages. The event manager plugin says i should create a file called event-single.php and then design everything… i copied the content of page.php in there and tried to replace get_sidebar with the (events) sidebar… but doesnt show up…
    i created a new widget area in the admin called “events” i want to display this widget area on all of my events… how can i do this?

    thanks

    #172830

    Hi neotemplates!

    You can use the dynamic sidebar function. First, you need to register the sidebar on includes > admin > register-widget-area.php. Find this code:

    foreach ($sidebars_to_show as $sidebar)
    		{
    			register_sidebar(array(
    				'name' => 'Single Product Pages',
    				'before_widget' => '<div id="%1$s" class="widget clearfix %2$s">', 
    			'after_widget' => '<span class="seperator extralight-border"></span></div>', 
    			'before_title' => '<h3 class="widgettitle">', 
    			'after_title' => '</h3>', 
    			));
    		}

    Below, add the event widget area:

    foreach ($sidebars_to_show as $sidebar)
    		{
    			register_sidebar(array(
    				'name' => 'Event Pages',
    				'id' => 'event-sidebar',
    				'before_widget' => '<div id="%1$s" class="widget clearfix %2$s">', 
    			'after_widget' => '<span class="seperator extralight-border"></span></div>', 
    			'before_title' => '<h3 class="widgettitle">', 
    			'after_title' => '</h3>', 
    			));
    		}

    We named the widget area “Events Pages”, you have to look for this on Appearance > Widgets. Next, edit the template that you created using the page.php, find the sidebar code:

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

    We need to call the event-sidebar widget area id, replace the above code with:

    echo '<div class="sidebar three alpha units"><div class="inner_sidebar extralight-border">';
    				//get the sidebar
    				$avia_config['currently_viewing'] = 'page';
    				dynamic_sidebar( 'event-sidebar' );
    				echo '</div></div>';

    You can now place widgets on Appearance > Widgets > Event Pages widget area.

    Cheers!
    Ismael

    #174060

    ok thanks for this comment, i will test it now and get back to you

    #175000

    Hi!

    I hope it worked out? If not you can also try: http://wordpress.org/plugins/widget-logic/ to show certain widgets on event pages only.

    Best regards,
    Peter

    #176923

    Thank you Ismael – I have been trying for a while to get a custom sidebar for events calendar.

    I added your above code to a custom events template and very happy that it works , though I skipped the first part for registering the widget area because I was able to register the new sidebar in the widget admin area.

    Thanks again Team Kriesi – you guys rock!

    Edit: I noticed that the everywhere sidebar is not displaying below the calendar sidebar, how can I also have the sitewide everywhere sidebar display below the calendar sidebar?

    Thank you for your help

    • This reply was modified 11 years ago by ttem. Reason: Noticed everywhere sidebar is missing
    #176936

    Hi I’m also having a problem with my sidebar. It always appears in my latest news page, even when I have selected no sidebar. I’m sure I’m making a standard newbie mistake but I’m a bit baffled at the moment. I have a different sidebar that I want to show here that appears to work on my other pages so I’m a bit confused.

    #177398

    Hi!

    If you chose the blog page from the theme options then the page layout gets populated by your theme wide settings and anything on that specific page gets ignore. So you can de-select the blog page from the main theme options and then just set it from the menu so that you choose how it displays using the page options and advanced layout editor.

    Cheers!
    Devin

    #187638

    Edit: I noticed that the everywhere sidebar is not displaying below the calendar sidebar, how can I also have the sitewide everywhere sidebar display below the calendar sidebar?

    Ismael,

    I still haven’t figured out how to get everywhere sidebar to display below the on calendar.

    Also noticed more importantly that the calendar page sidebar completely disappears in mobile. The sidebar does display fine on all other pages of site.

    Any ideas how to fix this?

    • This reply was modified 10 years, 12 months ago by ttem.
    #187982

    Hi!

    You can use a plugin like this one to control which items are shown where in your sidebars: http://wordpress.org/extend/plugins/widget-logic/

    Just keep in mind that using a custom sidebar will remove other widgets from showing.

    The sidebar has an option in the theme options on if it should show on mobile or be hidden.

    Cheers!
    Devin

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Seperate Sidebar on all of my events – using event manager plugin’ is closed to new replies.