How to Show Different Themes to Logged in Users in WordPress - How to Show Different Themes to Logged-in Users in WordPress

How to Show Different Themes to Logged-in Users in WordPress

In this example, we’ll use the is_user_logged_in() to display a different theme on our website for visitors: if(is_user_logged_in()) { function wpxss_set_my_custom_theme() { //replace your theme name here return ‘your-theme-name’; } add_filter( ‘template’, ‘wpxss_set_my_custom_theme’ ); add_filter( ‘stylesheet’, ‘wpxss_set_my_custom_theme’ ); } else { // leave the default theme active for visitors } The template and stylesheet filters are responsible to select the activated … Read full article →

Error connecting to Mailchimp 0 cURL error 28 Failed to connect to us17.api .mailchimp.com port 443 after 7309 ms Couldnt connect to server - Error connecting to Mailchimp: 0 cURL error 28: Failed to connect to us17.api.mailchimp.com port 443 after 7207 ms: Couldn't connect to server

Error connecting to Mailchimp: 0 cURL error 28: Failed to connect to us17.api.mailchimp.com port 443 after 7207 ms: Couldn’t connect to server

Error connecting to Mailchimp: 0 cURL error 28: Failed to connect to us17.api.mailchimp.com port 443 after 7207 ms: Couldn’t connect to server If none of the suggested solutions form this guide work: https://www.mc4wp.com/kb/solving-connectivity-issues/ Try to manually connect from your hosting server to the MailChimp server. First, try curl: if that fails, do traceroute (MTR) to see … Read full article →

WooCommerce Change the Serbian Dinar currency symbol from рсд. to RSD. - 🛍️ WooCommerce: Change the Serbian Dinar currency symbol from рсд. to RSD.

🛍️ WooCommerce: Change the Serbian Dinar currency symbol from рсд. to RSD.

For years WooCommerce was showing the Serbian currency as дин. but this was recently changed to рсд. and now Serbian currency is available in WooCommerce only in Cyrillic script (РСД). You’ll see more details here. But because the Serbian language can be written both in Cyrillic as well as in Latin script, and almost 100%, of … Read full article →

SEO Friendly WordPress Images with Auto Alt Tag plugin - SEO Friendly WordPress Images with Auto Alt Tag plugin

SEO Friendly WordPress Images with Auto Alt Tag plugin

Here is a simple WordPress plugin that will automatically add the post title as the alt tag to featured images and other images in the post content improving traffic from search engines. Simply install & activate the and it will automatically add Alt Tag to images in new posts. <?php /** * Plugin Name: Auto Alt … Read full article →

Cloudflare phishing popup that downloads malware - ⚠️ Cloudflare phishing popup that downloads malware

⚠️ Cloudflare phishing popup that downloads malware

In this post, I will discuss the most realistic phishing popup that I’ve seen in years. These popups appear only on WordPress websites that use Cloudflare and can easily be mistaken with the original Cloudflare’s “sorry you have been blocked” screen. The post is divided in two sections: Analysis of the malware and malicious code … Read full article →