steedancrowe
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Gravity Forms - Placeholders add-on] Text disappears on click into the fieldbehladesign and anyone else,
I got this functionality working. Change the .each(function() in gf.placeholders.js to this:
.each(function(){ var $field = $(this); var id = this.id; var $labels = $('label[for=' + id + ']').hide(); var label = $labels.last().text(); if (label.length > 0 && label[ label.length-1 ] == '*') { label = label.substring(0, label.length-1) + ' *'; } $field[0].setAttribute('placeholder', label); $(this).focus( function(){ $field[0].setAttribute('placeholder', ''); }); $(this).blur( function(){ $field[0].setAttribute('placeholder', label); }); });
Found a solution to get Simple Tags meta box to show on custom post types.
Find this section of code in inc/class.client.php and update with your “Custome-Post-Type” as shown below.
function registerTagsForPage() { register_taxonomy_for_object_type( 'post_tag', 'Custome-Post-Type', 'page' ); } /** * Add page post type during the query * * @param object $query * @return void * @author Amaury Balmer */ function includePagePostType( $query ) { if ( $query->is_tag == true ) { if ( !isset($query->query_vars['post_type']) || $query->query_vars['post_type'] == 'post' ) { $query->query_vars['post_type'] = array('post', 'page', 'Custome-Post-Type'); } elseif( isset($query->query_vars['post_type']) && is_array($query->query_vars['post_type']) ) { $query->query_vars['post_type'][] = 'page'; } } }
Has anyone resolved this issue? I’m having the same problem. I’m looking everywhere and can’t figure it out. Version 1.7.4.4 never had this problem. What version are you running now? I’m running 2.0-beta9… the old version won’t even work with WordPress 3.1
Viewing 3 replies - 1 through 3 (of 3 total)