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 →

Fatal error Failed opening required wordfence waf.php  - ❌ PHP Fatal error:  Unknown: Failed opening required wordfence-waf.php

❌ PHP Fatal error: Unknown: Failed opening required wordfence-waf.php

After migrating a WordPress website ot another cPanel account, the website displayed 500 error, and the following was recorded inside the error_log file: [17-Aug-2022 12:46:18 Europe/Belgrade] PHP Fatal error: Unknown: Failed opening required ‘/home/XXXXX/XXXXX.com/wordfence-waf.php’ (include_path=’.:/opt/alt/php74/usr/share/pear’) in Unknown on line 0 WordFence adds rules to .htaccess file to include the wordfence-waf.php file by full path: php_value … Read full article →

wpxss The firewall of your server is blocking outbound calls - MonsterInsights - The firewall of your server is blocking outbound calls. Please contact your hosting provider to fix this issue.

MonsterInsights – The firewall of your server is blocking outbound calls. Please contact your hosting provider to fix this issue.

MonsterInsights Error: The firewall of your server is blocking outbound calls. Please contact your hosting provider to fix this issue. cURL error 28: Failed to connect to www.google.com port 443 after 1201 ms: Couldn’t connect to server This error is caused by cURL (Client for URLs) – a command line tool that is used to … Read full article →