Tag: Design

  • Vanilla+ Architecture: Expanding Core Blocks Without the Bloat

    The biggest mistake developers make when moving to the Block Editor (Gutenberg) is thinking they need a “Mega Block Collection” plugin like Ultimate Addons or Kadence Blocks. While these are popular, they often load assets for dozens of blocks you aren’t even using, creating unnecessary technical debt and slowing down the editor.

    At AgilePress, we follow the “Surgical Block” approach. We start with the lightweight Core blocks and expand their capabilities using specialized, single-purpose plugins. This keeps your CSS footprint tiny and your Core Web Vitals at a perfect 100/100.

    Here is how to build a professional ecosystem using surgical enhancements.


    1. The Foundation: GenerateBlocks

    Before looking at single-purpose blocks, you need a solid structural foundation. Unlike “Mega Collections,” GenerateBlocks is a small, precision-engineered set of blocks that replaces the need for a page builder.

    It is important to note that GenerateBlocks is not a single block; it adds a small collection of essential tools—Container, Grid, Headline, Image, Buttons, and Query Loop—that can accomplish nearly anything. Its modern versions also include high-performance Accordion and Tab blocks that use minimal Vanilla JavaScript and modern CSS to ensure your site remains lightning-fast.


    2. The “Logic” Layer: Conditional Visibility

    Why create separate pages for different users when you can control the blocks themselves?

    • Block Visibility: This is the gold standard for conditional logic within the editor.
    • Capabilities: It allows you to show or hide any block based on user roles, screen sizes, or specific dates.
    • The AgilePress Edge: Instead of using a heavy membership plugin to hide a single “Buy Now” button, you use Block Visibility. It is invisible to the frontend and adds zero weight to your page load.

    3. The “Data” Layer: Dynamic Content & Queries

    The native Query Loop is a great start, but for complex directories or custom data, it needs a specialized “brain.”

    • Advanced Query Loop: This adds essential filters to the native loop that WordPress lacks by default. It allows you to filter by ACF fields or specific taxonomies without writing a single line of PHP.
    • AgilePress Content Block for ACF: This is our “secret weapon” for rendering complex ACF data, such as repeaters or galleries, directly inside the editor using simple custom tags.
    • Loops & Logic: When the native Query Loop hits a wall, L&L takes over. It allows for complex conditional logic inside the loop, such as showing different badges based on a product’s sale status.

    4. The “Interaction” Layer: Layout & UX

    Standard blocks are often static. To create a modern, interactive experience, you need specialized tools that respect the DOM and avoid legacy libraries like jQuery.

    • Sticky Block for Gutenberg: Perfect for floating sidebars or sticky calls to action. It does one thing: it sticks a block to the top of the screen as you scroll using clean, modern CSS.
    • Carousel Slider Block for Gutenberg: Most slider plugins are performance nightmares. This one uses the native block structure to create touch-friendly, lightweight sliders that don’t bloat your code.

    5. The “SEO & Navigation” Layer

    Structure is vital for both users and search engines to understand your content.

    • Breadcrumb Block: This block handles JSON-LD structured data and is fully compatible with WooCommerce. It replaces heavy, legacy breadcrumb solutions that aren’t built for the block era.
    • SimpleTOC: This block generates a clean table of contents directly from your Gutenberg headings. It has no complex configuration and loads zero CSS or JavaScript on the frontend.

    6. The “Ethical” Utility Layer: Maps & Sharing

    External scripts from Google or Facebook are major performance and privacy bottlenecks.

    • Leaflet Map: A hidden gem that uses OpenStreetMap instead of Google Maps. It is significantly lighter and avoids Google’s tracking cookies, keeping your architecture clean and fast.
    • Scriptless Social Sharing: This is our definitive choice for performance. As the name suggests, it adds sharing buttons without a single line of JavaScript. It uses simple links that don’t track users or load external scripts, aligning perfectly with privacy-by-design principles.

    The AgilePress Conclusion: The 1:1 Rule

    Before adding a new block plugin, ask yourself: “Does this provide a functionality that the Core block can’t achieve with 5 lines of CSS?”

    • Breadcrumbs? Yes, it adds SEO Schema.
    • A “Spacer” block? No, Core has one.
    • A “Button with a shadow” block? No, use a CSS class in the Core button.

    By curating your own “Surgical Stack,” you aren’t just building a website; you are building a high-performance application that stays fast as it grows.

  • The Slider Myth: Why Carousels Kill Conversions (And Speed)

    It is the most common request in web design: “Can we put a slider on the homepage with 5 moving images and text that flies in from the left?”

    Clients love sliders. They feel dynamic. They solve internal politics (“Let’s put the CEO’s message on Slide 1 and the new product on Slide 2”).

    But there is a problem: Users hate them.

    At AgilePress, we have a strict policy: Friends don’t let friends use sliders. Here is why we almost never use Carousels on a homepage, and why you shouldn’t either.

    The 1% Click Rate (The Usability Problem)

    The data is brutal. Study after study (from Nielsen Norman Group to Notre Dame University) shows the same thing:

    • 1% of users click on a slider.
    • 89% of those clicks are on the first slide.
    • Nobody sees Slide 2.

    If you hide your most important offer on the second slide, you are effectively hiding it from 99% of your visitors. Users have developed “Banner Blindness.” When they see a moving box at the top of a page, their brain identifies it as an “Advertisement” and automatically ignores it to look for the actual content below.

    The Performance Killer (The Technical Problem)

    To make an image slide, fade, and fly, you need code. A lot of it.

    The Villain: Slider Revolution

    The most popular plugin for this, Revolution Slider, is a technical monster.

    • It loads massive JavaScript libraries (GreenSock, jQuery, etc.).
    • It forces the browser to recalculate the layout constantly during the animation.
    • It destroys your LCP (Largest Contentful Paint) score in Google Core Web Vitals.

    Using a slider is like putting a backpack full of rocks on your runner before a race. Your site will be slow, and Google will penalize you.

    The Mobile Nightmare

    Have you ever tried to read a slider on a phone?

    • The text becomes tiny.
    • The buttons are impossible to tap.
    • The slide changes just as you are trying to read it.

    70% of traffic is mobile. A horizontal slider on a vertical screen is a terrible use of space.

    The AgilePress Solution: The Static Hero

    If we kill the slider, what do we replace it with?

    The Hero Section. A single, powerful, high-quality image (or video background) with a clear headline and a single Call to Action (CTA).

    • Focus: The user knows exactly what you do in 3 seconds.
    • Speed: We load one optimized image. We use CSS Grid for layout. No heavy JavaScript.
    • Conversion: You force yourself to choose your #1 Value Proposition. You stop diluting your message.

    Less movement = More attention.

    Are all sliders evil? No. Carousels are useful when the user wants to browse content, not when you force it on them.

    Acceptable Use Cases:

    • Product Galleries: On a WooCommerce product page, the user expects to swipe through photos.
    • Testimonials: A small slider showing reviews is fine.
    • Logo Carousels: Displaying client logos.

    How we build them: We never use Revolution Slider. We use lightweight, code-only libraries like Splide.js or Swiper.js.

    • They weigh 10kb (vs 500kb).
    • They are touch-friendly.
    • They don’t block the rendering of the page.

    Conclusion: Stop Moving, Start Selling

    Your website is not a PowerPoint presentation. It is a sales tool.

    Every time you ask for a slider, you are prioritizing “looking cool” over “working well.” At AgilePress, we choose performance. We choose clarity.

    Kill the slider. Save the speed.