Forum Replies Created
-
AuthorPosts
-
tkbmtlMember
Hi all just wanted to close this thread. I got my answer from Tribe. If you want to know if you're on a Events Calendar page the conditional tag to use is : tribe_is_event_query read more here : http://docs.tri.be/Events-Calendar/function-tribe_is_event_query.html
Thank you !
tkbmtlMemberIts not working.
if I put :
is_archive( events )
If get : NOTICE: USE OF UNDEFINED CONSTANT EVENTS
So I put 'events' and its not working.
Thx
tkbmtlMemberI get an error :
NOTICE: USE OF UNDEFINED CONSTANT EVENTS
If I use 'events' or "events" its not working. It seems that Events is not a page ...
I know the problem is in the condition. I just dont know how to do the condition for the Events Calendar Events and Event
Thx
tkbmtlMemberHi, thank you very much for your help. But nothing worked, so I decide to program some PHP stuff instead.
add_action('genesis_before_content', 'remove_some_stuff');
function remove_some_stuff(){
$pageURL = htmlentities($_SERVER["REQUEST_URI"]);
if ((strpos($pageURL, 'events') || strpos($pageURL, 'event') ) !== false) {
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
remove_action('genesis_before_loop', 'genesis_do_breadcrumbs');
}
}I'm new to WordPress and I thought that using a Framework like Genesis would be easier than to use a theme and build my how child on it. But I'm not sure anymore. I feel that Genesis is very well build but adds constraints.
As I'm more of a programmer than a designer it might be easier for me, can you gave me you toughts on this if you have the time ?
Thank you.
tkbmtlMemberThanks for your help, put look closely. I have no problem to remove the post info or the breadcrumbs. If I do my function with the ( ! ) all the info I want to not show are gone, but there gone for all the post..
My problem is with the condition. I don't know how to do the condition.
I tried with : tribe_is_event()
The slug is events and event put how I do the condition for the slug ?
This is working, (with the ! ) look at my URL everything is gone, but for all the pages).
add_filter('genesis_before_content', 'remove_some_stuff');
Function remove_some_stuff() {
if ( !tribe_is_event() ) { // <==== MY PROBLEM IS THE CONDITION
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
remove_action('genesis_before_loop', 'genesis_do_breadcrumbs');
}
}tkbmtlMemberHere is the link : http://www.strengthsensei.com/events/
I want to remove the breadcrumbs and the Filed Under, only for this page on the event page.
Thx
-
AuthorPosts