• Resolved powerofwords3

    (@powerofwords3)


    Hi guys. In my Author Presence product, instead of text in the product descriptions, it replaces and puts a code. It sometimes showed the text before, but now just the code. Doesnt matter whether put it in Visual or Text editor, either doesnt work. (My Chrome is updated).

    Error without brackets: span data-mce-type=”bookmark” style=”display: inline-block; width: 0px; overflow: hidden; line-height: 0;” class=”mce_SELRES_start”

    The page I need help with: [log in to see the link]

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

    (@serafinnyc)

    Hi @powerofwords3 welcome to our forum. Are you pasting from a word editor your text? I know you said it doesn’t matter where you add it, visual or text but are you pasting this? If so that’s the cause.

    It’s best to use a text editor that doesn’t have hidden code in it. Like Sublime Text Editor or VSC – Visual Studio Code.

    if you know how to add code to your theme, this would go in the child theme, you could place it on your functions file and see if it strips the regex from your pasting.

    add_filter('content_save_pre', 'strip_tinymce_bookmarks');
    function strip_tinymce_bookmarks($content) {
    return preg_replace('/<span[^>]+data-mce-type="bookmark"[^>]*>.*?<\/span>/i', '', $content);
    }

    Let us know

    Hi @powerofwords3 ,

    It looks like the issue might be caused by styling or hidden characters getting copied over when you paste the text into the product description. The code you’re seeing is related to a bookmark element added by the editor, which often happens when copying and pasting from sources like Word documents or websites.

    To resolve this, I recommend trying the following:

    1. Paste as plain text: When pasting into the editor, use Ctrl + Shift + V (or Cmd + Shift + V on Mac) to paste without any styling. This will remove any hidden formatting.
    2. Clean up the content: If you’re still seeing code, try switching to the Text tab (instead of Visual) in the editor and remove any unwanted code manually.

    Thank you. Let us know how it goes!

    Thread Starter powerofwords3

    (@powerofwords3)

    Thank you – update from my developer – it is the theme and not this issue. It was not me that made it like that, it was fine before.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thank you for the update, and I appreciate you following up with insights from your developer.

    It’s good to hear that the issue has been narrowed down to the theme. Since theme-related conflicts can sometimes affect how WooCommerce functions or displays content, I’d recommend reaching out to the theme developer for further assistance on resolving this.

    If there’s anything else we can help with regarding WooCommerce core features, feel free to let us know — we’re happy to assist!

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

The topic ‘Product text disappears’ is closed to new replies.