Tagged: The Events Calender
-
AuthorPosts
-
October 26, 2016 at 11:26 am #704227
Hi there i am using the events calender plugin and
i would like to remove the breadcrumbs from the single event page. I found this code:.tribe-events-page-template .title_container { display: none!important; }
but it doesen
t seem to work anymore, it
s from 2014.any hints ?
krumm
October 26, 2016 at 1:55 pm #704282Hi krummnagel!
Can you please provide us a link to an events page?
Thanks a lot
Cheers!
BasilisOctober 26, 2016 at 1:55 pm #704283Hi krummnagel!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_title_args', 'avia_disable_event_tb', 10, 2); function avia_disable_event_tb($args,$id) { $header_settings = avia_header_setting(); if(is_singular( 'tribe_events' )){ $header_settings == 'false'; } return $header_settings; }
Best regards,
YigitOctober 26, 2016 at 4:07 pm #704382Hi,
thanks for your replies.
Yigit, your code removed the title container globally on all pages.You can find a single event link in the private content.
I need to remove the breadcrumbs and the text before the breadcrumbs on the single event page.
Thanks.
- This reply was modified 8 years, 1 month ago by krummnagel.
October 26, 2016 at 4:08 pm #704384Hi!
Do you mind creating a temporary admin login and posting it here privately?
Best regards,
YigitOctober 26, 2016 at 7:44 pm #704496no problem
- This reply was modified 8 years, 1 month ago by krummnagel.
October 26, 2016 at 9:31 pm #704519Hey!
Please remove the code i posted previously and add following code to the bottom of Functions.php file of your child theme in Appearance > Editor
function avia_title($args = false, $id = false) { global $avia_config; if(!$id) $id = avia_get_the_id(); $header_settings = avia_header_setting(); if($header_settings['header_title_bar'] == 'hidden_title_bar' || is_singular( 'tribe_events' )) return ""; $defaults = array( 'title' => get_the_title($id), 'subtitle' => "", //avia_post_meta($id, 'subtitle'), 'link' => get_permalink($id), 'html' => "<div class='{class} title_container'><div class='container'><{heading} class='main-title entry-title'>{title}</{heading}>{additions}</div></div>", 'class' => 'stretch_full container_wrap alternate_color '.avia_is_dark_bg('alternate_color', true), 'breadcrumb' => true, 'additions' => "", 'heading' => 'h1' //headings are set based on this article: http://yoast.com/blog-headings-structure/ ); if ( is_tax() || is_category() || is_tag() ) { global $wp_query; $term = $wp_query->get_queried_object(); $defaults['link'] = get_term_link( $term ); } else if(is_archive()) { $defaults['link'] = ""; } // Parse incomming $args into an array and merge it with $defaults $args = wp_parse_args( $args, $defaults ); $args = apply_filters('avf_title_args', $args, $id); //disable breadcrumb if requested if($header_settings['header_title_bar'] == 'title_bar') $args['breadcrumb'] = false; //disable title if requested if($header_settings['header_title_bar'] == 'breadcrumbs_only') $args['title'] = ''; // OPTIONAL: Declare each item in $args as its own variable i.e. $type, $before. extract( $args, EXTR_SKIP ); if(empty($title)) $class .= " empty_title "; $markup = avia_markup_helper(array('context' => 'avia_title','echo'=>false)); if(!empty($link) && !empty($title)) $title = "".$title.""; if(!empty($subtitle)) $additions .= "<div class='title_meta meta-color'>".wpautop($subtitle)."</div>"; if($breadcrumb) $additions .= avia_breadcrumbs(array('separator' => '/', 'richsnippet' => true)); $html = str_replace('{class}', $class, $html); $html = str_replace('{title}', $title, $html); $html = str_replace('{additions}', $additions, $html); $html = str_replace('{heading}', $heading, $html); if(!empty($avia_config['slide_output']) && !avia_is_dynamic_template($id) && !avia_is_overview()) { $avia_config['small_title'] = $title; } else { return $html; } }
Regards,
YigitOctober 26, 2016 at 11:11 pm #704569Hey Yigit,
the code seems to work. Thank you very much.
Great support as always!
Cheers
krummOctober 26, 2016 at 11:16 pm #704573Hey Krumm!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Regards,
Yigit -
AuthorPosts
- The topic ‘The Events Calender – remove breadcrumbs from single event page and others’ is closed to new replies.