Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › remove title from shop and single products page
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › remove title from shop and single products page
- This topic has 14 replies, 6 voices, and was last updated 8 years by Kyle – SUPPORT.
-
Posted in: Neighborhood
-
September 9, 2013 at 11:25 am #20642
hello is possible to remove the title from shop page and from single product page?
thx in advance
September 10, 2013 at 8:58 am #20916Hi, you can deactivate the titles from pages and posts below the editor in the page/post options!
Cheers
September 10, 2013 at 9:24 am #20929hi melanie
it’s work for single products page but not for shop pageany idea?
September 10, 2013 at 4:06 pm #21005it doesn’t work also in the checkout page
September 11, 2013 at 10:45 am #21155Hey there, okay, if you let me see your website I will give you custom css to remove it with ease 🙂 Cheers
September 11, 2013 at 1:57 pm #21229This reply has been marked as private.September 12, 2013 at 2:59 pm #21457Hey, you can use this custom css:
.post-type-archive .page-heading.span12.clearfix.alt-bg.none {
display: none;
}Cheers!
August 16, 2015 at 1:03 pm #204363Is it possible without css via functions.php in child theme to deactivate the title on single product pages?
August 17, 2015 at 8:24 am #204417Hi,
You should put the following two lines in your theme’s main functions.php:remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
Thanks
MohammadAugust 17, 2015 at 8:42 pm #204717Hi Mohammed,
it won’t work.
I put it in the functions.php of parent and child theme and the h1-tag in div.heading-text would be loaded!?!See attachment.
I make display: none via css, but its very studid for seo.
Have you another idea?
Florian
Attachments:
You must be logged in to view attached files.August 17, 2015 at 10:32 pm #204740Hi,
You can copy the file content-single-product.php from neighborhood/woocommerce to the same directory structure in the child theme then remove the h1 has desired.
-Rui
August 18, 2015 at 8:06 pm #205120Hi Rui,
yes i know and i make some changes for my template optimization but i can’t find the h1 in <div class=”heading-text”> in content-single-product.php
I think it would loaded in a dynamic way but i can’t find it.
Florian
August 19, 2015 at 12:49 am #205175My solution isn’t correct check the function sf_page_heading located at neighborhood/includes/swift-framework/sf-content-display/sf-page-heading.php
Copy the entire function to your child theme functions.php and change the desired code.
-Rui
August 21, 2015 at 11:39 am #206128Hi Rui,
do i need to copy the whole code? The sf-page-heading.php have many options.
I think i only need this part so change in function (line 98 – 108):
<?php if ( sf_woocommerce_activated() && is_woocommerce() ) { ?> <?php if ( is_product() ) { ?> <h1 class="entry-title" <?php echo $article_heading_text; ?>><?php echo esc_attr($page_title); ?></h1> <?php } else { ?> <h1 class="entry-title" <?php echo $article_heading_text; ?>><?php woocommerce_page_title(); ?></h1> <?php } ?>
Can you send me the right code for my functions.php
I don’t get i to work fine.Thanks and have a nice day.
FlorianAugust 21, 2015 at 3:17 pm #206239Hi
You need to copy the whole of the
/* PAGE HEADING ================================================== */ if ( ! function_exists( 'sf_page_heading' ) ) { function sf_page_heading() {
function
– Kyle
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.