Tutorial Category: Development

  • WordPress Discussion: Customize WordPress notification e-mails

    WordPress Discussion: Customize WordPress notification e-mails

    It can be tricky as only the site admin will receive an email when a comment is held for moderation. This can be changed. Adding custom e-mail addresses for comment moderation or when anyone posts a comment. When the two following Email me whenever settings are checked: Anyone posts a comment – The post author…

  • Cleaning up a WordPress Database

    Cleaning up a WordPress Database

    A WordPress database will over time become more and more bloated, as it becomes filled with various information / entries. From posts, comments, users, themes, plugins and more. Too often using a plugin and deleting it will not delete the entries it made into the database. These entries can become really big. Here is an…

  • Fixing fatal errors in WordPress

    Fixing fatal errors in WordPress

    A moment ago a client web site was down. Showing only a white screen with a 500 Internal Server error text. Seeing a white screen with an error message can be very stressful. I searched for Internal Server Error 500 and came across a site that gave me advice on how to fix it. I…

  • How to add code to Header or Footer in WordPress

    How to add code to Header or Footer in WordPress

    In WordPress we can manually add code to the header or footer of a web site using the following example. An example of adding a Google tag to the head can be something like this: Code can be added to the child theme functions.php file or even better a Code Snippets plugin. Here are two…

  • How to use a Code Snippet plugin in WordPress

    How to use a Code Snippet plugin in WordPress

    Code Snippets plugin overview.How I use Code Snippets.Code snippets in the cloud.Code Snippets Pro. A code snippet is a piece of code one usually adds to the child theme functions.php file or better yet a plugin meant to handle code snippets. A code snippet is a small piece of code meant to do something… A…

  • How to join WordPress Slack channels.

    How to join WordPress Slack channels.

    How to join WordPress on Slack This is a summary of how to join WordPress on Slack called Making WordPress. It is used as a communication tool for contributing to the WordPress project, be it through code, design, documentation etc. 1. To join the WordPress team on Slack. Log into your profile or create a new account…

  • Automatically set fallback featured  image

    Automatically set fallback featured image

    Here are various ways to add a featured image. I am showing examples with setting the same image for all featured images, taking the first image in the post content as featured, defining specific images for categories and more. Below the code I will also be showing a plugin approach. Marks code – add first…

  • Drag and drop page ordering in a tree page view WordPress

    Drag and drop page ordering in a tree page view WordPress

    Currently the default method to rearrange WordPress pages or posts is to go to All Posts / All Pages. Click “Quick Edit” of the page/post you would like to have for instance in the top and be sure it has 0 (rewrite it to become 0). Select various other pages/posts and add another number in…

  • An easy way to duplicate post or pages

    An easy way to duplicate post or pages

    One can duplicate a post or page or custom posts using a plugin or inserting code (snippet) into the child theme functions file or a code snippet plugin. Code snippet to duplicating a post or page. The result of adding the below code snippet is having a Duplicate option in the quick edit bar. The…

  • Create your own author bio box in WordPress without a plugin

    Create your own author bio box in WordPress without a plugin

    The following uses code to create your own author biography box. It includes adding additional social media to the profile screen as well as creating your own custom author box which will be included into each post. Add additional Social media fields.Add a custom Author Bio box. Add additional social media option to the profile…

  • Exporting and Importing WordPress posts pages media and more

    Exporting and Importing WordPress posts pages media and more

    It is possible to Import and export content from one WordPress site to another. Exporting content Go to Tools -> Export.Select the content to be exported.All content, Posts, Pages or Media.Click the Download Export File. An xml file will be downloaded to your computer. Importing content At the bottom of the page below the title:…

  • Adding your own avatar

    Adding your own avatar

    How to add your own avatar to the discussion settings screen in WordPress. One can add an avatar I called “Golden Globe” to the list at the bottom of the Discussion settings. Here is the result of adding an icon to the bottom of the list. Add the following code to the child theme functions.php…

  • Useful WordPress site helper tools

    Useful WordPress site helper tools

    Site helper tools can be many things. I decided to focus this tutorial on Site staging sites and ways to detect with a site is made with WordPress or not. Staging sitesIs the site using WordPress? qSandbox – “Staging Sites Made Easy” It is real easy to create a free site here and use it…

  • Sticky content at bottom of page

    Sticky content at bottom of page

    The site Header and all the content begins on the bottom of the page. To see more one scrolls and the content is lifted up into view.Here is an example used on a web site I made some time ago: https://galleriklevjer.no/ Move the content to the bottom of the page. One method to add JS…

  • Creating a footer that sticks to the bottom – WordPress

    Creating a footer that sticks to the bottom – WordPress

    Using the default theme Twenty Twenty One as an example when creating a sticky footer. Right click the footer area. Look for the id colophon and class site-footer in the HTML area (left). .site-footer will also be seen in the CSS area (right). Click into the CSS code. Replace the code with the following. (I…

  • How to make a sticky header in WordPress 

    How to make a sticky header in WordPress 

    Sometimes we want an area of the page to be fixed or stick to the page. Sections: A sticky top Navigation menu.A sticky header. Adding a sticky Navigation menu. An example using the default theme Twenty Twenty One is using jump HTML anchor links where one clicks a link and it jumps to a section…

  • Cleaning up filenames that have non utf8 characters in them

    Cleaning up filenames that have non utf8 characters in them

    Using a code snippet to clean up filenames. Gradually adjustments are made in WordPress so that non English characters from file names are sanitized (changed to English characters) when these are uploaded. The reason for changing the characters in a file name is to make sure that the server is able to read and use…

  • Adjusting list columns in backend

    Adjusting list columns in backend

    I will be showing how to adjust the All Posts / All Pages / all Custom Post Type screen. To include additional columns and modify the current ones listed. I am showing an example on adjusting the All Movies custom post type screen. To see adjustment show up in the All Movies screen. The code:…

  • Creating a movie custom post type

    Creating a movie custom post type

    The following shows code to add a custom post type (CPT). I would suggest using CPTUI plugin or the Pods plugin. I have used both and it makes it easier getting the code correct, and if any adjustments are needed the plugin will take care of it. I made the Post Type “Movies” and the…