Community Forums › Forums › Archived Forums › General Discussion › REmove breadcrumbs and meta
Tagged: remove breadcrumbs
- This topic has 5 replies, 3 voices, and was last updated 10 years, 4 months ago by Brad Dalton.
-
AuthorPosts
-
September 3, 2013 at 8:42 am #60422scottzMember
I am building shopping cart site with Shopp, using the associate theme, and need some direction. I am working on trying to alter the template for this page, a shopp shopping cart. I’m trying to remove the breadcrumbs, date, and the hello world phantom post title. But no luck.
http://myic3.com/shop/category/ic3-products/
I took the advice braddalton, and created the separate template using the code he gave me which I am using as the custom page template, in this case, I was instructed by Shopp support to create one called shopp.php.
http://optimizemyshopp.com/blog/an-explanation-of-shopp-templates-theme-vs-content/
I did this using the code you supplied me, and then tried customizing the code thus:
<?php
/**
* This file adds the Landing template to the Associate Child Theme.
*
* @author StudioPress
* @package Generate
* @subpackage Customizations
*//*
Template Name: Custom
*/// Add custom body class to the head
add_filter( ‘body_class’, ‘add_body_class’ );
function add_body_class( $classes ) {
$classes[] = ‘custom-template’;
return $classes;
}// Remove header, navigation, breadcrumbs, footer widgets, footer
/* add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_full_width_content’ ); */
/* remove_action( ‘genesis_header’, ‘genesis_header_markup_open’, 5 ); */
remove_action( ‘genesis_header’, ‘genesis_do_header’ );
/* remove_action( ‘genesis_header’, ‘genesis_header_markup_close’, 15 ); */
/* remove_action( ‘genesis_after_header’, ‘genesis_do_nav’ ); */
remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’, 15 );
remove_action( ‘genesis_before_loop’, ‘genesis_do_breadcrumbs’);
remove_action( ‘genesis_before_footer’, ‘genesis_footer_widget_areas’ );
remove_action( ‘genesis_footer’, ‘genesis_footer_markup_open’, 5 );
remove_action( ‘genesis_footer’, ‘genesis_do_footer’ );
remove_action( ‘genesis_footer’, ‘genesis_footer_markup_close’, 15 );genesis();
As you can see, I still see the breadcrumbs and such. Do you have any further suggestion how to remedy this?
Thanks in advance for your expert advice!
http://myic3.com/September 5, 2013 at 9:51 am #60855Brad DaltonParticipantDo you have any plugins active that filter, remove or modify the breadcrumbs or post info/meta?
This code removes all the post info but did you only want to remove the date from this template?
http://my.studiopress.com/snippets/post-info/
Not sure why you have post info on a page.
September 6, 2013 at 6:52 am #61050scottzMemberThanks Brad,
Good info. I think it's actually fixed, but more because SHOPP finally installed their damn product correctly, with all the template files in place. But thanks for the info and links, I'll definitely use that going forward on other stuff.
September 6, 2013 at 7:23 am #61060Brad DaltonParticipantDecember 14, 2013 at 8:07 am #79018bjc97mMemberI'm having a similar problem in setting up the landing page using Education child theme. I followed the instructions from Brian Gardner you placed on here in various places. It created the landing page template. Everything worked except breadcrumbs still appear.
I am using Simple Edits as a plugin. Not sure what to do to make it go away on the landing page.
December 15, 2013 at 12:20 am #79190Brad DaltonParticipantThat may be interfering with the code to remove the breadcrumbs.
Try deactivating to see if that solves the problem otherwise you could hide the breadcrumbs using CSS code.
.page-template-page_landing-php .breadcrumb { display: none; }
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.