Contact Form 7 Special mail-tags

原來可以咁….

[_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])

Special mail-tags


	

Force SSL in WordPress with Web.config

<?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>

好用WP Plugins

– 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; 
}

How to fix WooCommerce to work with Polylang translations

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' ) );