Blocks plugin

This topic contains 11 replies, has 5 voices, and was last updated by  Peter Berger 4 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #533454

    Peter Berger
    Full Member
    Post count: 91

    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

    #533456

    Kor
    Moderator
    Post count: 16516

    Hi Peter,

    Thanks for your post. I will forward this to a developer for an opinion.

    #533473

    Alex Rollin
    Moderator
    Post count: 27815

    If 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.

    #533490

    Peter Berger
    Full Member
    Post count: 91
    This reply has been marked as private.
    #533523

    Alex Rollin
    Moderator
    Post count: 27815

    So, 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?

    #533704

    Peter Berger
    Full Member
    Post count: 91

    Hi 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

    #533775

    Naveen Giri
    Moderator
    Post count: 1559

    Hi 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

    #533779

    Peter Berger
    Full Member
    Post count: 91

    Hi 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

    #533788

    Naveen Giri
    Moderator
    Post count: 1559

    Hi 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

    #533793

    Peter Berger
    Full Member
    Post count: 91
    This reply has been marked as private.
    #534793

    Kiran
    Moderator
    Post count: 7069

    Hi 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/494834a76b2bf406f7498ef1861c86e454b49349

    Thanks,
    Kiran

    #534859

    Peter Berger
    Full Member
    Post count: 91

    Hi Kiran,

    This is great. Thank you very much.

    I probably wait for the update.

    Best wishes. Peter

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket