Hello,
it would be very useful to have the ability to regenerate the CSS file every time you save a post type that supports the Gutenberg editor.
For example, if I save a page after adding blocks with Tailwind CSS v4 classes I would expect that upon autosave it would support the classes used in the frontend.
How can I do this considering I am using a custom theme?
Thank you very much.
]]>WordPress padding overides the tailwinds padding I set on a parragraph. Any thoughts?
Is this common?
Hi, I am testing locally with localwp.com your plugin which is great, but it was not working on post type other than post or pages even if gutenberg editor is used.
How do I extend class detection on other post types using gutenberg?
]]>Hello,
I installed this plugin and want to add Tailwind to my Custom Theme (a blank theme https://underscores.me/)
I already added th Scanner code into my functions.php file following this document https://wind.press/docs/integrations/custom-theme
<?php
/**
* @param array $providers The collection of providers that will be used to scan the design payload
* @return array
*/
function register_my_theme_provider(array $providers): array {
$providers[] = [
'id' => 'uu_dam', // The id of this custom provider. It should be unique across all providers
'name' => 'My Theme Scanner',
'description' => 'Scans the current active theme and child theme',
'callback' => 'scanner_cb_my_theme_provider', // The function that will be called to get the data. Please see the next step for the implementation
'enabled' => \WindPress\WindPress\Utils\Config::get(sprintf(
'integration.%s.enabled',
'uu_dam' // The id of this custom provider
), true),
];
return $providers;
}
add_filter('f!windpress/core/cache:compile.providers', 'register_my_theme_provider');
and
<?php
function scanner_cb_my_theme_provider(): array {
// The file with this extension will be scanned, you can add more extensions if needed
$file_extensions = [
'php',
'js',
'html',
];
$contents = [];
$finder = new \WindPressDeps\Symfony\Component\Finder\Finder();
// The current active theme
$wpTheme = wp_get_theme();
$themeDir = $wpTheme->get_stylesheet_directory();
// Check if the current theme is a child theme and get the parent theme directory
$has_parent = $wpTheme->parent() ? true : false;
$parentThemeDir = $wpTheme->parent()->get_stylesheet_directory() ?? null;
// Scan the theme directory according to the file extensions
foreach ($file_extensions as $extension) {
$finder->files()->in($themeDir)->name('*.' . $extension);
if ($has_parent) {
$finder->files()->in($parentThemeDir)->name('*.' . $extension);
}
}
// Get the file contents and send to the compiler
foreach ($finder as $file) {
$contents[] = [
'name' => $file->getRelativePathname(),
'content' => $file->getContents(),
];
}
return $contents;
}
But when i press Generate Cache button then it’s showing this notification:
Error: Failed to generate cache
Can you tell me what’s missing here?
Thanks,
Jay
Do I understand this correctly? Other than various other goodies as utilizing Tailwind seamlessly in WordPress I am more interested in the specific Bricks builder integration. I checked your documentation for the WindPress but it is in development I guess.
This is from your documentation “HTML to native elements: Convert Tailwind CSS HTML to native elements in the editor.” but no more details about that.
Does this mean I could for example create some parts (or use existing ones) from Shuffle https://shuffle.dev/tailwind (or https://www.tailwindawesome.com/ or any other free or paid repository) – paste it into my bricks and it they are converted to bricks element (with Tailwind styling)?
Such as assuming my Tailwind configuration is somewhat similar to theirs – I’ll see exactly same layout but it will be converted to Bricks section, containers, blocks, div etc?
p.s. I noticed I am the only one posting in the Support section. Sorry about that. But to my defense I actually tried Bricks and I am now ex Elementor hostage. Bricks is unbelievable. I feel like I have been living like in comma until I discovered Bricks.
]]>Hi there! Any ETA on Elementor integration? Can you at least describe how this will be integrated because I am having a hard time imagining it? Take my money, no problem in paying for this integration!!!
]]>