AVeryNiceWeb

Woocommerce

Woocommerce

Postby admin » Wed Dec 14, 2016 12:32 am

All WooCommerce related topics
The AVNW Support Team
http://www.AVeryNiceWeb.com

If you wish to add visual documentation (screenshots), make a donation and we'll let you know when the post has been updated


And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook.- Our account had recently a hacking problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
  2. Send us a testimonial.- Testimonials thanking for our good team work can be valuable to us and may encourage others to seek our support.
  3. Post a review.- Posting a good review about this site could also compel others to seek our advice & support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 432
Joined: Mon Jan 13, 2014 3:18 am
Location: New York City

Remove Sidebar From Single Product Pages

Postby admin » Wed Dec 14, 2016 12:36 am

The following code removes not only all the sidebars but the breadcrumb links from single product pages (e.g. home/category/single product).

Go to wp-content/plugins/woocommerce/templates/single-product.php

ORIGINAL:
Code: Select all
<?php
/**
 * The Template for displaying all single products
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see        https://docs.woocommerce.com/document/template-structure/
 * @author       WooThemes
 * @package    WooCommerce/Templates
 * @version     1.6.4
 */

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

get_header( 'shop' ); ?>

   <?php
      /**
       * woocommerce_before_main_content hook.
       *
       * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
       * @hooked woocommerce_breadcrumb - 20
       */
      do_action( 'woocommerce_before_main_content' );
   ?>

      <?php while ( have_posts() ) : the_post(); ?>

         <?php wc_get_template_part( 'content', 'single-product' ); ?>

      <?php endwhile; // end of the loop. ?>

   <?php
      /**
       * woocommerce_after_main_content hook.
       *
       * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
       */
      do_action( 'woocommerce_after_main_content' );
   ?>

   <?php
      /**
       * woocommerce_sidebar hook.
       *
       * @hooked woocommerce_get_sidebar - 10
       */
      do_action( 'woocommerce_sidebar' );
   ?>

<?php get_footer( 'shop' ); ?>

REPLACE WITH:
Code: Select all
<?php
/**
 * The Template for displaying all single products
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/single-product.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see        https://docs.woocommerce.com/document/template-structure/
 * @author       WooThemes
 * @package    WooCommerce/Templates
 * @version     1.6.4
 */

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

get_header( 'shop' ); ?>

   <?php
      /**
       * woocommerce_before_main_content hook.
       *
       * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
       * @hooked woocommerce_breadcrumb - 20
       */
      do_action( 'woocommerce_after_main_content' );
   ?>

      <?php while ( have_posts() ) : the_post(); ?>

         <?php wc_get_template_part( 'content', 'single-product' ); ?>

      <?php endwhile; // end of the loop. ?>

   <?php
      /**
       * woocommerce_after_main_content hook.
       *
       * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
       */
      do_action( 'woocommerce_after_main_content' );
   ?>

   <?php
      /**
       * woocommerce_sidebar hook.
       *
       * @hooked woocommerce_get_sidebar - 10
       */
      /**   do_action( 'woocommerce_sidebar' );    */
   ?>

<?php get_footer( 'shop' ); ?>


Note: In some themes like Sydney, the removal of the breadcrumb links may leave too much space at the top on mobile devices (or screens smaller than 1200px). You can correct this by following This message was hidden, please register or login to see message!.
The AVNW Support Team
http://www.AVeryNiceWeb.com

If you wish to add visual documentation (screenshots), make a donation and we'll let you know when the post has been updated


And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook.- Our account had recently a hacking problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
  2. Send us a testimonial.- Testimonials thanking for our good team work can be valuable to us and may encourage others to seek our support.
  3. Post a review.- Posting a good review about this site could also compel others to seek our advice & support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 432
Joined: Mon Jan 13, 2014 3:18 am
Location: New York City

Change Post Title

Postby admin » Wed Dec 14, 2016 11:55 pm

Add a text shadow using
To view this code please make a small donation or login to see it!

Find Line 471:
Code: Select all
h1, h2, h3, h4, h5, h6 {


REPLACE WITH:
Code: Select all
   h1, h2, h3, h4, h5, h6 {
      color: #443f3f;
      font-weight: 600;
      margin: 10px 0 24px;
        text-shadow: #2e2e2e 0 4px 5px;
   }


Change Size:
Code: Select all
   h1 { font: 53px/1.1 "Raleway", sans-serif;}

E.G. change 52 to 32px
The AVNW Support Team
http://www.AVeryNiceWeb.com

If you wish to add visual documentation (screenshots), make a donation and we'll let you know when the post has been updated


And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook.- Our account had recently a hacking problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
  2. Send us a testimonial.- Testimonials thanking for our good team work can be valuable to us and may encourage others to seek our support.
  3. Post a review.- Posting a good review about this site could also compel others to seek our advice & support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 432
Joined: Mon Jan 13, 2014 3:18 am
Location: New York City

"Your theme does not declare WooCommerce support"

Postby admin » Sun Dec 18, 2016 5:56 pm

Instructions

Go to your WordPress site > wp-content > themes > your-theme > functions.php.

Copy and paste the following code:
Code: Select all
add_theme_support('woocommerce');


WARNING: These changes may be removed if your theme is either updated or upgraded!
The AVNW Support Team
http://www.AVeryNiceWeb.com

If you wish to add visual documentation (screenshots), make a donation and we'll let you know when the post has been updated


And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook.- Our account had recently a hacking problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
  2. Send us a testimonial.- Testimonials thanking for our good team work can be valuable to us and may encourage others to seek our support.
  3. Post a review.- Posting a good review about this site could also compel others to seek our advice & support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 432
Joined: Mon Jan 13, 2014 3:18 am
Location: New York City

Woocommerce no +/- quantity buttons option

Postby admin » Sun Dec 25, 2016 10:22 pm

Symptom: The WooCommerce version has no +/- quantity buttons before and after the single product page quantity input field.

Solution: WooCommerce has depreciated the quantity selector buttons in version 2.3 and above. There is a separate plugin by WooCommerce to get back the quantity selectors:
https://wordpress.org/plugins/woocommer ... increment/
The AVNW Support Team
http://www.AVeryNiceWeb.com

If you wish to add visual documentation (screenshots), make a donation and we'll let you know when the post has been updated


And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook.- Our account had recently a hacking problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
  2. Send us a testimonial.- Testimonials thanking for our good team work can be valuable to us and may encourage others to seek our support.
  3. Post a review.- Posting a good review about this site could also compel others to seek our advice & support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 432
Joined: Mon Jan 13, 2014 3:18 am
Location: New York City


Return to Plugins

Who is online

Users browsing this forum: No registered users and 0 guests

cron