Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dimdim

    (@dimdim2001)

    Hi Shameem,

    I have disabled all other plugins and switched from theme. It seems like the trimming code I mentioned earlier conflicts with the OnePress theme.

    I would like to show you how a small code change on you end could resolve the issue for us as well as for other using the OnePress theme / other affected themes.
    (See my recording where I’m just moving the trimming code some lines below.)

    I was even wondering why the WooCommerce plugin should trim the content when rendering blocks (‘render_block’-filter). Could you give me a valid explanation why it’s done there?
    The documented summary of the ‘add_data_attributes’-method only mentions data-attributes are added for woocomerce-namespaced blocks, while it manipulates all block contents.

    (The OnePress theme is applying the ‘the_content’-filter on the blog post content which is then underlying calling the wp ‘do_blocks’ method, which then applies the ‘render_block’-filter. Hence newlines are extracted from the output of the ‘do_blocks’ method resulting in the recorded UI-change.)

    Looking forward to hearing from you!

    Thread Starter dimdim

    (@dimdim2001)

    Hi Shameem,

    I was referring to the WordPress blog posts being rendered different.
    I’ve recorded my findings on our beta website to not influence our production site, but the behaviour is still the same.

    Thanks in advance!

    Thread Starter dimdim

    (@dimdim2001)

    Hi Fahid,

    We are using your plugin for some post types, but not all of them.
    However, after updating to version 4.0.4, your plugin is showing up for all post types including those we don’t want.

    It would be nice to have the option back working to only enable the stars rating for specific post types.

    Kind regards

Viewing 3 replies - 1 through 3 (of 3 total)