Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    It looks like there are <span> elements added to that text, and that’s causing the the font change. Removing those elements should fix the issue.

    Link to image: https://snipboard.io/027a6i.jpg

    Thread Starter craigmckee

    (@craigmckee)

    Yeah, this was done though just by copying the text from a webpage and pasting there. There is no option in my form to change the formatting so I wondered if I could “force” WordPress to ignore anything like this and stick with the site style?

    Hi,

    Text copied from the internet often have underlying code determining the text style, like the font family.

    You could reset this styling via customized CSS, but there is a cleaner and easier procedure.

    If you simply delete the copy/pasted text, and re-type it manually, the formatting should be removed. If you prefer, you can also strip the code by first pasting it here:
    https://www.striphtml.com/

    Thread Starter craigmckee

    (@craigmckee)

    Thank you for the reply, this is what I did (the ctrl shift v option) but my Vendors won’t I don’t think so this was why I wanted to force the issue if I can

    Hello there,

    Perhaps it would need a little time, but removing the <span> tag manually as mentioned previously will definitely help to resolve the issue.

    As a reference you can check this tutorial that is also helpful in this case.

    I hope this helps.

    • This reply was modified 2 years, 10 months ago by Igor H.
    Thread Starter craigmckee

    (@craigmckee)

    Thank you @ihereira I would be happy doing this but I don’t think I can expect my general users to eventually so this is why I was hoping to “force” the issue.

    Hi @craigmckee

    I don’t think I can expect my general users to eventually so this is why I was hoping to “force” the issue.

    I’m having difficulty understanding why would your users/customers edit your pages.

    While copy-pasting text to your product pages please make sure any underlying code is stripped off as explained above. This is the simplest way to avoid the current situation.

    Thanks

    Thread Starter craigmckee

    (@craigmckee)

    @margaretwporg thanks for the reply. I am trying to make a multi vendor marketplace type site so there will be lots of people adding different products. If they can all copy and paste into the product details and it keeps the formatting the site will be full of mismatched text etc which is something I’d like to avoid.

    Hi @craigmckee

    I am trying to make a multi vendor marketplace type site

    Thanks for clarifying! That makes perfect sense.

    In that case you can have two approaches:

    1. Instruct the users to remove formatting from any text before pasting

    2. Have a custom coded solution to not allow saving the content if it has underlying formatting (or programmatically stripping off formatting before saving)

    For assistance with customization with your site, we recommend reaching out to someone on our customizations page.

    Cheers

    Thread Starter craigmckee

    (@craigmckee)

    Thank you I feared that might be my only solution

    Hi @craigmckee

    Just to add, you might be able to find someone willing to share their knowledge in WooCommerce Slack Community – this is where open-source developers for WooCommerce, and many of our developers hang out: https://woocommerce.com/community-slack/

    Thread Starter craigmckee

    (@craigmckee)

    @maykato thank you, I appreciate it. I don’t mind “learning by doing” but some pointers are always helpful!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Force Default Style’ is closed to new replies.