Hi. I’ve built some blocks without any JS but now I want to inject some. What is the correct way to do this?
]]>Hello,
I am facing an issue with Genesis Custom blocks on development, staging and production server.
On pages with smaller amount of blocks, everything is working as expected but with few pages where I have multiple of them, they all return (failed)net::ERR_CONNECTION_CLOSED (while checking in the network tab). After clicking on this failed block it loads it normally. I can go one by one and click on each, which ends up in loading them. However, this is very inconvenient and very hard to navigate.
Could you please help me understand and resolve this.
Worth nothing again is that this happens on development, staging and production server, so I’ve ruled out server issues.
Thank you in advance
Hello,
When I go to Custom Blocks > Add New, this is what I see: https://snipboard.io/UduZwG.jpg
And I am unable to close out of it. When I click the X in the top right corner, nothing happens.
Thank you!
Theme: Storefront (Automattic).
There is only one plugin active: Genesis Custom Blocks.
Warning pages: /wp-admin/widgets.php
Checked it out at tastewp.com
PHP: 8.0
Notice: Function wp_enqueue_script() was called incorrectly. “wp-editor” script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see Debugging in WordPress for more information. (This message was added in version 5.8.0.) in /s1-expectnumber/wordpress/wp-includes/functions.php on line 6078
Hello again!
I suggest adding a new field type “Separator” (blank), so that you can use it to separate fields in the editor according to their meaning.
Example
Field 1: image
Field 2: text
Separator
Field 3: image
Field 4: text
List of available fields: photo.
]]>Hello!
It seems that the plugin does not support multiple Inner Blocks (I previously wrote about the problem with this type of fields): the values ??in the fields and interface buttons are duplicated (photo).
I see that you partially disallowed creating multiple Inner Blocks fields (there are no Inner Blocks in the type select list), but I can duplicate Inner Blocks fields without restrictions (photo).
]]>Hello! The URL type field considers relative links to be invalid. Photo.
]]>Hello, thank you for this great plugin.
We facing a “problem” with a post field. Our blog has many posts and we have a block where we add like hand-picked suggested or similar posts.
The standard way of searching does not work well for us. Can it be improved to accept also post URL and ID to find posts? I installed Relevanssi and made it search by post ID, which worked on front-end. But it did not make an effect in the block post field search… Probably you are not using a default WP search? Any ideas?
Thank you.
Hi, pulling through an image using the standard
<code>
<img src="<?php block_field( 'pets-photo' ); ?>" />
</code>
generates the full size URL. Is there a simple way to adapt this to include an Srcset or similar for different device sizes, and pull through the image’s alt text, or do we have to work with block_value() instead?
Thanks
]]>Hello,
I’m trying to set some custom attributes and html tags to a custom block from its text/textarea fields. I’m using the default template builder, not php templates. But, my custom values are getting stripped. Only id, class and style attributes are getting displayed. Same for html tags, only the standard ones (div, section etc.) are getting trough.
So, it seems that there is some field validation in place.
Can this behaviour be disabled somehow, maybe with php filter/hook?
Thank you!
Cheers
Hello,
I’m experiencing an issue with custom blocks created with Genesis Blocks, where they randomly disappear from the front-end of my site. However, these blocks still appear in the admin editor, accompanied by the following notice:
“Your site doesn’t include support for the ‘genesis-custom-blocks/block-name’ block. You can leave this block intact or remove it entirely.”
Here’s the structure of where my custom block templates are located:
wp-content/themes/child-theme/blocks/block-name/block.php
This issue persists even though the block templates are correctly placed within my child theme directory. Interestingly, I’ve found a temporary workaround:
WP Admin > Genesis Blocks Pro > Add New (Block Builder)
.Following these steps brings the block back on the front-end, but this solution is far from ideal and not sustainable for long-term management.
Has anyone encountered this issue before, or does anyone have insights into what might be causing this and how to resolve it more effectively?
Any help or guidance would be greatly appreciated. Thank you!
]]>It’s a dev site so I’m just using Local – live link. user: reading pw: graceful
The last block on the page… Trying to create php templates instead, even the most basic, I can’t get an image to display. I’ve disabled all 3 plugins and switched to a default theme. Same issue. I even went to the documentation page and pulled an exact snippet to test because I’m not sure what else to do. If I use html in the template editor, it works fine pulling the images using {{}}. I also cleared the css to make sure nothing I added effected it. Ideas? This is what I get and the example code is below.
<div class="genesis-custom-block <?php block_field('className'); ?>">
<img src="<?php block_field('profile-picture'); ?>" alt="<?php block_field('author-name'); ?>" />
<h3><?php block_field('author-name'); ?></h3>
<p><?php block_field('testimonial'); ?></p>
</div>
]]>
The blocks’ php files are normaly used but the css files are not used.
I had to copy the content of all ccs files in a new style.css file for continuing to use the page.
To access the page pwd is Exupéry
Sorry for my bad english expression
All the Front End blocks are created in ‘my-theme/blocks/…’
Is there I way I can move a block to a custom folder inside my theme?
]]>I use Genesis Custom Blocks together with Rank Math, and I have found out that these plugins cause a JSON error when I try to save a post.
The error message is as follows “Updating failed. The response is not valid JSON response”.
At the moment, I can’t save posts with both plugins enabled. If either of these two plugins is disabled, the error disappears, and posts can be saved.
]]>Hey guys.
I made a custom container block using Genesis Custom and its ‘Inner Content’ field.
Problem is JS doesn’t appear to work correctly when added to this field. Case and point: both this custom button (made using JS) and a WP Form won’t display. You can see examples here under the heading “Join the Newsletter”: https://stageteachmis.wpenginepowered.com/ralph-workshop-post
Any idea what’s going on?
]]>The code e("core").getPostTypes()
in edit-block.js
is limited to 10.
Fix like: e("core").getPostTypes({per_page: -1})
Hello,
I’ve installed the genesis framework and craving pro theme. i’ve followed instructions to import all data and widgets. everything imported well and works but i can’t edit any page. i keep getting this error :
TypeError: Cannot read properties of undefined (reading ‘lightbox’)
at migrate (https://www.charcuteriemaison.fr/wp-includes/js/dist/block-library.min.js?ver=875919a30abea6016ef8:14:185125)
at https://www.charcuteriemaison.fr/wp-includes/js/dist/blocks.min.js?ver=7204d43123223474471a:10:35725
at Zn (https://www.charcuteriemaison.fr/wp-includes/js/dist/blocks.min.js?ver=7204d43123223474471a:10:35870)
at https://www.charcuteriemaison.fr/wp-includes/js/dist/blocks.min.js?ver=7204d43123223474471a:10:35030
at Array.map ()
at Zn (https://www.charcuteriemaison.fr/wp-includes/js/dist/blocks.min.js?ver=7204d43123223474471a:10:35022)
at https://www.charcuteriemaison.fr/wp-includes/js/dist/blocks.min.js?ver=7204d43123223474471a:10:35030
at Array.map ()
at Zn (https://www.charcuteriemaison.fr/wp-includes/js/dist/blocks.min.js?ver=7204d43123223474471a:10:35022)
at https://www.charcuteriemaison.fr/wp-includes/js/dist/blocks.min.js?ver=7204d43123223474471a:10:36374
How can i fix this please to be able to edit ?
Thank you in advance,
Najlaa
]]>I’m testing a development site with WP 6.4 RC4, PHP 8.1 and Genesis Custom Blocks 1.5.2. right now and block previews are unfortunately no longer shown. Instead there is an error message (an error occured, preview can not be shown). Also an existing block can’t be edited anymore.
A new block can be inserted and edited as usual at first, but can not be edited again. All blocks are affected, those with preview templates and those without.
Everything is fine in the frontend though, existing and newly inserted blocks are shown as expected.
A downgrade to WP 6.3.2 resolves the problem – previews are showing again and all existing blocks can be edited again.
It would be great if anybody could confirm that behaviour with WP 6.4 RC4 (possibly 6.4), as to find out wether a plugin update is needed or wether something has to be changed in the preview templates in order to work with WP 6.4. I could’nt find any information on that so far.
Thanks very much in advance!
]]>I’m testing a site with PHP 8.2.4 and the GCB plugin generates a warning:
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in?(path)\wp-content\plugins\genesis-custom-blocks\php\ComponentAbstract.php?on line?49
The line in question reads:
$function_name = "{$class_name}__${name}";
It’s easily changed to {$name}
, so I have done that on my copy, just to get rid of the deprecation warning. Something for you to change in a future plugin update.
WordPress 5.7.6 and Genesis Custom Blocks Pro 1.5.1 and Advanced Editor Tools 5.6,
I found the error of Advanced Editor Tools of setting not working.
So, how to fix it ? thanks!
error imgs :
https://ibb.co/FDbQf88
https://ibb.co/2PXGymy
I created a simple custom block (two textarea fields, wrapped in some div tags). It shows up correctly when editing a page.
When viewing the live page, it doesn’t show. Using the inspector, I can see it’s outputting as a comment and not actual tags:
<!-- wp:genesis-custom-blocks/continue-reading {"first-paragraph":"Content here","additional-paragraphs":"Content here"} / -->
Some of my blocks are created in code, using add_block() and add_field().
For the add_block() ‘icon’ parameter, I need the list of available icon names. I thought I would be able to find these in the code somewhere but I’m drawing a blank at the moment. I know that the default is ‘genesis_custom_blocks’, and I have previously also used ‘folder’ and ‘today’.
Is there a list of the available icon names?
]]>Any time I set up a block that uses the ‘Inner Blocks’ field type, it displays fine in the public side using my template file, but in the admin area it shows “Error loading block: The response is not a valid JSON response” because the AJAX request returns a 403 error.
I have tested this on multiple sites on multiple servers and I get the same result every time. Is there something that’s generally wrong, or is there something else that I should look for?
]]>Hi,
I can’t see Template Editor button in editor, it’s not showing or something is wrong here. or just I’m missing something.
screenshot – https://pasteboard.co/NfRE2gcKfDsd.png
Thanks
]]>Entering a decimal, like ‘7.5’ into a field of type: number causes a block error and causes it to fail to load.
In my case, my page was a long menu, and the block is ‘menu item’ with an ‘item price’ field of type number. The entered values here can only be integers – if you try to enter a price with decimal, like ‘7.5’, the value seems to save, but the block will not render – you get that ‘invalid parameters’ error message.
Side note: I found out in trying to make this change for my client that if you change the type of a field, it causes all instances of that block to wipe out (or at least fail to show) the values in that field.
]]>
I want to include a custom block in the widget editor. This works (in the frontend), but rendering the block in the backend returns:
“Error loading block: invalid parameter(s): Attributes”
]]>With this plugin turned on, I can not filter my posts (and other post types) by month in the backend.
How to bring back this filter?
]]>Hi, I have some custom blocks that appear ~fine on regular pages/posts editor view but within the widget page, they appear with ‘Error loading block: Invalid parameter(s): attributes’. Things work fine on the frontend. Not sure what would do this.
Page:
Widgets:
And no, adding a preview.php doesn’t help.
]]>I have created a block and added some custom styles in a file called my-block.css inside my theme.
This works, but when I update the CSS, the styles are not updated in the frontend. It appears the CSS is cached, and not refreshed when the file is updated.
How to resolve this?
]]>