Forum Replies Created
-
AuthorPosts
-
UKECParticipant
Hey Courtney,
It didn’t seem like the code worked.I tried saving it but it said that there’s an error and the changes were rolled back. Here is what my theme support said:
Hi, I try to make all the events pages on my site in full width with the theme I use, I managed to do it for almost all the events pages but not for this one: https://www.ukeconline.com/new/events/community/add
I cannot manage to add it in full width. Here the code I use:
function my_post_layout_class( $class ) {// Alter your layout if ( tribe_is_event() || tribe_is_view() || tribe_is_list_view() || tribe_is_event_category() || tribe_is_in_main_loop() || tribe_is_day() || tribe_is_month() || is_singular( 'tribe_events' ) || ( function_exists( 'tribe_is_event_queryx27;' ) && tribe_is_event_query() ) ) { $class = 'full-width'; } // Return correct class return $class;
}
add_filter( ‘ocean_post_layout_class’, ‘my_post_layout_class’, 20 );I’m sure it is simple, but I can’t find the function to make the page above full width, can you give me what function of events calendar I need to use?
Thank you very much.UKECParticipantHey Courtney,
It didn’t seem like the code worked.I tried saving it but it said that there’s an error and the changes were rolled back. Here is what my theme support said:
Hi, I try to make all the events pages on my site in full width with the theme I use, I managed to do it for almost all the events pages but not for this one: https://www.ukeconline.com/new/events/community/add
I cannot manage to add it in full width. Here the code I use:
function my_post_layout_class( $class ) {// Alter your layout if ( tribe_is_event() || tribe_is_view() || tribe_is_list_view() || tribe_is_event_category() || tribe_is_in_main_loop() || tribe_is_day() || tribe_is_month() || is_singular( 'tribe_events' ) || ( function_exists( 'tribe_is_event_queryx27;' ) && tribe_is_event_query() ) ) { $class = 'full-width'; } // Return correct class return $class;
}
add_filter( ‘ocean_post_layout_class’, ‘my_post_layout_class’, 20 );I’m sure it is simple, but I can’t find the function to make the page above full width, can you give me what function of events calendar I need to use?
Thank you very much.UKECParticipantHey Courtney,
I’ve managed to remove the sidebar and this is what I used:
function my_post_layout_class( $class ) {
// Alter your layout if ( tribe_is_event() || tribe_is_view() || tribe_is_list_view() || tribe_is_event_category() || tribe_is_in_main_loop() || tribe_is_day() || tribe_is_month() || is_singular( 'tribe_events' ) ) { $class = 'full-width'; } // Return correct class return $class;
}
add_filter( ‘ocean_post_layout_class’, ‘my_post_layout_class’, 20 );However, there are still sidebars on these pages:
https://www.ukeconline.com/new/events/community/add
https://www.ukeconline.com/new/events/community/listWhy doesn’t it work? Is there another function to add?
UKECParticipantHello, I emailed my theme support and this is what they wrote:
Nicolas replied
Jan 5, 1:44pm
Hello, no you misunderstood, I know how to solve this issue, I just need to make the template full width but for this I need to know the template functions. For example to make the single post full width, it is this code:
function my_post_layout_class( $class ) {// Alter your layout if ( is_singular( 'post' ) ) { $class = 'full-width'; } // Return correct class return $class;
}
add_filter( ‘ocean_post_layout_class’, ‘my_post_layout_class’, 20 );The function of the single post is “is_singular( ‘post’ )”, I need to know what is the function of the calendar template so I will be able to do the same. Ask them with the example I shows you.
UKECParticipantHey Courtney,
Yup I’ve tested the options and it doesnt seem to solve the problem
-
AuthorPosts