• Resolved janv01

    (@janv01)


    Hi,

    Within OceanWP customizer there is an option in Customizing Woocommerce Archives – Elements Positioning to show List Description (ie short description). By default checked in, but nothing is happening in Grid view.

    Update: It only works in List view not in Grid view.

    Would be nice if it also worked in grid view with limitation in length (excerpt), just like within List view mode.

    Regards.
    Jan

    • This topic was modified 2 years, 11 months ago by janv01.
    • This topic was modified 2 years, 11 months ago by janv01.
    • This topic was modified 2 years, 11 months ago by janv01.
    • This topic was modified 2 years, 11 months ago by janv01.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @janv01,

    We would forward it to the developer team to be checked and, if possible, to be added in the next updates.

    Thank you for your suggestion.

    Best Regards

    Thread Starter janv01

    (@janv01)

    Thanks!!

    I’d like to chip in and let you know that I was also expecting it to work in grid view. So this is definitely a worthy addition.

    Hello All,
    @janv01,
    @ohmarinus,

    This topic is already added to the theme suggestions list, but you can customize the theme to achieve it. To do this, first, you need to use the child theme. You can copy the meta file from the partials folder in the child theme following the same path and then do necessary changes.

    For more information about that, please follow the steps below:

    By using FTP or cPanel access (if didn’t use the localhost), Go to this directory:
    wp-content\themes\oceanwp\partials
    Find your template which you want to customize and copy that template file(ex: you need to change the date on the blog pages, so you need to use the blog template(s): https://i.postimg.cc/brv9gn9s/image.png – it works for woocommerce too).

    Then head over to the same path on the child theme. There isn’t an entry folder as a default on your child theme, so you need to create a new one(one time).

    Example: If you want to change the HTML tags structure in the single blog posts featured image for standard post format, all you need in this step is:

    1- Head over to your WP root > wp-content > themes > oceanwp > partials> single > media path.
    2- Then, find the “blog-single.php” file and copy this file.
    3- After that, back to the themes folder (wp root > wp-content > themes) and go to oceanwp-child-theme-master folder.
    4- Create a new folder into the child theme with the “partials” name.
    5- Go to the /partials/ folder and create a new folder with the “single” name.
    6- Go to the /single/ folder and create a new folder with the “media” name.
    7- Go to the /media/ folder and paste the “blog-single.php” file here.

    * Please check this screenshot: https://i.postimg.cc/sxjYTWyt/image.png.

    Best Regards

    Thread Starter janv01

    (@janv01)

    Well, below function (in functions.php) is easier to use:

    add_action( 'ocean_after_archive_product_description', 'wc_add_long_description' );
    /**
     * WooCommerce, Add Long Description to Products on Shop Page with Character limit
     *
     */
    function wc_add_long_description() {
    	global $product;
    
    	?>
            <div itemprop="description">
                <?php echo substr( apply_filters( 'the_content', $product->post->post_content ), 0,140 ); echo '...' ?>
            </div>
    	<?php
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Oceanwp theme option Woocommerce – List Description does not work’ is closed to new replies.