wordpress - 在 WordPress 中将商店页面设为主页

标签 wordpress woocommerce woothemes

我安装了 aio 主题和 woocommerce 插件。

我可以在 /shop 中看到产品,但我想在主页上看到它。 但问题是,如果我在设置->阅读中将其设为主页,它什么也不会显示。

最佳答案

方法#1:

这是最简单的方法,如下:

Add [products] shortcode to your existing home page, update it and its done.

如果您需要额外的定制,您可以从 WooCommerce 的官方链接获取帮助。

方法#2:

Follow these steps:

Step #1: create a New Page, Give it a suitable Title (like: shop).

Step #2: This is the important step, here you need to make sure that the permalink of this page must be like: http://YOUR-DOMAIN-NAME/shop/

Here YOUR-DOMAIN-NAME refers to your own website URL

Step #3: Now go to Settings->Reading Select the above created Page as the Front page. save settings.

Step #4: visit your website.

关于wordpress - 在 WordPress 中将商店页面设为主页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32537765/

相关文章:

wordpress - 如何在前端的视觉编辑器中显示新的自定义元框

php - Wordpress - 查询最喜欢的作者的帖子

javascript - 如何在 jquery flexslider 完成加载之前隐藏图像

php - 如何从 Wordpress 中具有多个类别的帖子返回子类别?

php - 在 WooCommerce 3+ 中隐藏购物车商品标题的变体信息

php - 如果订单具有此特定类别,请更改 Woocommerce 电子邮件主题

php - 在 Woocommerce 注册表中添加一个字段并在管理员中编辑用户

javascript - 在 Woocommerce 中触发 check_variations 事件

arrays - 获取一系列产品的 WooCommerce 产品标签

php - 在 WordPress 中向作者信息添加自定义字段