Issue in content with line breaks in comments and woocommerce

Posted in: Newsmag
Post count: 42

Ok I tested this with a fresh install with only newsmag installed. So far I have only spotted the issue in comments and in woocommerce.

If I enter a comment like this one with the line break in between paragraphs:
https://www.dropbox.com/s/6o5ncabju4z10ks/Screenshot%202015-04-14%2014.44.37.png?dl=0

This is how it looks on the live site:
https://www.dropbox.com/s/4ap07fiqy8hyizu/Screenshot%202015-04-14%2014.46.18.png?dl=0

No like break. This makes long comments hard to read. And makes woo commerce product descriptions impossible.

This is not just my install since it is also happening on my localhost.

Post count: 9544

Yes, I had same issue with WooCommerce also ….

I ended up having to do double line breaks, and then for big breaks doing a common fix for the WP over-ride of removing double line breaks, of an ascii nonbreaking character on a line by itself…

Post count: 42

Yea, there needs to be a real fix for this one because I get a lot of comments and I don’t want to edit them. Plus the issue if you ever need to change themes, now there will be double line breaks.

Has this been reported in the past but not fixed?

Post count: 9544

I reported issue with 1.6, not sure if fixed in 1.7 as that crashed my server.

I “suspect” it has something to do with the divider line custom thing in the visual view, which can be disabled … search forum on that.

Right now I’m using the Free wooCommerce theme for testing on our business site. Using NewsMag for our magazines.

And having to remove the double spaces!

Post count: 6600

Hi,

We haven’t worked on this within latest theme update however we have this on our todo list and we will look into it as soon as possible.

Sorry for the inconvenience!
Thanks

Post count: 42

When is this going to be fixed? It is a basic thing to having a working website.

Post count: 6600

Hi,

Sorry for the delay!
I’ve investigated this and it seems this is the normal behavior of woocommerce comments system. Also tested this on a WordPress default theme and found the same behavior, the comment form parses the text and removes empty spaces and the
tag is also removed.
You can also test this on a default WordPress theme.

Sorry for the inconvenience!
Thanks

Post count: 9544

FYI, my issue with the line breaks was for the “product description box”; and is no longer an issue it looks like.

I don’t use comments in WooCommerce, so never ran into that.

Post count: 42

I will test it on my own server.

BUT what about post comments. That is my bigger concern. They all look crappy without the line breaks. I have tested this on other themes and the link breaks work, but not with newsmag.

Post count: 6600

Hi,

Not sure how this worked for you using other themes as I’ve also tested this on a WordPress default theme using the default WordPress comments system and had the same result: http://screencast.com/t/BLqo2Oc7UJnhttp://screencast.com/t/lu63fpkMJUJ

The newsmag theme also uses the default WordPress system which you could try to adjust for this. You could try this: https://codex.wordpress.org/Function_Reference/wpautop

Please also let me know of your tests so I can also do it on my side.

Thanks

  • This reply was modified 11 years by Lucian.
Post count: 42

I think you may be mis understanding and you proved what I was saying the problem is.

The issue is the CSS styling in Newsmag. In the default wordpress theme, in your screenshot, the comments properly had spacing between the paragraphs. However in Newsmag, because of the Newsmag CSS, there is no spacing between paragraphs for comments.

Post count: 6600

Hi,

You’re right I did misunderstood you. I tooth you refer to the fact that when you add line breaks into the comments, like this: http://screencast.com/t/U3OtfG8BLh you expect that those spaces/line breaks should not be removed when the comment is posted, however it dose: http://screencast.com/t/Qc7W3HWO and this is how WordPress’s comments system works.

I understand now, sorry for misunderstanding you!
The theme dose add style to the posted comments which is changing the space between comment line by removing this margin present in the default WordPress’s themes: http://screencast.com/t/pWrGsm1F

To fix this just use this custom css code in your custom ccs section in theme panel and adjust the margin value as you like it: http://screencast.com/t/w7gKOhr0TBQQ

.comment-list .comment-content p {
margin: 30px 0px;
}

Sorry for the inconvenience!
Thanks

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newsmag’ is closed to new topics and replies.