• Hi,

    I am developing a block theme and I create a zip package by using the block theme utiliy (zip package)

    But when I compare the codes of zip package with original theme, some parts of the zip package are different than the original source.

    For example:

    Original:

    <!-- wp:post-title {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--medium, 6rem)"}}}} /-->

    The code conveted to in zip package:

    <!-- wp:post-title {"level":1,"align":"wide","style":{"spacing":{"margin":{"bottom":"var(\u002d\u002dwp\u002d\u002dcustom\u002d\u002dspacing\u002d\u002dmedium, 6rem)"}}}} /-->
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Farhad Sakhaei

    (@farhad0)

    @waleedwali
    Hi,

    Thank you for your reply,
    I used The “Export” feature in the Site Editor to create a zip package,
    Do you mean this or something else?
    I need to create a ZIP package based on current modifieds,
    Do those plugins do such things?
    Could you please mention the links of plugins?
    Thank you for your help

    Moderator bcworkz

    (@bcworkz)

    The differences you see (the \u002d\u002d stuff) are of no consequence. It just means the content was escaped in order to invalidate any malicious content that might have sneaked in. \u002d is just escaped hexcode for the - character. It’ll be interpreted the same as the original character.

    Thread Starter Farhad Sakhaei

    (@farhad0)

    @bcworkz
    Thank you for your support
    Yes, Got it,

    But I think it will decrease code readability and it makes it ugly ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Block theme export has different code’ is closed to new replies.