- This topic has 12 replies, 3 voices, and was last updated 4 years, 1 month ago by
Ying.
-
AuthorPosts
-
February 16, 2022 at 1:27 pm #2121836
Jagmeet
Hi,
I have a preformatted block on a page (above the ToC), that keeps the spaces between lines on desktop, but when I view it on mobile, the line spaces are not there. The block does not preserve the formatting on the mobile devices.
The link is shared in the below.
What can I do to fix this?
Thanks!
February 16, 2022 at 1:37 pm #2121840Leo
StaffCustomer SupportHi there,
Not sure if I’m seeing the issue.
This is what I see on the desktop view:
https://www.screencast.com/t/uqNAXK8eAnd this is the mobile view:
https://www.screencast.com/t/MgMzUvbMBNThe space seems the same to me.
Can you elaborate?
February 16, 2022 at 1:42 pm #2121849Jagmeet
February 16, 2022 at 2:12 pm #2121868Leo
StaffCustomer SupportThat’s not what I’m seeing.
Can you disable any caching plugin or SG optimizer first?
February 16, 2022 at 2:31 pm #2121883Jagmeet
Done. I have purged the cache and disabled it.
I still see the line spaces on desktop site, but not on the mobile.
February 16, 2022 at 2:39 pm #2121892Leo
StaffCustomer SupportI still don’t see any line spaces on the desktop and am also seeing SG optimizer still activated:
https://www.screencast.com/t/TPZhoc7G6qI’ve hard cleared my browser cache and tried incognito mode.
February 16, 2022 at 3:11 pm #2121918Jagmeet
Can you try again now? I have deactivated and deleted the plugin from my site.
February 16, 2022 at 4:21 pm #2121957Ying
StaffCustomer SupportHi Jagmeet,
It seems working fine on both desktop and mobile now:
https://www.screencast.com/t/odcXM8hgFebruary 17, 2022 at 2:57 am #2122387Jagmeet
Yea, it is working fine now.
Seems like the caching plugin is minifying or something else to the preformatted block. Maybe if I exclude the preformatted HTML from minifying that would help. How to I find the preformatted HTML block code?
Thanks!
February 17, 2022 at 9:51 am #2123026Jagmeet
When I try to add <br> or <p> to preserver the formatting in the preformatted block, these tags get removed and everything gets squished together.
February 17, 2022 at 10:35 am #2123067Ying
StaffCustomer SupportAs Preformatted block is a WP core block, GP doesn’t have control over it.
Here’s its documentation:
https://wordpress.org/support/article/preformatted-block/And if you are having trouble with it, reach out to WP:
https://wordpress.com/support/wordpress-editor/blocks/preformatted-block/Thanks!
February 17, 2022 at 11:44 am #2123158Jagmeet
Thanks for the pointer.
February 17, 2022 at 12:06 pm #2123200Ying
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.