Home›Forums›General Support – NOT for Volunteer and PTA plugins!›Program/Event Details (Sign-up Sheets)
Tagged: PTA Sign-up sheets
- This topic has 4 replies, 2 voices, and was last updated 8 years, 7 months ago by Matthew Baynard.
-
AuthorPosts
-
-
September 1, 2015 at 8:55 AM #5318Matthew BaynardParticipant
I’m using the optional Program/Event Details feature but when the program/event details display on the site, the paragraphs are not word wrapping even when it displays properly inside the Edit Sign-up Sheet.
Not sure if this is a setting somewhere or have I missed a formatting step.
Matt
-
September 1, 2015 at 9:51 AM #5320Stephen SherrardKeymaster
It could be any of a number of things, but I don’t think any of them have to do with my plugin. The text editor for the details is the built-in WordPress editor that I call on that page. HTML tags should be preserved, for things like paragraphs, line breaks, headings, etc. I do sanitize the field before saving and on output, for security purposes, to remove any scripts, but that is with a standard WordPress function as well.
I just tested it with a large amount of random text, arranged in several paragraphs, and it works just fine.
Here are some possible things to look at:
Switch from “Visual” editor to the “Text” editor, and see what html tags are surrounding your paragraphs. If you copied and pasted text from another web site, or (even worse) from MS Word, then there may be a LOT of extra formatting tags surround your text, much of which will be gibberish (from Word especially), and you may to strip out all of those, or copy again and paste as plain text. But, make sure you see paragraph tags, like this:
<p>your paragraph</p>
around your paragraphs. There used to be a setting in older versions of WordPress to automatically convert line breaks to paragraphs in the editor, but I don’t think that setting is in the admin options any more.Depending on how your theme formats paragraphs and line breaks, this could be important. Try switching to a default theme, like Twenty Twelve, to see if the problem goes away. If it does, you’ll know that it’s something in your theme that doesn’t like some of the html tags in your content, and you may need to create some custom CSS to override your theme settings for the details section output.
Also, when you are viewing the sheet on the public side, use the “inspect element” feature of your browser, or “view source”, and look at the section where the details are displayed to see what kind of tags are being output around your text. Depending on your browser, or if you have developer extensions, you can also see the CSS being output for each element when you use the inspect element feature. The CSS will be generated by your active theme.
That’s about all I can do from here without having access to your site.
At this point, I don’t believe this is a plugin issue, since I can’t reproduce the problem and have no other reports of similar issues at this time.
-
September 1, 2015 at 10:06 AM #5322Matthew BaynardParticipant
Stephen
Thank you for the feedback. The text is formatted correctly and is below. The text was typed in with no formatting other than the html added.
The page is at http://troop44bushkill.org/NewSite/troop-44-sign-up-sheets/?sheet_id=1 if you would like to see how the text is not wrapping.
<p>The Aviation campout at Braden Airport is right around the corner. It is a great merit badge that includes an actual ride on a plane! 🙂 Please let us know if you are interested in taking part in this event. You can respond to this email or sign up Tuesday at the troop meeting if you are interested. </p>
<p>We will all meet at the airport at 3800 Sullivan Trail, Easton PA on the evening of Septmeber 18th at 6pm. This is an open campout so scouts can leave and return as needed for other planned activities. More details will follow closer to the campout. </p> -
September 1, 2015 at 10:23 AM #5324Stephen SherrardKeymaster
I inspected the HTML on your pages generated by my plugin, and the problem is you have
<pre></pre>
tags around the shortcode on your volunteer page… meaning you probably copied the shortcode from a doc page or somewhere where I had it wrapped in code or pre tags to display as code, and those also got copied (but you can’t see them in visual mode).Edit the page where you have the shortcode, switch to text mode, and remove the pre tags from around the shortcode, and your problem should go away.
-
September 1, 2015 at 12:42 PM #5326Matthew BaynardParticipant
You sir are my hero.
-
-
AuthorPosts
- You must be logged in to reply to this topic.