Justin Tadlock
Forum Replies Created
-
@alexandrie – Thanks for the feedback! These are great requests.
For the primary taxonomy control, I added a GitHub issue to explore this: https://github.com/x3p0-dev/x3p0-breadcrumbs/issues/25
The taxonomy selection/disabling feature is coming in version 4.0.0. I’ve already implemented it on the GitHub repo and am currently testing it. Happy to hear any feedback on how it works if you want to give it a try.
For the global separator, have you tried to use a pattern? That’s usually the standard method for handling global settings for blocks that you want to be reused everywhere. You could go with a synced pattern. Or if handling this from within a theme template, you could just set the custom parameter there.
Forum: Plugins
In reply to: [X3P0: Progress] Percentage displayFor this update, I just wanted to patch the bug with the current feature.
I plan on adding customizable goals that can be calculated as percentages in a future release, which will require larger code changes and more testing.
Forum: Plugins
In reply to: [X3P0: Progress] Percentage displayYeah, absolutely, we’ll be able to connect it to separate sources once Block Binding API support lands in Core for custom blocks.
Forum: Plugins
In reply to: [X3P0: Progress] Percentage displayThanks for the note on percentages. I’ll address that in the next release. For now, I’d just say to keep the Goal at
100. I didn’t account for people being able to change that.What do you mean by dynamic? You want to attach custom field data to it or something? I can look into adding Block Bindings API support after WordPress 6.9 is released, which I believe should open up the feature for third-party blocks like my own.
Forum: Fixing WordPress
In reply to: 2024 theme navigation block restricting access?You’ll need a visibility or permissions-type plugin for this. There’s a free one named Block Visibility here in the directory: https://wordpress.org/plugins/block-visibility/
It should let you restrict blocks (including menu items, which are blocks themselves) to just logged-in users.
Forum: Fixing WordPress
In reply to: Forcing table borders to mergeIt looks like (based on the screenshot), your theme is setting
border-collapsetoseparateinstead ofcollapse: https://developer.mozilla.org/en-US/docs/Web/CSS/border-collapseIf this is the case, you would need to add something like this to your theme’s CSS:
table {
border-collapse: collapse;
}Without viewing access to the site, it’s hard to give anything more specific than that.
Forum: Fixing WordPress
In reply to: Forcing table borders to mergeThe image URL you linked requires a login to the site.
Forum: Fixing WordPress
In reply to: Changing the Pages widget to display as a dropdown?I don’t believe the Pages widget has a dropdown option, but there is a
wp_dropdown_pages()function that you can use to build a custom dropdown with PHP: https://developer.wordpress.org/reference/functions/wp_dropdown_pages/Forum: Fixing WordPress
In reply to: WordPress not working properlyIt sounds like none of the assets (images, CSS, JS, etc.) are loading. I wonder if it’s a File Permissions issue? https://developer.wordpress.org/advanced-administration/server/file-permissions/
Linking to your site may help someone diagnose the issue.
How are you registering your blocks on the server? For example, here’s how I’d point to the blocks folder and manifest to register a collection of blocks (WP 6.8+):
wp_register_block_types_from_metadata_collection(
__DIR__ . '/src/blocks',
__DIR__ . '/src/blocks/manifest.php
);I can’t remember if you need to adjust your
package.jsonscripts, but if you do, it’d be something like this:"start": "wp-scripts start --webpack-src-dir=src/blocks --output-path=build/blocks",
"build": "wp-scripts build --webpack-src-dir=src/blocks --output-path=build/blocks"Forum: Plugins
In reply to: [Gutenberg] Rendering arbitrary Tailwind CSS classes in blockThis doesn’t seem to be related to the block itself. My guess is some of the characters that you’re using in the
classare not valid identifiers and need to be escaped.You can read more about CSS identifiers here and how to escape them: https://developer.mozilla.org/en-US/docs/Web/CSS/ident
Most likely, you’d need to replace the
>character with& # 6 2 ;(without the spaces, which I had to add to get it to show up here). Maybe the ampersand too.- This reply was modified 1 year, 10 months ago by Justin Tadlock.
Forum: Plugins
In reply to: [Gutenberg] Rendering arbitrary Tailwind CSS classes in blockCan you share the code for the block? Is this code in your
render.phpor is it a in yoursave.js?Forum: Themes and Templates
In reply to: [Norrsken] Switching between dark and light themes@anlino – It’s possible to do this with the Block Bindings API instead of a fully custom block. This would be allowed in the Theme Directory.
@kobzew – Custom blocks in themes is pretty much a non-starter, but support for such a block in Core WP or the Block Bindings route I mentioned above are both possibilities.
Forum: Fixing WordPress
In reply to: WP 6.6 font styles issueLooks like it went in here: https://github.com/WordPress/gutenberg/pull/63403
It looks like it removes
:root :where()with top-level element selectors that don’t have a class attached to them.Forum: Fixing WordPress
In reply to: the title and meta description do not changeTo answer a couple of your questions:
But how can this happen if the Astra theme is very popular and conflict is unlikely.
I my last 19 years of using and building on top of WordPress, I can tell you with absolute certainty that the popularity of a plugin/theme is entirely unrelated to whether it has issues or causes conflicts.
So what can I do in this situation?
The best place to ask support questions related to this is the Yoast SEO or Astra support forums.
Assuming the issue is unrelated to either of those, have you tried disabling all other plugins to see if they are causing the issue?