Forum Replies Created
-
AuthorPosts
-
derekalvarezMember
The reason I think it's the theme is because I tested it another Genesis theme/website I have and it showed up correctly.
derekalvarezMemberI found a better plugin (for me)...
http://wordpress.org/plugins/widget-context/This took care of everything. Thanks for setting me on the right track!
derekalvarezMemberIt had worked at first and then stopped, weird.
derekalvarezMemberI tried...
is_page(events)
and...
!is_page(events)
And it either stops showing it altogether or shows it on every page. Then I tried...
is_page(events) or !is_page(events)
And it shows it on every page.
derekalvarezMemberThat worked perfect! Thanks, Brad!
I looked here to see how to do the opposite...
http://codex.wordpress.org/Conditional_TagsI want to take another widget and make sure it doesn't show on the events page... do you know how to do this? Something like...
if_page(events): false
derekalvarezMemberDid you mean this...
http://test.epicmag.org/events/derekalvarezMemberI can change the template file, but the plugin doesn't create a page for me to select the sidebar. Here is the code I have on the template file...
<?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'); } ?>
<?php get_header(); ?>
<div id="content-sidebar-wrap">
<div id="content">
<div id="tribe-events-pg-template">
<?php tribe_events_before_html(); ?>
<?php tribe_get_view(); ?>
<?php tribe_events_after_html(); ?>
</div> <!-- #tribe-events-pg-template -->
</div><div id="sidebar" class="sidebar widget-area">
<?php genesis_sidebar() ?>
</div></div> <!-- #content-sidebar-wrap -->
<?php get_footer(); ?>
I asked the plugin author and he said to check with my theme author.
derekalvarezMemberI forgot to mention it's an Events Calendar plugin template file and I can't access a page to edit it like that. They automatically create a page link called /events
derekalvarezMemberThat's interesting, I didn't figure the .home .widget would change the header widget. Thanks for pointing that out, Aaron!
derekalvarezMemberI figured it out for anyone else who has this problem...
<?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'); } ?>
<?php get_header(); ?>
<div id="content-sidebar-wrap">
<div id="content">
<div id="tribe-events-pg-template">
<?php tribe_events_before_html(); ?>
<?php tribe_get_view(); ?>
<?php tribe_events_after_html(); ?>
</div> <!-- #tribe-events-pg-template -->
</div><div id="sidebar" class="sidebar widget-area">
<?php genesis_sidebar() ?>
</div></div> <!-- #content-sidebar-wrap -->
<?php get_footer(); ?>
derekalvarezMemberI might go that way, but the styling doesn't look as sharp when I tried it... I was figuring this way I'd have to change less code.
derekalvarezMemberThanks, Brad. Here it is... http://wordpress.org/plugins/the-events-calendar/
I've changed the code a bit and it added the sidebar, but now the sidebar isn't aligning correctly...
<?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'); } ?>
<?php get_header(); ?>
<div id="content" class="content-sidebar-wrap">
<div id="tribe-events-pg-template">
<?php tribe_events_before_html(); ?>
<?php tribe_get_view(); ?>
<?php tribe_events_after_html(); ?>
</div> <!-- #tribe-events-pg-template --></div>
<div id="sidebar" class="widget-area">
<?php genesis_sidebar() ?>
</div>
<?php get_footer(); ?>
derekalvarezMemberGeez, how simple was that? Thanks for the help, now I feel pretty dumb 😉
derekalvarezMemberAnyone?
derekalvarezMemberI need to remove them from this page...
http://www.tucsonrealestate.net/killer-idx/Because it is a template for all the pages like this...
http://tucsonrealestate.blasshomes.com/newonmarkettoda_150944.cfmderekalvarezMemberI need to remove them from this page...
http://www.tucsonrealestate.net/killer-idx/Because it is a template for all the pages like this...
http://tucsonrealestate.blasshomes.com/newonmarkettoda_150944.cfmderekalvarezMemberThanks, Angela. I appreciate it!
derekalvarezMemberI opted for the second part. That's exactly what I needed, thanks!
derekalvarezMemberThat sounds like it would work, Chris. But I experimented and found this solution...
I removed the Genesis viewport code from my functions.php file and then added this code to "Genesis>Theme Settings" in the wp_head() area...
<meta name="viewport" content="width=1400, maximum-scale=1.0" />
That did the trick for me because in this case I wanted everything to scale down just like it looks on the desktop.
derekalvarezMemberThank you, Chris. I tried that and it didn't work because I think I didn't communicate clearly what I need... The bottom part of the bear image is not aligning with the rest of the bear when the screen gets smaller.
-
AuthorPosts