Peter Massey-Plantinga
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Accessibility] ScrollTo not being includedThey’re related, but they’re definitely separate issues.
I found this issue because we had a jQuery handler on an
<a href="#">element, which wasn’t firing because of this error. So I discovered this error because of the other one.Once this error is fixed, the call to jQuery(‘#’) doesn’t actually do anything but throw a few warnings (which still should be cleaned up for other developer’s debugging pleasure).
Forum: Plugins
In reply to: [WP Accessibility] ScrollTo not being includedscrollTo is also not being called correctly.
It should be:
$(document).scrollTo( inPageAnchor, {duration: 1000} );Forum: Plugins
In reply to: [CMS Tree Page View] Notice: trying to get property of non-objectI have a few custom post types, but I’m pretty sure I never added a CMS Tree Page View for them and they’re still active. Looks to me like the custom post types could be the reason, though.
btw, adding/removing a tree view on custom post types results in a lot of notices and a WSOD. After this, the tree view works fine, so it’s not super important, but could be worth looking into.
Forum: Plugins
In reply to: [Magazine Columns] header in column causes spaceSorry, bad code. Update:
function fix_columns( $content ) { $content = preg_replace( '/(<p>)?((<\/div>)?<div class="column c\d">)<\/p>/', '\2', $content ); return $content; } add_filter( 'the_content', 'fix_columns' );Forum: Plugins
In reply to: [Magazine Columns] header in column causes spaceI’ve had these problems too.
I fixed it by adding this to my code:
function fix_columns( $content ) { $content = preg_replace( '/(<p>)?((<\/div>)?<div class="column c\d">)<\/p>/', '\2', $content ); } add_filter( 'the_content', 'fix_columns' );Perhaps this can be added to the plugin?
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] html5 validityAppreciated. Unfortunately, it seems as though instead of removing the
<a name=...>that I was referring to, the developers have changed the “name” to “id” on this element, which creates a different problem: there is now a duplicate id. The form which immediately follows this anchor has the same id. I suppose the easiest fix would just be to remove the id on either tag.Thanks for your help.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] html5 validityThanks so much!