Archive for the 'Tutorial' Category

Change WordPress URLs in PHPMyAdmin

- Posted on October 10, 2022

When you import databases from an old backup, perhaps you need to change the site URL and there’s a quick and easy way to make it in MYSQL via PHPMyAdmin. The first step is to import the databases. The following code needs to be applied for three tabs: wp_options, wp_posts, wp_postmeta. Click on each of […]


Show full path in Batch Add (Coppermine)

- Posted on October 9, 2022

Ever since switching to Coppermine 1.15, they removed the full path on batch add, which may be better server wise on long names, but when you have to add files the risk of selecting the wrong album is 300% more certain. So here’s your fix. Open include/functions.inc.php and find this line $options .= ” . […]


Remove date below last upload thumbs (Coppermine)

- Posted on October 9, 2022

Despite the options in coppermine, the date of upload still shows below your thumbs and it could be ugly in some cases. Here is coppermine forum solution for it Open include/functions.inc.php, find if ($set_caption) { build_caption($rowset, array(‘ctime’)); } $rowset = CPGPluginAPI::filter(‘thumb_caption_lastup’, $rowset); and replace with if ($set_caption) { build_caption($rowset); } $rowset = CPGPluginAPI::filter(‘thumb_caption_lastup’, $rowset);


Show width and height below photo thumb (Coppermine)

- Posted on October 9, 2022

When you feel like wanting to show the size of photos below the thumbs, Coppermine sometimes isn’t of help. Despite having a few functions not everything is tailored to your need. So here’s a quick solution for showing it. Locate the functions.inc.php file inside the include folder of your coppermine installation. Find this line $rowset[$key][‘caption_text’] […]


Disable Gutenberg Editor

- Posted on July 20, 2021

Some of you enjoy it, some of us prefer the classic old way. There are plugins to make this such as Classic Editor (for posts and pages only) or Disable Gutenberg (for everything), but you can achieve the same thing with a simple code in your theme functions.php // disable for posts add_filter(‘use_block_editor_for_post’, ‘__return_false’, 10); […]


Code to replace fit_screen plugin

- Posted on May 4, 2021

This plugin (fit_screen) is wonderful, especially if you remove the intermediate pictures from Coppermine to save space, this plugin allows you to adapt the full image to the screen size, so you can see it in a whole. But how does it work? The functioning that allows this to happen is a simple code, you […]


Remove WordPress Emoji Code

- Posted on April 28, 2021

Ever since WordPress 4.2 they enabled by default Emoji which is a pretty cute thing, but also resources consuming as it loads for all your pages. Now it’s not vital to keep this and removing might speed up your site, but how do you do this? You can obviously install a plugin for it but […]


Disable a custom post type

- Posted on April 28, 2021

Sometimes WordPress, when upgrading, introduces new sections we do not necessarily need or will use. There’s a simple code to add that will disable them. (Source Code) For example, I want to remove the “Do not sell info” section. So first of all I will be checking what’s the custom post type name for that, […]


Upgrade WordPress Manually

- Posted on March 25, 2021

We all love the update button, that’s for sure, but unfortunately sometimes we need to do the work manually. So here’s how. Where to find the zip? You can always find the latest version of WordPress on┬átheir site. What to do? Unzip the downloaded file, enter the unzipped folder and zip again the files and […]