Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      How To Prevent WordPress SQL Injection Attacks

      June 12, 2025

      Java never goes out of style: Celebrating 30 years of the language

      June 12, 2025

      OpenAI o3-pro available in the API, BrowserStack adds Playwright support for real iOS devices, and more – Daily News Digest

      June 12, 2025

      Creating The “Moving Highlight” Navigation Bar With JavaScript And CSS

      June 11, 2025

      Surface Pro 11 with Snapdragon X Elite drops to lowest price ever

      June 12, 2025

      With WH40K Boltgun and Dungeons of Hinterberg, this month’s Humble Choice lineup is stacked for less than $12

      June 12, 2025

      I’ve been loving the upgrade to my favorite mobile controller, and there’s even a version for large tablets

      June 12, 2025

      Copilot Vision just launched — and Microsoft already added new features

      June 12, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Master Data Management: The Key to Improved Analytics Reporting

      June 12, 2025
      Recent

      Master Data Management: The Key to Improved Analytics Reporting

      June 12, 2025

      Salesforce Lead-to-Revenue Management

      June 12, 2025

      React Native 0.80 – React 19.1, JS API Changes, Freezing Legacy Arch and much more

      June 12, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Surface Pro 11 with Snapdragon X Elite drops to lowest price ever

      June 12, 2025
      Recent

      Surface Pro 11 with Snapdragon X Elite drops to lowest price ever

      June 12, 2025

      With WH40K Boltgun and Dungeons of Hinterberg, this month’s Humble Choice lineup is stacked for less than $12

      June 12, 2025

      I’ve been loving the upgrade to my favorite mobile controller, and there’s even a version for large tablets

      June 12, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Learning Resources»Learn How to Build a WordPress Block Theme Style Variation

    Learn How to Build a WordPress Block Theme Style Variation

    June 10, 2025

    WordPress block themes offer plenty of flexibility. You can make style and layout changes within your web browser – no coding knowledge is required. They can also include extras like block patterns and style variations.

    Style variations give you a head start on design. They allow us to create multiple color and typography combinations. They also house custom block styles defined in the Site Editor. Anything in a theme.json file can also be included in a style variation.

    This is handy for web professionals and users alike. Choose the variation that suits your needs and start building your site.

    Creating a custom block theme style variation is easier than you think. The entire process takes place in the WordPress Site Editor. A simple variation can be built in minutes.

    So, follow along as we build a style variation! We’ll show you how to point and click your way to a custom design.

    Style Variation Project Requirements

    The requirements for building a custom style variation are minimal. You’ll need:

    • A WordPress website (a local install is fine).
    • A block theme (we’re using Twenty Twenty-Five).
    • The Create Block Theme plugin should be installed and activated on your website.

    We don’t recommend using a production website for this process. A staging or local WordPress installation is the safer way to go.

    Let’s Build a Style Variation

    Now, it’s time to start building! Log in to your WordPress website and follow the steps below.

    Step 1: Open the WordPress Site Editor

    First, navigate to Appearance > Editor in the WordPress admin to open the Site Editor. Then, click the Styles link in the left sidebar.

    The Styles panel includes links for Typography, Colors, Background, Shadows, and Layout. You’ll also find a Browse Styles link that displays available style variations for the theme.

    Finally, the Blocks link allows you to customize individual block styles across the site.

    Customize your theme in the Site Editor's Styles panel.

    Step 2: Change Your Theme’s Styles

    This step is all about personal preference. Work your way through the Styles panel and start making changes.

    Color and typography are the most obvious changes, but you can take things further. For example, you can change the layout width and spacing. Plus, every block included with WordPress can be customized. Add margins, padding, borders, or custom CSS.

    We added custom fonts to the Twenty Twenty-Five block theme.

    We covered the basics in our variation, including:

    • Created a custom color palette;
    • Installed new fonts from Google Fonts;
    • Added custom spacing for the Group and Paragraph blocks;
    • Changed the look of the Button block;

    The result is an earthy look that aims for simplicity. But you can do as much or as little as you like. Just remember to save your changes when done.

    The custom color and typography of our style variation.

    Step 3: Save Your Style Variation

    Our next task involves saving our custom style variation. This functionality is part of the Create Block Theme plugin.

    The feature is located within the Site Editor. Here’s how to find it:

    1. While in the Site Editor, click on the right panel, highlighted in green below:

    Click on the right panel of the Site Editor to access the Create Block Theme settings.

    1. Click the wrench icon on the upper right of the screen and select Create Theme Variation:

    The Create Block Theme menu in the WordPress Site Editor.

    1. Name the variation and ensure the Save Fonts box is checked. We’ll call ours “Beautiful Earth.”

    We saved our custom style variation.

    1. Click the Create Theme Variation button to save the settings.

    Once saved, the new variation is added to the list in the Browse Styles area of the theme editor. Hovering over the variation reveals its name.

    Our custom style variation is now available in the Site Editor.

    How to Use Your Style Variation on Another Site

    Style variations are portable and can be used on multiple websites. The process involves copying the generated JSON file and adding it to the desired site.

    1. Locate the style variation’s JSON file in /wp-content/your-theme/styles/
      Replace your-theme with the name of the theme you’re using (ours is twentytwentyfive).

      For reference, our JSON file is called beautiful-earth.json

    2. Copy your style variation’s JSON file.
    3. On your new website, paste the file into /wp-content/your-theme/styles/ – you may need to upload the file via SFTP or your web host’s file manager.
    4. You’ll now be able to choose the style variation within the Site Editor.

    About Custom Fonts

    Earlier, we mentioned the ability to add custom fonts to a style variation. It requires a few extra steps to work when moving your variation to a new site.

    1. Locate the custom fonts you added at /wp-content/themes/your-theme/assets/fonts/
    2. Copy each font’s respective folder.
    3. Paste the font folders into the same directory on your new site. Once again, you may need to upload them.

    Give Your Block Theme a Custom Look

    Style variations are a convenient way to add personality to your block theme. You can build them to suit your project requirements.

    They also act as a starting point for designers. You can continue to add custom styles after applying a variation. The changes you make will be saved in the site’s database.

    There’s also an option to reset the styles to the variation’s defaults. That makes it easy to experiment without losing the key elements of your design.

    The best part is that style variations don’t require coding expertise. That puts custom design within everyone’s reach.

    The post Learn How to Build a WordPress Block Theme Style Variation appeared first on Speckyboy Design Magazine.

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleBreaking into Freelance UX Research: A Guide for Experienced Practitioners
    Next Article The Hidden Threat in Your Stack: Why Non-Human Identity Management is the Next Cybersecurity Frontier

    Related Posts

    Learning Resources

    What I learned from Inspired

    June 12, 2025
    Learning Resources

    macOS Apprentice [SUBSCRIBER]

    June 12, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2022-21200 – Apache HTTP Server Cross-Site Scripting

    Common Vulnerabilities and Exposures (CVEs)

    Xbox just made the best console version of Forza Horizon 5 yet — for the PS5 Pro

    News & Updates

    CVE-2025-29662 – LandChat Remote Code Execution (RCE)

    Common Vulnerabilities and Exposures (CVEs)

    Il progetto Guix si sposta sull’hosting Git di Codeberg

    Linux

    Highlights

    CVE-2025-4731 – TOTOLINK HTTP POST Request Handler Buffer Overflow Vulnerability

    May 15, 2025

    CVE ID : CVE-2025-4731

    Published : May 16, 2025, 12:15 a.m. | 42 minutes ago

    Description : A vulnerability classified as critical has been found in TOTOLINK A3002R and A3002RU 3.0.0-B20230809.1615. This affects an unknown part of the file /boafrm/formPortFw of the component HTTP POST Request Handler. The manipulation of the argument service_type leads to buffer overflow. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.

    Severity: 8.8 | HIGH

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    CVE-2025-5032 – Campcodes Online Shopping Portal SQL Injection Vulnerability

    May 21, 2025

    CVE-2025-22882 – Delta Electronics ISPSoft Buffer Overflow

    April 30, 2025

    FBI Warns about Silent Ransom Group Targeting Law Firms

    May 27, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.