Blocks plugin
This topic contains 11 replies, has 5 voices, and was last updated by Peter Berger 5 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
March 4, 2020 at 10:22 am #533454
Hi,
I am testing the Generate Blocks plugin (aplha) which is a great plugin for my directories. I use Generate Press as my theme, which is made by the same people.
I test with previous made blocks (group / columns) and rebuild that with generate blocks (container / grid) but the map view doesn’t stay within the grid but goes page wide.
They think the issue here is GenerateBlocks isn’t able to fetch the necessary CSS, because GenerateBlocks checks the page for blocks. Since those pages are using the Classic Editor (plugins have the ability to turn off the block editor, which this plugin is doing).
That plugin will need to enable the block editor in the pages it generates in order for the plugin to work with it.
As long as the page contains blocks (using the WordPress has_blocks() function), our CSS should generate.
I guess the question to them is whether has_blocks() comes back as true on those dynamically created pages.
Can you answer that last question? Thanks, Peter
March 4, 2020 at 10:34 am #533456Hi Peter,
Thanks for your post. I will forward this to a developer for an opinion.
March 4, 2020 at 11:14 am #533473If you have the block editor turned on for the pages, then yes. GD has blocks of it’s own, and it is possible to use GD Shortcodes in HTML blocks. Make sure to use HTML instead of text editor or classic editor blocks.
March 4, 2020 at 12:02 pm #533490This reply has been marked as private.March 4, 2020 at 2:54 pm #533523So, the issue is what, exactly?
You want the top map to be half width? And using a special block?
To clarify, it is setup the way you want, but, you are saying the map at the top should be half-width?
March 5, 2020 at 9:25 am #533704Hi Alex,
I want to use the plugin Generate Blocks (https://generateblocks.com/), currently in alpha. The plugin gives me more functionality and suits the theme.
So I tested it.
I indeed want the top map to be half width (that is the one build with Generate Blocks). To test the plugin I tried to build the same thing as I build before.
That leaded to their question:
“As long as the page contains blocks (using the WordPress has_blocks() function), our CSS should generate.I guess the question to them is whether has_blocks() comes back as true on those dynamically created pages.”
I hope it is more clear now?
Best regards, Peter
March 5, 2020 at 2:49 pm #533775Hi Peter,
Geodirectory pages are not actually used on archive page. if you want to enqueue some css specifically for Geodirectory pages.
you can use geodir_is_geodir_page() function as condition check.
Thanks
March 5, 2020 at 3:31 pm #533779Hi Naveen,
Thanks.
I try to understand. I do not have the technical knowledge to see if this is the answer to make sure that the GenerateBlocks-plugin will work on the GD-generated pages like the detailpage. I give it a try to understand.
“Geodirectory pages are not actually used on archive page” -> The detail pages are archive pages that should pick up the blocks. But I understand from GenerateBlocks that the archive pages are marked as classic editor.
“if you want to enqueue some css specifically for Geodirectory pages”. -> I want the archive (detail) pages to pick up the css from GenerateBlocks. Is that what you mean?
“you can use geodir_is_geodir_page() function as condition check.” -> I guess I have to add this to Snippets. Is this the entire code?
Best wishes, Peter
March 5, 2020 at 4:54 pm #533788Hi Peter,
I misunderstood the request.
I will check it with GenerateBlocks on local
and see how the GenerateBlocks css can be enqueued on geodirectory pages.Thanks for your patience
Naveen
March 5, 2020 at 5:04 pm #533793This reply has been marked as private.March 11, 2020 at 6:03 am #534793Hi Peter,
GenerateBlocks plugin compatibility added and it will be in next release.
Meanwhile you can try this patch
https://github.com/AyeCode/geodirectory/pull/1099/commits/494834a76b2bf406f7498ef1861c86e454b49349Thanks,
KiranMarch 11, 2020 at 1:41 pm #534859Hi Kiran,
This is great. Thank you very much.
I probably wait for the update.
Best wishes. Peter
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket