Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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 doesent seem to work anymore, its from 2014.

    any hints ?

    krumm

    #704282

    Hi krummnagel!

    Can you please provide us a link to an events page?

    Thanks a lot

    Cheers!
    Basilis

    #704283

    Hi 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,
    Yigit

    #704382

    Hi,
    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.
    #704384

    Hi!

    Do you mind creating a temporary admin login and posting it here privately?

    Best regards,
    Yigit

    #704496

    no problem

    • This reply was modified 8 years, 1 month ago by krummnagel.
    #704519

    Hey!

    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,
    Yigit

    #704569

    Hey Yigit,

    the code seems to work. Thank you very much.

    Great support as always!

    Cheers
    krumm

    #704573

    Hey 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘The Events Calender – remove breadcrumbs from single event page and others’ is closed to new replies.