January 24, 2017 at 12:39 pm
Thanks for the workaround and for finding the bug. I can confirm that a captioned image as the first item does indeed break the markup. It is actually a (presumably unintentional) quirk of the WordPress wp_autop() function that results in this error – so in a sense it’s not the “fault” of CommentPress, but it’s also not the “fault” of WordPress either! Quirks are unavoidable. I will post a fix for this in due course.
See in context
January 24, 2017 at 10:06 am
Hurray, I found a kludge! On both pages, the image was the first element. When I precede the image with “<p><span></span></p> the error disappears. The display does not change. If, however, I only insert <p></p> it doesn’t help.
January 24, 2017 at 8:50 am
Hi Ralph, can you email me please? I have an idea why this might be happening, but I’d like to see what the editor really shows and how the caption is placed in the flow of the text. Comments are a bit of an unwieldy way to manage this!
January 24, 2017 at 6:36 am
I solved the button problem in the Flat them by moving them to the right, so the comment button no longer obscures text.
But now I have a real problem: Being obsessive compulsive I W3 validated the html on all 135 pages of my online eBook.After a few minor corrections, they all passed – except two! Both showed the error:
Error: No p element in scope but a p end tag seen.
Both occurred with the first of two captioned illustrations (the only two pages with two illustrations). The source code reads:
<!– cp_caption_start –><span class=”captioned_image alignleft” style=”width: 400px”><span id=”attachment_2888″ class=”wp-caption”><img class=”size-full wp-image-2888″ src=”http://www.stuehlingen.online/Book/wp-content/uploads/2017/01/BusColAbs-e1485171019750.png” alt=”Business mix, absolute” width=”400″ height=”282″ /></span><small class=”wp-caption-text”>Figure 8. Absolute commercial pattern of 34 most active merchants.</small></span><!– cp_caption_end –></p>
And it is the unpaired </p> at the end that triggers the error.
In the page editor it looks thus:
[caption id="attachment_2888" align="alignleft" width="400"]<img class=”size-full wp-image-2888″ src=”http://www.stuehlingen.online/Book/wp-content/uploads/2017/01/BusColAbs-e1485171019750.png” alt=”Business mix, absolute” width=”400″ height=”282″ /> Figure 8. Absolute commercial pattern of 34 most active merchants.[/caption]
Without a trailing </p>.
In the WP forum they are telling me that the problem must be due to the plugin.
January 17, 2017 at 9:34 am
Hi Stacy, I’m not qualified to advise on legal matters, but perhaps one solution might be to make your website private so that only your students can view content when logged in? There are plugins such as Restricted Site Access that can make this happen.
January 16, 2017 at 10:08 pm
I’m interested in using this, but I don’t understand how the text is used.
For example, if I wanted to use an article from the web, I couldn’t just post it for my students. I’d have to get written permission to copy it so I could have it on my blog.
How does this work? I really like the idea, but I don’t know how to put it to use without violating copyright laws.
January 13, 2017 at 8:10 am
This website currently uses the “Modern” theme supplied with the plugin. I’d still be interested to hear why you think the button in the “Flat” theme is problematic.
I don’t know any particularly good ones, but I’m sure you can search for a relevant tutorial.
January 13, 2017 at 6:55 am
The comment button is floating, so when users scroll, it obstructs parts of the rightmost body text. I notice that the comment press website doesn’t display the comment button. How did you get rid of it? Also, where is the CSS tutorial, you are referring to?
January 4, 2017 at 6:20 am
Hi Ralph, you should be able to override anything in the default stylesheet by being more specific in targeting the element in your child theme’s stylesheet. A CSS tutorial will explain the mechanics of specificity to you – it’s a bit complex to explain in a comment reply.
Out of interest, what is your issue with the button overlapping the text? There should be plenty of screen space where it doesn’t do so.
Website content © CommentPress 2017. All rights reserved.