在wp-config.php中加入這一行
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';
但是要確保妳的修改在這一行之前require_once(ABSPATH . ‘wp-settings.php’);
source: https://blog.csdn.net/weixin_39924179/article/details/113027066
在wp-config.php中加入這一行
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';
但是要確保妳的修改在這一行之前require_once(ABSPATH . ‘wp-settings.php’);
source: https://blog.csdn.net/weixin_39924179/article/details/113027066
原來可以咁….
[_site_admin_email]
[_site_title] <wordpress@your_domain>
[_site_title] “[your-subject]”
Reply-To: [your-email]
From: [your-name] <[your-email]>
Subject: [your-subject]
Message Body:
[your-message]
—
This e-mail was sent from a contact form on [_site_title] ([_site_url])
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Redirect to https" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" /> </rule> <rule name="Main Rule" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:0}" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule>
source: https://www.dataplugs.com/tc/kb/使用-htaccess-檔案強制將-http-導向-https-ssl/
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
source: https://www.siteground.com/kb/how-to-force-ssl-with-htaccess/
– Simple Cloudflare Turnstile – CAPTCHA Alternative
– WooCommerce Checkout Manager
– WooCommerce Shortcodes
– Woocommerce Catalog Enquiry
– WooCommerce Image Zoom
– Essential Addons for Elementor
– Royal Elementor Addons and Templates
– Popups – WordPress Popup
– WP Mail SMTP by WPForms
– Contact Form 7
– Contact Form 7 Honeypot
– Contact Form 7 Redirection
– Contact Form 7 Skins
– Polylang / – qTranslate X / – WP Mutlilang / – Translate Multilingual sites – TranslatePress
– Hyyan WooCommerce Polylang Integration
– Fruitful Shortcodes
– Awesome Filterable Portfolio
– Black Studio TinyMCE
– TinyMCE Advanced
– Useso take over Google
– Google Font Fix
– WP Lightbox 2
– Smart Slider 3
– Meta Slider
– Breadcrumb NavXT
– TemplatesNext ToolKit
– Google Analytics
– Google Authenticator
– Menu Image
– Simple Share Buttons
– WP Super Cache / – W3 Total Cache
– Locatoraid
– Use Any Font
– Custom Sidebars
– Carousel Slider
– Slider Video
– Responsive Menu //templatesnext 要hide .menu-toggle
– Live Forms – Visual Form Builder / – WPForms Lite / Pabbly Form Builder
– Compact WP Audio Player
– Clear Cache For Me
– Vertical Scroll Recent Post
– GDPR Cookie Consent
– HootKit
– WP-Optimize
– Content Control
在CSS加入…
html { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); _filter: none; }
https://wordpress.org/plugins/woocommerce/
以件數計算運費
50 + (10+ [qty]) // 意思是最低收費為: 1件是50+10; 2件是50+20; 如此類推
[fee percent=”10″ min_fee=”50″ max_fee=”200″] // 運費是貨物的10%, 最低50, 最高200
https://jesperlundnielsen.dk/how-to-make-woocommerce-work-with-polylang-wordpress/
Open the file wc-page-functions.php
Navigate to this file “wp-content/plugins/woocommerce/includes/wc-page-functions.php” and open it in a text editor
Search and replace code
Find the function called “wc_get_page_id( $page )” and then this line:
$page = apply_filters( 'woocommerce_get_' . $page . '_page_id', get_option('woocommerce_' . $page . '_page_id' ) );
and replace it with:
$page = function_exists('pll_get_post') ? apply_filters( 'woocommerce_get_' . $page . '_page_id', pll_get_post ( get_option('woocommerce_' . $page . '_page_id' ) ) ) : apply_filters( 'woocommerce_get_' . $page . '_page_id', get_option('woocommerce_' . $page . '_page_id' ) );