简体   繁体   中英

Woocommerce Recently Viewed Products Wordpress

I want to include in my website the " Recently Viewed Produdcts" widget. I found out that i can do that with a shortcode as mentioned here: http://www.wpexplorer.com/woocommerce-recently-viewed-products-shortcode/

After implementing this code and creation of plugin the products appear in homepage very weird, very big and without any styling. Then i found out that there is already a widget in the widget section provided by woocomerce already.

I am very satisfied with the styling of it but i have some questions that i want to fix:

  1. How do i add the widget to appear on all page just before the footer area?
  2. How do i make that widget horizontal instead of vertical?

Thanks to whoever help me out !!!

You're going to have to insert the following into your footer.php file before the other div boxes start:

<div>
    <?php
    echo do_shortcode("[woocommerce_recently_viewed_products per_page='5']");
    ?>
</div>

Then we'll have to see what the styling looks like once that is in place.

First, install the plugin "Recently Viewed Products Shortcode"

then:

<div><?php echo do_shortcode("[woocommerce_recently_viewed_products per_page='5']"); ?></div>

'5' instead "5"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM