• I was testing my site, adding different type of product and different text, when i found that the text editors ( Normal / Rich textarea / Teeny Rich textarea) has some serious bug!!!

    I copy pasted some text some online that contain different formating, text color etc,( Text copied on this link
    “RARE Harry Potter Platform 9 3/4 London to Hogwarts Train Ticket
    BRAND NEW
    Key Features:- ……”)

    When publish, all the layout of the product page is f*ck up. Here how the formatting look like

    Do someone has any suggestions? or hacks for this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The code you copied most likely has html formatting in it including </div>. You’ll need to edit and remove all random code. From now on you should paste everything as plain text and then format it yourself. When copying code from other websites you are likely to end up with a lot of HTML junk with can really mess with your site.

    Thread Starter hassimkhan

    (@hassimkhan)

    @anphira ya i was aware of this problem with html formatting, i knew it was this causing the break. However, the problem is that i have enable front end adding of products, this means any user can add a product from my site.

    I should cater for all possibility, if the user use html or <div> or anything that will break the layout, the code should be remove and transform into plain text.

    If there a way to transform the text entered into plain text using ( Normal / Rich textarea / Teeny Rich textarea)

    @hassimkhan — there are settings in WordPress to completely disable the “visual” editor (not easy one click settings, but there are ways to do it). There are also plugins like Advanced Custom Fields which allow you to add various data entry fields to certain post types. Their text area field has a few different settings for what is allowed. You would have to integrate in the new fields with your theme / child theme.

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

The topic ‘woocommerce layout bug!!!’ is closed to new replies.