Forum Replies Created
-
AuthorPosts
-
peeblesmediaParticipant
Thanks, will just stick to using the widgets in sidebar to promote events.
peeblesmediaParticipantThanks for prompt response. The template override isn’t working. The ‘Hello!!’ is showing up in the main default-template here: http://www.homesandinteriorsscotland.com/events/
Sidebar showing below page as opposed to right hand side, it’s showing the default sidebar as opposed to the one ‘Events Sidebar’.
I don’t create any php code for the ‘Events Sidebar. The sidebar is located within Appearance > Widgets and it’s called ‘Events Sidebar’. (The theme I use creates exclusive sidebars which you can select when you create a post/page.)
Code on the default-template.php :
<?php
/**
* Default Events Template
* This file is the basic wrapper template for all the views if ‘Default Events Template’
* is selected in Events -> Settings -> Template -> Events Template.
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php
*
* @package TribeEventsCalendar
* @since 3.0
* @author Modern Tribe Inc.
*
*/if ( !defined(‘ABSPATH’) ) { die(‘-1’); }
get_header(); ?>
<div id=”tribe-events-pg-template”>
<?php tribe_events_before_html(); ?>
<?php tribe_get_view(); ?>
<?php tribe_events_after_html(); ?>
<h1> Hello!! </h1>
</div> <!– #tribe-events-pg-template –>
<?php get_sidebar(EventsSidebar); ?>
<?php get_footer(); ?><?php
/**
* Default Events Template
* This file is the basic wrapper template for all the views if ‘Default Events Template’
* is selected in Events -> Settings -> Template -> Events Template.
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php
*
* @package TribeEventsCalendar
* @since 3.0
* @author Modern Tribe Inc.
*
*/if ( !defined(‘ABSPATH’) ) { die(‘-1’); }
get_header(); ?>
<div id=”tribe-events-pg-template”>
<?php tribe_events_before_html(); ?>
<?php tribe_get_view(); ?>
<?php tribe_events_after_html(); ?>
<h1> Hello!! </h1>
</div> <!– #tribe-events-pg-template –>
<?php get_sidebar(Events); ?>
<?php get_footer(); ?>peeblesmediaParticipantOK, I’ll not use event category code at all.
When I create a normal WordPress post should categories from the Events section appear in my WordPress Categories panel?peeblesmediaParticipantI tried that code with and without the sidebar name and neither the ‘Events Sidebar or the default sidebar showed up.
peeblesmediaParticipantThis reply is private.
peeblesmediaParticipantThis reply is private.
June 10, 2014 at 6:13 am in reply to: Featured image / Exclusive sidebar / Event posts not merging with posts #216671peeblesmediaParticipantThis reply is private.
-
AuthorPosts