Hi TagDiv team,
We often use the Media+Text block from WordPress Block Editor. We’ve recently noticed that some extra code is being added to this block that didn’t used to be present.
Old version:
<!– wp:media-text {“mediaId”:211754,”mediaLink”:”https://dutchreview.com/expat/best-banking-apps-netherlands/attachment/ing-banking-app-square-logo-orange-lion/”,”linkDestination”:”custom”,”mediaType”:”image”,”mediaWidth”:26} –>
<div class=”wp-block-media-text is-stacked-on-mobile” style=”grid-template-columns:26% auto”><figure class=”wp-block-media-text__media”>
</figure><div class=”wp-block-media-text__content”><!– wp:paragraph –>
<p>One of the biggest and most well-known Dutch banks, ING is a popular choice among locals and internationals alike for its accessibility, affordability, and handy range of banking features.</p>
<!– /wp:paragraph –>
New version (change in bold):
<!– wp:media-text {“align”:””,”mediaId”:287729,”mediaLink”:”https://dutchreview.com/expat/fibre-optics-in-the-netherlands/attachment/ziggo-logo-fibre-optic-internet-provider-netherlands/”,”linkDestination”:”custom”,”mediaType”:”image”,”mediaWidth”:26,
“tdMaxWidth”:786}
–>
<div class=”wp-block-media-text is-stacked-on-mobile” style=”grid-template-columns:26% auto;max-width:786px”><figure class=”wp-block-media-text__media”>
</figure><div class=”wp-block-media-text__content”><!– wp:paragraph {“placeholder”:”Content…”} –>
This is changing the alignment and presentation of the block on the website. We can manually replace the code, but that’s tedious. Is this code from TagDiv (I assume so based on the td referrer)? How can we make sure this isn’t automatically added in the future?
Thanks in advance.
Hello!
I’ve tested it, and it works great: https://app.screencast.com/cbv9yDF6PaoQB. They are aligned as in the editor. Can you let me know the settings you’ve applied there?
Thank you!
Hey Bettina,
Thanks for your response.
Here is how it appears when we insert this block with exactly the same settings now compared to blocks we inserted with the same settings beforehand: https://shottr.cc/s/Muu2/SCR-20250212-h5u.png (new blocks)
https://shottr.cc/s/MhqY/SCR-20250212-h6x.png (previously inserted blocks)
The settings are all the same:
https://shottr.cc/s/M543/SCR-20250212-h8p.png (new blocks)
https://shottr.cc/s/MhqY/SCR-20250212-h6x.png (previously inserted blocks)
The only way I can make them react in the same way is if I manually remove the “,“TDMAXWIDTH”:786}”
But it would be much better if this wasn’t being automatically inserted (like it used to be).
Here’s a page where they are misaligned: https://dutchreview.com/expat/esims-in-the-netherlands/
And a page where they display correctly: https://dutchreview.com/expat/best-banks-expats-netherlands/
Can you please assist?
-
This reply was modified 1 year by
DutchReview.
Hello!
The problem could be with images that are not the same size. Also, you can adjust the media width value. Are they looking the same as in Gutenberg? Please also check the width of your rows in the tagdiv Composer because I see they are different.
Thank you!
Hi Bettina,
No, the images have never changed this. Again, the only difference here is the extra piece of code “,“TDMAXWIDTH”:786}”.
It’s the same template, so the row size in TagDiv Composer is the same for both articles. Can you tell me where that “,“TDMAXWIDTH”:786}” is being set from and why it is suddenly appearing?
Thanks!
Hello!
I’m not sure because, for me, it doesn’t appear that code. We want to investigate your issue to see what is happening.
Please get in touch with us via email at contact@tagdiv.com and provide the following:
– admin URL and credentials
– a link to this topic to identify you
Thank you!