• Resolved Cloud Stone

    (@cloudinstone)


    Let me explain this problem by an example:

    1. Set title template like this: STRING_BEFORE%%var%%STRING_AFTER and save it.
    2. The fancy js in plugin will render %%var%% tag as a purple label.
    3. The PROBLEM: the real template in input area will add extra whitespace we don’t expected: STRING_BEFORE %%var%% STRING_AFTER

    Is this a BUG or I missed anything?

    BTW: I used latest WordPress 5.2.2 and Yoast 11.7.

Viewing 4 replies - 1 through 4 (of 4 total)
  • After the JS turns variable snippet into a purple label can u perhaps remove the added space?

    Just curious, because in my descriptions for woocommerce products I use %%title%% - Price: $%%cf__price%% - Categories: %%ct_product_cat%% - Protocols: %%ct_pa_proxy-protocols%% and it outputs the product price with $ in front of it without a space as expected.

    Thread Starter Cloud Stone

    (@cloudinstone)

    My english is not very good, I can’t explain it clearly. I just suggest that maybe the author can consider add a toggle for us to disable purple lable, not everyone like it.

    We checked on the output of a page’s title and whether additional spaces were being added and after testing the title we were unable to replicate the issue you described. We used the site title variable in the title in the example (see here) and then added additional text after the site title variable and made sure there was no additional spaces in the editor.

    We then reviewed the source code of the page’s output and confirmed that there was no additional spaces being added into the source code that were not present in the snippet editor (see here).

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

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

The topic ‘Snippet variable whitespace BUG?’ is closed to new replies.