Skip to content

WPC Knowledge Base

  • Home
  • John

Author: John

Uncategorized

Make the Custom Profile Image as the Default in WordPress/Gravatar

by John : September 17, 2023September 17, 2023 UncategorizedLeave a comment

If you’re creating a custom registration form with custom fields including the Profile Image, copy and paste the custom function below to your child theme’s functions.php to set the custom profile image field as the default display picture for user profiles.

Uncategorized

Fixing Persistent Sub-menus

by John : September 17, 2023 UncategorizedLeave a comment

This simple fix will resolve a minor bug with the default Navigation block. Copy and paste the code below in your CSS file. This code prevent sub-menus to appear after opening the link in a new tab.

Uncategorized

Update Cart Count with the Quantity of the Items

by John : September 17, 2023September 17, 2023 UncategorizedLeave a comment

For some unknown reason, the default Mini-cart block hides the cart count on both the Cart page and Checkout page. This JS script allows you to display and sync the number of items with their quantities. Copy and paste the code below to your .js file.

Uncategorized

Importing contents from Wix and other CMS

by John : September 13, 2023 UncategorizedLeave a comment

Importing contents from a number of 3rd party CMS is possible with WordPress. First, you have to create a new site with WordPress. Next, choose a FREE domain. Select the FREE option. Again, select the free option. After that, skip these two setup pages to go straight to the dashboard In your dashboard, go to […]

Uncategorized

Fixing VideoPress Videos

by John : September 13, 2023 UncategorizedLeave a comment

If a VideoPress block/video won’t show in your website, try disabling the “fast ad-free video hosting” provided by Jetpack/VideoPress, by going into Settings > Performance Scroll down until you find the Media section. Then disable the “fast ad-free video hosting”.

Uncategorized

Trigger Submenus on Touch-enabled Devices

by John : September 11, 2023September 11, 2023 UncategorizedLeave a comment

Headers with submenus could be a problem on displays with touchscreens, specially if the submenu parent has a link to a page or to an external source. This guide will help you in making submenus touchscreen-friendly. In your custom CSS file, add @media (pointer: coarse) property. This media query targets all devices with touchscreen displays. […]

Uncategorized

Optimizing Images using Photopea

by John : September 10, 2023September 11, 2023 UncategorizedLeave a comment

Photopea is an online alternative for Photoshop that can open PSD, XD, Sketch, XCF, and CDR files, and I primarily use this tool to optimize assets before uploading them to the website. To edit and optimize an image, just drag and drop it onto the tool. To save an optimized copy of the image, click […]

Uncategorized

Logging in WordPress

by John : September 10, 2023September 11, 2023 UncategorizedLeave a comment

This feature is useful in identifying site errors or why the website crashed unexpectedly, modifying/creating custom plugins or creating custom PHP blocks for Gutenberg, or if you just want to log something through PHP. Make sure you have FTP access to the website you want to debug/modify. Navigate to htdocs and edit the file named […]

Instructions/Guides Uncategorized

Administrator email address

by John : July 4, 2023July 4, 2023 Instructions/Guides, UncategorizedLeave a comment

If there are issues in sending emails from staging, you may need to change the admin email of the website. You need to install Change Admin Email plugin to avoid sending notifications to the past admin of the website. Next, go to Settings > General and change the view from Default to Classic. Before changing […]

PHP Code Snippets/Functions Reusable Custom Blocks

The Events Calendar – Events List Block

by John : May 30, 2023 PHP Code Snippets/Functions, Reusable Custom BlocksLeave a comment

Dynamic Events List block grouped by month and year. It uses The Events Calendar plugin to fetch events added to your site. You can see it in action here and here. This requires Lazyblock plugin and Ghostkit plugin to work. Click here to learn how to import lazyblocks in your website.

Page navigation

1 2 Next

Recent Posts

  • Creating a Search functionality for specific product attributes with autocomplete
  • How to remove the extra fields in the events calendar
  • Enable/Disable Autoplay for media and text block with acf field settings
  • Stop cover block video from autoplaying
  • Custom number of entry selection

Recent Comments

No comments to show.
Copyright © 2026 WPC Knowledge Base | Powered by Knowx WordPress Theme