New Landing How can we help? Themeforest Theme Support Neighborhood remove title from shop and single products page

Viewing 15 posts - 1 through 15 (of 15 total)
  • #20642
    allnc
    Member
    Post count: 29

    hello is possible to remove the title from shop page and from single product page?

    thx in advance

    #20916
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi, you can deactivate the titles from pages and posts below the editor in the page/post options!

    Cheers

    #20929
    allnc
    Member
    Post count: 29

    hi melanie
    it’s work for single products page but not for shop page

    any idea?

    #21005
    allnc
    Member
    Post count: 29

    it doesn’t work also in the checkout page

    #21155
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hey there, okay, if you let me see your website I will give you custom css to remove it with ease 🙂 Cheers

    #21229
    allnc
    Member
    Post count: 29
    This reply has been marked as private.
    #21457
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hey, you can use this custom css:

    .post-type-archive .page-heading.span12.clearfix.alt-bg.none {
    display: none;
    }

    Cheers!

    #204363
    florianibe
    Member
    Post count: 33

    Is it possible without css via functions.php in child theme to deactivate the title on single product pages?

    #204417
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

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

    #204717
    florianibe
    Member
    Post count: 33

    Hi 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.
    #204740
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    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

    #205120
    florianibe
    Member
    Post count: 33

    Hi 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

    #205175
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    My 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

    #206128
    florianibe
    Member
    Post count: 33

    Hi 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.
    Florian

    #206239
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You need to copy the whole of the

      /* PAGE HEADING
        ================================================== */
        if ( ! function_exists( 'sf_page_heading' ) ) {
            function sf_page_heading() {

    function

    – Kyle

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register