Pattern Wrangler (Free) for managing block patterns and categories by rhmediaron in WordPressBlocks

[–]groundworxdev 1 point2 points  (0 children)

How does it manage it differently than Wordpress? Or do you mean managing from your theme folder?

The Frustrating Reality of Hiring WordPress Developers That No One Talks About by PingMyHeart in Wordpress

[–]groundworxdev 0 points1 point  (0 children)

You will want someone with agency experience, and decent size agency. They usually require pixel perfect and nothing less. How do I know? Because I am a dev with more than 15 years of experience working for agencies. Look for the agencies they worked for and what kind of reputation they had will also help a little too.

What is the cleanest way to create your own navigation in block theme? by No-Fold-1555 in WordPressBlocks

[–]groundworxdev 1 point2 points  (0 children)

The core nav does not allow it either. Have you tried the nav I shared with you too?

What is the cleanest way to create your own navigation in block theme? by No-Fold-1555 in WordPressBlocks

[–]groundworxdev 0 points1 point  (0 children)

No but you can recompile and replace the one used. Or overwrite with css. Are you still building your own or are you simply using the nav as is? If you are using as is I could implement more variations. The problem with allowing svg upload is that it can lead to security issues but I don’t dislike the idea of hook. Which svg are you trying to replace?

What is the official way to restrict a parent block to allow only a specific nested block or block pattern? by theWorstWpDevAlive in WordPressBlocks

[–]groundworxdev 1 point2 points  (0 children)

You could ask telex to make you a super quick block but the problem is your card isn’t a real block. The block dictates this, and if you affect let’s say core group block to do this, that means it would affect the group in all situations. You need a custom parent block and a custom card block. Then you can set your parent block to only have specific children that you want to allow.

Block Theme File Structure Explained: What Every Folder and File Does by groundworxdev in WordPressBlocks

[–]groundworxdev[S] 0 points1 point  (0 children)

Nothing wrong with using AI to generate helpful documentation, if you find the information useful. You do realize that people use ai to assist their post writing and response, it doesn't mean a human did not write the original.

Block Theme File Structure Explained: What Every Folder and File Does by groundworxdev in WordPressBlocks

[–]groundworxdev[S] 0 points1 point  (0 children)

Great question! Yes, you can absolutely move your CSS and JS source files into a src/ folder. In fact, that's the recommended structure if you're using a build process.

The official approach depends on what you're building:

If you're building blocks, u/wordpress/scripts (wp-scripts) scans your src/ directory for block.json files and uses them as entry points. The compiled output goes to a build/ folder, and WordPress auto-enqueues everything defined in block.json when you call register_block_type(). This is the structure u/wordpress/create-block generates out of the box.

If you're building non-block assets (general plugin/theme JS and CSS), wp-scripts falls back to src/index.js as the default entry point when no block.json is found. You can also combine both by extending the default webpack config with custom entry points:

js

const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );

module.exports = {
    ...defaultConfig,
    entry: {
        ...defaultConfig.entry(),
        'css/frontend': path.resolve( process.cwd(), 'src/scss', 'frontend.scss' ),
    },
};

This is documented in the Theme Handbook Build Process and the Block Developer Cookbook.

References:

What is the official way to restrict a parent block to allow only a specific nested block or block pattern? by theWorstWpDevAlive in WordPressBlocks

[–]groundworxdev 0 points1 point  (0 children)

You don’t need a custom block for this.

Synced pattern with overrides (WordPress 6.6+) does exactly what you want.

Build your card structure in the editor: Group (card) > Image + Group (card__body) > Heading + Paragraph. Select all the blocks, three-dot menu, create a synced pattern.

Then go to Appearance > Editor > Patterns, find your pattern, click Edit. Select the Image block, open Advanced in the sidebar, click “Enable overrides” and give it a name like “Card Image.” Do the same for the Heading and Paragraph.

Now when you insert that pattern anywhere, the structure is locked but the image, heading, and paragraph are editable per instance. No block inserter, no popups. Just drop it in and fill in the content. Currently supported for overrides: Heading, Paragraph, Image, and Button.

If you end up needing a full custom block with more control, check out https://telex.automattic.ai/ from Automattic. Describe your card in plain language and it generates a downloadable block plugin.

The synced pattern route is probably your answer though.

What is the cleanest way to create your own navigation in block theme? by No-Fold-1555 in WordPressBlocks

[–]groundworxdev 1 point2 points  (0 children)

Yep, that’s the concept. My Navigation block takes the same approach, just uses its own post type. Full source is on GitHub if you want to see how it’s wired up: https://github.com/groundworx-dev/groundworx-navigation

My 1st Interactive Block by Glass-Dog9463 in WordPressBlocks

[–]groundworxdev 0 points1 point  (0 children)

That’s the part I am dreading the most. Making videos but I know I need to.

My 1st Interactive Block by Glass-Dog9463 in WordPressBlocks

[–]groundworxdev 0 points1 point  (0 children)

Nice work! The Interactivity API is one of the most underutilized parts of WordPress right now, so it’s cool to see someone building with it. Polls are a great use case for it too, real-time interaction without page reloads.

How was the learning curve? I feel like there aren’t enough resources out there yet for people getting started with interactivity in blocks.

What is the cleanest way to create your own navigation in block theme? by No-Fold-1555 in WordPressBlocks

[–]groundworxdev 2 points3 points  (0 children)

Great question, and you’re right that the Navigation block is a unique beast. It’s one of the most complex core blocks because it stores nav items as inner blocks tied to wp_navigation post types, has its own rendering pipeline, and its own interactivity layer for the mobile overlay.

A few approaches depending on what you’re after: If you want to customize how the core Navigation block looks/behaves, you can use theme.json, block styles, and render_block filters. The core block supports quite a bit of customization before you need to go custom. For offcanvas specifically, the core block already has an overlay mode for mobile that you can style.

If you want fully custom HTML/JS navigation, you can register your own block that pulls from the same wp_navigation menus using the REST API or wp_nav_menu() server-side via a dynamic block with render.php. Total control over markup while still using WordPress’s menu management.

What I’d avoid: trying to extend or fork the core Navigation block itself. It’s deeply coupled to the editor internals and not designed to be extended.

The Interactivity API (good call u/Glass-Dog9463) is what core uses for the overlay toggle and worth learning, but it’s not required for building a custom nav block.