Change the header for products - by MartaIraola

This topic has 14 replies, 4 voices, and was last updated 8 years, 10 months ago ago by Eva Kemp

  • Avatar: MartaIraola
    MartaIraola
    Participant
    June 1, 2015 at 08:24

    Hello,

    Is it possible to have the same header of the normal pages in the product pages too? Here is the example:

    Current product page header: http://www.awesomescreenshot.com/image/281377/fd518dd4847600c6b5a31779be07d84e

    Pages header: http://www.awesomescreenshot.com/image/281383/bd001344e1456adbad890c9d1e458fe8

    Best regards.

    Please, contact administrator
    for this information.
    13 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    June 1, 2015 at 10:18

    Hello,

    Unfortunately there is no such possibility for products pages.
    Sorry.

    Regards,
    Eva Kemp.

    Avatar: MartaIraola
    MartaIraola
    Participant
    June 2, 2015 at 22:14

    Eva,

    This site has 3 products with a lot of text and not a lot of pictures.

    Is there a way to delete the feature image in single product page (and the gallery images) to just have texto as a normal page ? or is there a plugin compatibly with the them that give me the option to personalize the product page ?

    Thanks !

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    June 3, 2015 at 10:31

    Hello,

    In this case you can edit the file wp-content/themes/woopress/woocommerce/content-single-product.php (line 50) and comment the code

    <div class="col-lg-6 col-md-6 col-sm-12 product-images">
          <?php 
    /**
     * woocommerce_before_single_product_summary hook
     * 
     * @hooked woocommerce_show_product_sale_flash - 10
     * @hooked woocommerce_show_product_images - 20
     */
     do_action( 'woocommerce_before_single_product_summary' );
         ?>
     </div>

    and edit this piece of code on line 62:
    <div class="col-lg-6 col-md-6 col-sm-12 product-information to
    <div class="col-lg-12 col-md-12 col-sm-12 product-information

    Regards,
    Eva Kemp.

    Avatar: MartaIraola
    MartaIraola
    Participant
    June 4, 2015 at 10:05

    Hi,

    I’m sorry to say I couldn’t make that change, because my content-single-product.php archive doesn’t not have those codes. I’m going to copy it entirely here so you can check if I’m mistaken.

    Thanks again.

    <?php
    /**
    * The template for displaying product content in the single-product.php template
    *
    * Override this template by copying it to yourtheme/woocommerce/content-single-product.php
    *
    * @author WooThemes
    * @package WooCommerce/Templates
    * @version 1.6.4
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly
    }

    ?>

    <?php
    /**
    * woocommerce_before_single_product hook
    *
    * @hooked wc_print_notices – 10
    */
    do_action( ‘woocommerce_before_single_product’ );

    if ( post_password_required() ) {
    echo get_the_password_form();
    return;
    }
    ?>

    <div itemscope itemtype=”<?php echo woocommerce_get_product_schema(); ?>” id=”product-<?php the_ID(); ?>” <?php post_class(); ?>>

    <?php
    /**
    * woocommerce_before_single_product_summary hook
    *
    * @hooked woocommerce_show_product_sale_flash – 10
    * @hooked woocommerce_show_product_images – 20
    */
    do_action( ‘woocommerce_before_single_product_summary’ );
    ?>

    <div class=”summary entry-summary”>

    <?php
    /**
    * woocommerce_single_product_summary hook
    *
    * @hooked woocommerce_template_single_title – 5
    * @hooked woocommerce_template_single_rating – 10
    * @hooked woocommerce_template_single_price – 10
    * @hooked woocommerce_template_single_excerpt – 20
    * @hooked woocommerce_template_single_add_to_cart – 30
    * @hooked woocommerce_template_single_meta – 40
    * @hooked woocommerce_template_single_sharing – 50
    */
    do_action( ‘woocommerce_single_product_summary’ );
    ?>

    </div><!– .summary –>

    <?php
    /**
    * woocommerce_after_single_product_summary hook
    *
    * @hooked woocommerce_output_product_data_tabs – 10
    * @hooked woocommerce_upsell_display – 15
    * @hooked woocommerce_output_related_products – 20
    */
    do_action( ‘woocommerce_after_single_product_summary’ );
    ?>

    <meta itemprop=”url” content=”<?php the_permalink(); ?>” />

    </div><!– #product-<?php the_ID(); ?> –>

    <?php do_action( ‘woocommerce_after_single_product’ ); ?>

    Please, contact administrator
    for this information.
    Avatar: stan
    Stan Russell
    Participant
    June 4, 2015 at 11:03

    Hello,

    please provide us with FTP credentials for your site in private content.

    Regards,
    Stan Russell.

    Avatar: MartaIraola
    MartaIraola
    Participant
    June 4, 2015 at 13:06

    Here you are!

    Thanks

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    June 4, 2015 at 13:33

    Hello,

    Could you please give us FTP access? It’s hard for us to work in your hosting control panel in your language. If you don’t know FTP credentials ask your host to provide you with them.
    Also we can’t log in to wp-admin panel.
    Please check the login details.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Marta Iraola
    Marta Iraola
    Participant
    June 4, 2015 at 17:12

    Now !!! Sorry.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    June 4, 2015 at 18:17

    Hello,

    Are those FTP credentials for the site i.donostik.com? I don’t see woopress theme there:
    http://storage4.static.itmages.com/i/15/0604/h_1433438168_7078721_36be32061d.png

    Please give us correct FTP login details.

    Regards,
    Eva Kemp.

    Avatar: Marta Iraola
    Marta Iraola
    Participant
    June 4, 2015 at 21:14

    I’m so so sorry ! I was concentrated in a meeting and I sent the wrong credentials. Sorry Eva 🙁

    Here you are the correct ones.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    June 5, 2015 at 09:19

    Hello,

    I’ve edited the file content-single-product.php in the directory wp-content/themes/woopress/woocommerce. Please check single product page now:
    http://i.donostik.com/shop/gourmet-sailing-experience/
    Also you can copy the file into woopress-child folder and activate child theme in Appearance > Themes not to lose changes after the theme update.
    To copy the file content-single-product.php from wp-content/themes/woopress/woocommerce you need also create a folder “woocommerce” in the directory wp-content/themes/woopress-child.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Marta Iraola
    Marta Iraola
    Participant
    June 5, 2015 at 16:59

    Much better !!!

    I have already created a folder “woocommerce” and copied in the content-single-product.php

    Thanks Eva !

    Avatar: Eva
    Eva Kemp
    Support staff
    June 5, 2015 at 19:43

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 14 results - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.