• I want to get rid of the breadcrumbs on my site and this is the file where it can be done. However, I keep breaking my site when I try to comment out the “Custom breadcrumb trail arguments.”

    A little help would be hugely appreciated. Thank you.

    <?php
    
    /* Load the core theme framework. */
    require_once( trailingslashit( TEMPLATEPATH ) . 'library/hybrid.php' );
    $theme = new Hybrid();	
    
    /* Load the theme-options framework. */
    require_once( trailingslashit( TEMPLATEPATH ) . 'includes/includes.php' );
    $includes = new CVIncludes();
    
    /* Do theme setup on the 'after_setup_theme' hook. */
    add_action( 'after_setup_theme', 'theme_setup');
    
    /**
     * Theme setup function.  This function adds support for theme features and defines the default theme
     * actions and filters.
     */
    function theme_setup() {
    
    	/* Get action/filter hook prefix. */
    	$prefix = hybrid_get_prefix();
    
    	define('CV_OPTIONS', 'cv_'. $prefix . '_options'); //name of entry into database - will break DB if this has spaces!
    	define('CV_BACKUPS', 'cv_'. $prefix . '_backups'); //name of entry into database - will break DB if this has spaces!
    
    	/* Add theme support for core framework features. */
    	add_theme_support( 'hybrid-core-menus', array( 'primary', 'secondary') );
    	//add_theme_support( 'hybrid-core-sidebars', array( 'primary') );
    	add_theme_support( 'hybrid-core-widgets' );
    	add_theme_support( 'hybrid-core-shortcodes' );
    	add_theme_support( 'hybrid-core-post-meta-box' );
    	//add_theme_support( 'hybrid-core-drop-downs' );
    	//add_theme_support( 'hybrid-core-template-hierarchy' );
    
    	/* Add theme support for framework extensions. */
    //	add_theme_support( 'post-stylesheets' );
    //	add_theme_support( 'dev-stylesheet' );
    //	add_theme_support( 'loop-pagination' );
    	add_theme_support( 'get-the-image' );
     	add_theme_support( 'breadcrumb-trail' );
    	add_theme_support( 'cleaner-gallery' );
    
    	add_theme_support( 'cvincludes-options');
    	add_theme_support( 'cvincludes-shortcode' );
    	add_theme_support( 'cvincludes-socialmedia');
    	add_theme_support( 'cvincludes-dropdowns', array('longsubs') );
    	add_theme_support( 'cvincludes-portfolio', array('portfolio_type'=>'filterable'));
    	add_theme_support( 'cvincludes-eztables' );
    //	add_theme_support( 'cvincludes-layerslider' );
    //	add_theme_support( 'cvincludes-slides', array('slide_width'=>1600,'slide_height'=>650, 'image_width'=>1600,'image_height'=>650, 'nav_in_slide'=>false), array('background_slider'));	
    
    	add_theme_support( 'cvincludes-seo' );
    	$data = get_option(CV_OPTIONS);
    	if($data['seo_enable_seo'] == true)
    		add_theme_support( 'hybrid-core-seo' );
    	else {
    		remove_theme_support( 'hybrid-core-seo' );
    	}	
    
    	/* Add theme support for WordPress features. */
    	add_theme_support( 'automatic-feed-links' );	
    
    	/* Add the breadcrumb trail just after the container is open. */
    	add_action( "{$prefix}_open_main", 'breadcrumb_trail' );
    
    	/* Register sidebars. */
    	add_action( 'init', 'theme_register_sidebars', 11 );	
    
    	/* Filter the breadcrumb trail arguments. */
    	add_filter( 'breadcrumb_trail_args', 'breadcrumb_trail_args' );	
    
    	add_image_size( 'entry-image-thumb', 184, 9999);
    
    	add_image_size( 'portfolio-thumb', 475, 290, true);
    
    	add_image_size( 'rect-image-1', 190, 130,true);
    	add_image_size( 'rect-image-2', 242, 340,true);
    	add_image_size( 'square-image', 190, 190,true);	
    
    	add_image_size( 'popular-image-thumb', 70, 45, true);
    
    }
    
    /**
     * Custom breadcrumb trail arguments.
     */
     function breadcrumb_trail_args( $args ) {
    
    	/* Change the text before the breadcrumb trail. */
    	$args['before'] = __( 'You are here:', hybrid_get_textdomain() );
    
    	/* Return the filtered arguments.
    	return $args;
    }
    
    function theme_register_sidebars() {
    
    	/* Register the widgets template sidebar. */
    	register_sidebar(
    		array(
    			'id' => 'primary',
    			'name' => __( 'Primary Sidebar', hybrid_get_textdomain() ),
    			'description' => __( 'Primary sidebar.', hybrid_get_textdomain() ),
    			'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">',
    			'after_widget' => '</div></div>',
    			'before_title' => '<h3 class="widget-title title-small"><span>',
    			'after_title' => '</span></h3>'
    		)
    	);	
    
    	/* Register the widgets template sidebar. */
    	register_sidebar(
    		array(
    			'id' => 'sidebar-subsidiary-1',
    			'name' => __( 'Foot Sidebar #1', hybrid_get_textdomain() ),
    			'description' => __( 'Foot Sidebar #1.', hybrid_get_textdomain() ),
    			'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">',
    			'after_widget' => '</div></div>',
    			'before_title' => '<h3 class="widget-title"><span>',
    			'after_title' => '</span></h3>'
    		)
    	);
    
    	/* Register the widgets template sidebar. */
    	register_sidebar(
    		array(
    			'id' => 'sidebar-subsidiary-2',
    			'name' => __( 'Foot Sidebar #2', hybrid_get_textdomain() ),
    			'description' => __( 'Foot Sidebar #2.', hybrid_get_textdomain() ),
    			'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">',
    			'after_widget' => '</div></div>',
    			'before_title' => '<h3 class="widget-title"><span>',
    			'after_title' => '</span></h3>'
    		)
    	);
    
    	/* Register the widgets template sidebar. */
    	register_sidebar(
    		array(
    			'id' => 'sidebar-subsidiary-3',
    			'name' => __( 'Foot Sidebar #3', hybrid_get_textdomain() ),
    			'description' => __( 'Foot Sidebar #3.', hybrid_get_textdomain() ),
    			'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">',
    			'after_widget' => '</div></div>',
    			'before_title' => '<h3 class="widget-title"><span>',
    			'after_title' => '</span></h3>'
    		)
    	);	
    
    	/* Register the widgets template sidebar. */
    	register_sidebar(
    		array(
    			'id' => 'sidebar-subsidiary-4',
    			'name' => __( 'Foot Sidebar #4', hybrid_get_textdomain() ),
    			'description' => __( 'Foot Sidebar #4.', hybrid_get_textdomain() ),
    			'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">',
    			'after_widget' => '</div></div>',
    			'before_title' => '<h3 class="widget-title"><span>',
    			'after_title' => '</span></h3>'
    		)
    	);	
    
    }
    
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Commenting out Breadcrumbs’ is closed to new replies.