Category: 🇬🇧 English Tutorials

Here are my tutorials about WordPress and the development of block themes. If you’re interested in WooCommerce feel free to try my site about that, it’s here woo.thoth.dk

  • David Utke: Twenty twenty-five

    David Utke: Twenty twenty-five

    Create a Professional WordPress Website! Twenty Twenty Five Theme Tutorial

  • Overlapping Blocks

    Overlapping Blocks

    Jamie Marsland tutorial: how to create overlapping blocks.

    In this tutorial Jamie Marsland demonstrates how to create overlapping blocks. It’s kind of a visual illusion, but it works.

  • How to build a website with Elementor

    How to build a website with Elementor

    YouTube tutorial by Elementor

    Use the video above to get started, if you want to the alternative editor Elementor.

  • WP Speed Build Contest

    WP Speed Build Contest

    Video by Jamie Marsland

    In this video Jamie Marsland present a contest.Two designers battle.
    In just 30 minutes they have to build a complete website in WordPress.

  • Style Variations

    Style Variations

    How to Create a Style Variation for the WordPress Twenty Twenty-Four Theme

    WordPress themes provide a flexible foundation for designing websites, and with the introduction of Full Site Editing (FSE), customizing these themes has become more powerful and accessible. The Twenty Twenty-Four theme, one of WordPress’s default themes, is an excellent example of a theme that embraces modern design principles while offering a high degree of customization. One of the standout features is the ability to create and apply style variations. In this article, we’ll walk you through the steps to create a style variation for the Twenty Twenty-Four theme.

    Understanding Style Variations

    Style variations in WordPress allow you to create different design looks without altering the core structure of a theme. By tweaking colors, typography, and other design elements, you can create distinct visual styles that suit different brand identities or personal preferences. These variations can be saved and easily switched, offering a way to experiment with different aesthetics or provide users with multiple design options.

    Prerequisites

    Before diving into creating a style variation, ensure you have the following:

    1. A WordPress Site: Ensure your WordPress site is set up and running with the Twenty Twenty-Four theme installed.
    2. Basic Knowledge of CSS and JSON: While not mandatory, understanding CSS (Cascading Style Sheets) and JSON (JavaScript Object Notation) will help you fine-tune your style variation.
    3. A Child Theme (Optional): If you prefer not to modify the parent theme directly, creating a child theme is a good practice. This way, you can preserve your customizations even after theme updates.

    Step-by-Step Guide to Creating a Style Variation

    1. Set Up Your Development Environment
    • Access your WordPress installation files via FTP or your hosting provider’s file manager.
    • Navigate to the /wp-content/themes/twentytwentyfour/ directory.
    2. Create a styles Folder
    • Within the Twenty Twenty-Four theme directory, create a new folder named styles. This folder will store your custom style variations.
    3. Create a JSON File for Your Style Variation
    • Inside the styles folder, create a new file and name it something descriptive, such as custom-style.json.
    • This JSON file will define the properties of your style variation, such as colors, typography, and layout settings.
    4. Define Your Style Settings
    • Open the custom-style.json file in a code editor.
    • Here’s a basic structure to get you started:
       {
         "version": 2,
         "isGlobalStylesUserThemeJSON": true,
         "settings": {
           "color": {
             "palette": [
               {
                 "slug": "primary",
                 "color": "#1a1a1a",
                 "name": "Primary"
               },
               {
                 "slug": "secondary",
                 "color": "#ff6f61",
                 "name": "Secondary"
               }
             ],
             "background": "#ffffff"
           },
           "typography": {
             "fontSizes": [
               {
                 "slug": "small",
                 "size": "12px",
                 "name": "Small"
               },
               {
                 "slug": "large",
                 "size": "24px",
                 "name": "Large"
               }
             ],
             "lineHeight": "1.5"
           }
         }
       }
    • Color Palette: Customize the color palette by adding your preferred colors. Use the slug to identify the color, color for the hex value, and name for a human-readable label.
    • Typography: Adjust the font sizes and line heights to match your desired style.
    5. Add Additional Customizations
    • Beyond colors and typography, you can customize various other aspects such as spacing, border radii, and more. The structure follows the same JSON format.
    6. Save and Apply Your Style Variation
    • After defining your customizations, save the custom-style.json file.
    • To apply this style variation, go to the WordPress dashboard:
      • Navigate to Appearance > Editor.
      • In the Editor, select Styles from the top-right corner.
      • Your new style variation should appear as an option. Click on it to apply.
    7. Test and Refine
    • After applying your style variation, preview your site to ensure everything looks as expected. Tweak the JSON file as needed to refine your design.
    8. Making the Style Variation Available to Users
    • If you want your style variation to be available to other users of the theme, include a description and screenshot:
      • Description: Add a title and description key to your JSON file to provide context about your style variation.
      • Screenshot: Create a 1200x900px image showing a preview of your style variation. Name it the same as your JSON file but with a .png extension (e.g., custom-style.png). Place it in the styles folder.
    9. Distribute Your Style Variation
    • If you’ve created something worth sharing, consider distributing your style variation. You can package it with your theme or share it on platforms like GitHub for others to use.
    10. Shortcut

    Since the theme.json file in the root folder contain all the styles of the theme, a very fast way of working is this: just copy-paste the theme.json file from the root directory to the ./styles directory. Rename the file to something convenient, e.g. myWay.json. Then add the title of your style variation, as in line 4 below:

    Style variation title, see line 4.

    Conclusion

    Creating a style variation for the Twenty Twenty-Four WordPress theme is a powerful way to personalize your website’s appearance while keeping the underlying structure intact. Whether you’re aiming for a sleek, modern design or a playful, vibrant look, style variations offer a flexible way to achieve your vision. By following the steps outlined in this guide, you’ll be well on your way to creating a unique style variation that reflects your brand or personal aesthetic.

    Note

    This article was partly generated by ChatGPT from one of my conversations, see this link: https://chatgpt.com/share/e/8a300d32-5807-43a4-a85e-978a9290a332

    For some reason ChatGPT forgot to mention the title field in the json file, so I’ve added the missing information.

  • Elementor Tutorials

    Elementor Tutorials

    Elementor is one of the most popular alternatives to the WP editor. Many companies prefer Elementor. You can try the free version, but be warned: it is very limited if you compare with the standard WP editor.

    Elementor was among the first “drag and drop” editors for WP.

    Pros and Cons

    A few pros and cons concerning Elementor.

    Tutorials

    Here are a few Elementor tutorials to get you started.

    Elementor WordPress Tutorial 2024 by TechPress.
    How To Use Elementor In WordPress by The Social Guide.
  • New: Learn WordPress

    New: Learn WordPress

    On WordPress you can find several excellent video tutorials – from new to advanced learners.

    Below you can see a few sample videos. Click the button below in order to choose the best learning path for you.

    What is the Difference between the “Blog Editor” and the “Site Editor”

  • AI and WordPress

    AI and WordPress

    Research Notes

    When AI boomed WordPress tried to build in an AI feafure in the Jetpack plugin by Automatic. The feature was hyped. It could create content in different tones of voices, like angry, happy or romantic.

    To some developers the AI Jetpack feature was unpopular. Some developers even wrote PHP code in order to remove the AI feature from the UI. See this thread.

    However, the AI options are booming in the Plugin forest. Here are a few options.

    JetPack AI Assistant

    1. Install the JetPack plugin
    2. Activate it
    3. Activate AI

    Now you can use the assistant, in a post or on a page create a new paragraph, and enter:

    /ai

    Now you can fire off a prompt. However this solution is not free. When I wrote these lines the price was $8 per month. The solution was free for a while, but not any more.

    AI Engine by MEOW

    When activated the plugins will add a wizard wand to the UI when you write content.

    Also expensive.

    Article: Best WP AI Plugins

    Here is a fine overview with both free, paid and freemium solutions:

    Fremium is mostly a complete waste of time.

    Per Thykjær Jensen
  • The Portfolio

    The Portfolio

    Domain or subdomain?

    • portfolio.yourdomain.dk
    • yourdomain.dk

    You may or may not want to have your portfolio in the main domain. If you want to have your portfolio as the primary thing in your domain, just skip this chapter.

    A subdomain is a subdirectory in the main webdomain. On some web hotels you have to specify such a directory in the Dashboard of the webhotel. This is the case on Simply.com – but not on One.com, where any subdirectory is regarded as a subdomain. Just to mention the usual suspects.

    Prepare a subdomain for the portfolio. Make sure that your new domain runs with HTTPS.

    Create a subdomain on Simply.com. Live session from a Multimedia Design Class: subdomain, and a one-click WordPress installation demonstration.

    Plan Content

    What kind of content do you need for the portfolio? Rearch and brainstorm. On most portfolios you’ll see pages like:

    • About Me
    • CV
    • Contact
    • Gallery
    • Projects
    • Blog – with amazing news about your projects here and now
    1) Creative Process

    It does not harm to be well prepared. Go through the steps from idea generation to actual wireframes. When you have a clear idea about the content of the site continue.

    2) Create Dummy Pages

    Create the pages, but in this phase just add dummy content. If you have the pages it is easy to create a navigation.

    AI can be a great headstart for dummy content creation. Later on you can modify to real content.

    3) Navigation

    When the dummy pages are made, it’s more easy to create the navigation menus. You can have as many as you want to, and style them according to their position in the design.

    Create the main navigation menu for the header. You may also want to create special menus for other pages.

    4) Choose a theme

    Find a good WordPress theme, and make sure that it’s a block based theme (not an old style PHP-theme). My recommendation is to stick to a standard block theme.

    Avoid crap “freemium-premium” themes. They will hinder you from adding anything interesting untill you pay.

    I’ll recommend either Twenty Twenty Four or the most recent WP standard theme.

    If you’re an ambitious Multimedia Designer of course your could try to create a theme via Carolina Nymarks theme generator.

    Your content will not be affected by the theme. If you want another look and feel just try another theme.

    5) Header, Footer, etc.

    One of the first things to tweak is the header with navigation and footer with the relevant information.

    6) Templates

    Probably your theme will have templates for pages, posts, categories, search and 404. Often a blank theme will come in handy – or perhaps a page with:

    • Header
    • Content block
    • Footer

    Such a page would be nice if you don’t want to be restricted by your theme.

    7) Assign templates to your pages

    When the templates are ready, open each page and make sure that it will use the correct template.

    8) Refine the Content

    You can create the content at any time. From now on it’s a matter of refining your content.

    9) Testing, Testing …

    At any stage of the development tests will improve your portfolio.

    • Usability tests
    • User experience tests
    • Guerilla tests
    • Gangster test
    • A/B split test etc.