Hi @bdubarconroy,
Is Block Lab deactivated when you see ‘Block Rendered as Empty’?
Sometimes if it’s not deactivated, it silently deactivates Genesis Custom Blocks.
Hi @ryankienstra,
Yes, it shows as deactivated in my list of plugins.
I don’t know if this would help, but this is what the example I sent should look like:https://drive.google.com/file/d/1MyL8b8Nu4SBEEDYkRYEfGthm6A1sJjAM/view?usp=share_link
OK, good to hear Block Lab is deactivated.
Are there any JS console errors?
No, I’m not receiving any console errors.
OK, do you see the Accordion block in /wp-admin > Custom Blocks > All Blocks?
https://cldup.com/K91K5uz27I.png
And it’s not a draft, right?
OK, thanks.
Could you click that accordion block from your screenshot, and share a screenshot of it?
Like:
https://cldup.com/bnHyfB90kQ.png
Thanks for your patience!
@bdubarconroy,
Thanks, that looks right.
Could you also paste block-accordion.php here?
Also, does the Accordion block render on the front-end? I know it doesn’t render in the block editor.
No it does not appear on the front-end either.
Here is the code:
<?php if ( block_rows( 'accordion_content' ) ) :?>
<ul class="accordion" data-accordion data-allow-all-closed="true">
<?php while ( block_rows( 'accordion_content' ) ) :
block_row( 'accordion_content' ); ?>
<li class="accordion-item" data-accordion-item>
<a href="#" class="accordion-title" tabindex="0"><?php block_sub_field( 'section_title', true ); ?></a>
<div class="accordion-content" data-tab-content>
<div class="eight-across">
<?php block_sub_field( 'section_content', true );?>
<div class="clear"></div>
</div>
</div>
</li>
<?php endwhile; ?>
</ul>
<?php endif;
reset_block_rows('accordion_content');
?>
Sorry for the delay, I’ll respond tomorrow if that’s alright.
Hi @bdubarconroy,
Is Genesis Custom Blocks Pro active, or only the free version on wp.org?
The repeater field is only in GCB Pro.
We are using the free version. Where would I see whether my block uses a repeater field or not? Also, how do I remove this feature in the block editor?
I appreciate the support you’ve been giving.
-
This reply was modified 3 years, 6 months ago by
bdubarconroy.
Hi @bdubarconroy,
Thank you for your patience!
One clue that a block uses a repeater is that it has blocks inside it:
https://cldup.com/hvXpTdsHcj.PNG
Another clue is that the PHP template has the functions:
block_row()
block_rows()
block_sub_field()
Also, how do I remove this feature in the block editor?
For the Accordion block, you could delete the block entirely in the block editor.
Or you could create a new block that does the same thing as the repeater.
It could have fields like:
section_title_1
section_content_1
section_title_2
section_content_2
etc…
Hi @ryankienstra,
I am attempting purchase Genesis Pro, since the repeater field functionality is built into quite a few blocks on the website I manage.
That being said, after following the process to add it to the WP Engine account, we are receiving notices that say we do not have the capability to do so. Even the owner of the account is receiving the same error.
Do you happen to know of any reason we would be encountering this error?