wordpress启用https,以及其中碰上的坑

  1. 要启用https替换http首先要想好访问不了如何恢复。最好能先备份好数据库,如果有后台工具,那就先备份好数据库再说这一步。
  2. 万一设置了访问不了,注意数据库表中  wp_options 中的, siteurl ,home替换回http。
  3. 实现wordpress启用https,网上的方法真的很多。但我实验的过程很崩溃,因为动不动网站就访问不了,需要恢复。还有各种替换,我需要替换回来。如果有可能,尽量不要替换数据库的内容,不要替换function.php中的内容,不用更改.htaccess文件中的内容。但需要了解这几种方法,特别是.htaccess 可能写法各异,有可能是此处造成的问题。
  4. 最后我要说下我实验成功的方法了:really simple ssl 插件。当前www.lunji.com就启用了https了。

wordpress, how to add woocommerce product categories to menu,如何添加产品分类到菜单

To add a product page or product category page to a custom menu, complete the following steps in your WordPress Admin Panel:

  1. Go to Appearance > Menus
  2. In the upper right corner, click on Screen Options and ensure the “Products” and “Product Categories” boxes are checked
  3. If you only have one menu, then skip this step! If you have more than one menu on your website, use the drop down beside “Select a menu to edit:” to begin editing the correct menu.
  4. There is a list of expandable sections on the left side of this page for things like Pages, Posts, and Blog Categories. If you completed step 2 correctly, you will also see Products and Product Categories in this list. If you click on them, they’ll expand to show you a list of products (or product categories, depending on which you click).
  5. Select the checkboxes beside the products or categories that you wish to add to the menu, then press the Add to Menu button. This will insert them into the Menu Structure shown on the right side of the page.
  6. Drag and drop the newly added items into the menu positioning of your choice. If you wish for them to be submenu options, you can drag them slightly to the right under any existing menu option. They’ll appear indented.
  7. Press the blue Save Menu button

You should now see the product or product categories in the menu on your website.

上面是https://clients.websavers.ca/whmcs/knowledgebase/165/How-do-I-add-WooCommerce-products-or-product-categories-to-a-custom-menu.html中的回答,

GOOGLE上面也作为标准答案体现在搜索结果中。

中文释义:
外观->菜单 ,如果你找不到产品分类,注意下右上角的显示选项,点下三角展开,就可以看到产品分类选项,复选 就可以看到了。