wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

Custom HTML block with googlemaps embed does not display map when added to a template

Open mgozdis opened this issue 1 year ago • 1 comments
trafficstars

Quick summary

Following guide for Embed From Google Maps, when added to a Page Template in an FSE theme such as Assembler, the map does not display and only the shortcode text displays.

User report: 7779609-zd-a8c

Steps to reproduce

  1. Create new Simple site with Assembler theme
  2. Edit the Pages template and Embed a Google Map and save the template
  3. Check a Page on the front end using the default Pages template and see the map is not displayed, but only the shortcode text: uLt8uj.png

What you expected to happen

The Google map should display

What actually happened

Only shortcode text is displayed

Impact

Some (< 50%)

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Simple

Logs or notes

This was tested on a Simple site only with Assembler theme. Adding the shortcode directly to a Page instead of a Template works.

mgozdis avatar Feb 22 '24 16:02 mgozdis

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 7779609-zen
  • [ ] 8085725-zen
  • [ ] 8212437-zen
  • [ ] 8340778-zen
  • [ ] 8347647-zen
  • [ ] 8570902-zen

github-actions[bot] avatar Feb 22 '24 17:02 github-actions[bot]

Could be related to https://github.com/Automattic/wp-calypso/issues/87911

rickmgithub avatar Feb 29 '24 08:02 rickmgithub

📌 REPRODUCTION RESULTS

  • Tested on Atomic – Replicated as per OP instructions

rickmgithub avatar Feb 29 '24 08:02 rickmgithub

A customer report here: #7944005-hc

isocialtish avatar Mar 26 '24 07:03 isocialtish

Another report here 8085725-zen

syhussaini avatar Apr 24 '24 14:04 syhussaini

Another case: 8212437-zd-a8c

devNigel avatar May 21 '24 01:05 devNigel

8212437-zen ( needs to be followed up)

mdtanjid0 avatar May 21 '24 02:05 mdtanjid0

Another case: 8340778-zd-a8c Shared workaround, seen here, which works when I tested it on one of my test sites.

janmckell avatar Jun 15 '24 17:06 janmckell

Another case: 8347647-zen Provided workaround

caitlindawn avatar Jun 19 '24 17:06 caitlindawn

This seems like it's a wider spread issue for other short codes in FSE templates. This user is unable to get the privacy short code for WordAds to display in a Single Post template using the Zoologist theme. I don't have any WordAds enabled sites to test, but the workaround is the same here, expect the short code needs to be added to each post rather than the Single Post template.

I was able to reproduce the issue on simple sites for both Crowdsignal and Google Maps short codes, using the Zoologist theme. 8570902-zen

CodeAllNightNDay avatar Aug 17 '24 18:08 CodeAllNightNDay