collinsavenue
Forum Replies Created
-
Forum: Plugins
In reply to: [User Role Editor] I lost my rollCrap, same thing just happened to me, I clicked reset shop manager and it deleted it, so now even as admin I have no access to some of my plugins.
Need it also.
Forum: Plugins
In reply to: [WooCommerce Ajax Cart Plugin] Disable + and – signVery cool, works great. Thank you ??
Oh noo, you were right, there was another settings page where I can set my form as a fallback if no forms found. Works fine now. Thanks.
No, unfortunately not. Tried that.
Also tried deleting <option value=””>–</option> so that my form would be visible by default when I open post but that’s only cosmetic, it does not save the option to database. Only when I click save.Somehow I need to change the option value from <option value=””>–</option> to my id form by default but no idea how.
/** * Form selection meta box in post types * * Registered via $this->add_meta_box_form_select() * * @global object $post */ function form_selection_metabox() { global $post; $forms = get_posts( array('post_type' => 'wpuf_forms', 'numberposts' => '-1') ); $selected = get_post_meta( $post->ID, '_wpuf_form_id', true ); ?> <input type="hidden" name="wpuf_form_select_nonce" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" /> <select name="wpuf_form_select"> <option value="">--</option> <?php foreach ($forms as $form) { ?> <option value="<?php echo $form->ID; ?>"<?php selected($selected, $form->ID); ?>><?php echo $form->post_title; ?></option> <?php } ?> </select> <?php } /** * Saves the form ID from form selection meta box * * @param int $post_id * @param object $post * @return int|void */ function form_selection_metabox_save( $post_id, $post ) { if ( !isset($_POST['wpuf_form_select'])) { return $post->ID; } if ( !wp_verify_nonce( $_POST['wpuf_form_select_nonce'], plugin_basename( __FILE__ ) ) ) { return $post->ID; } // Is the user allowed to edit the post or page? if ( !current_user_can( 'edit_post', $post->ID ) ) { return $post->ID; } update_post_meta( $post->ID, '_wpuf_form_id', $_POST['wpuf_form_select'] ); }
Forum: Plugins
In reply to: [Yoast SEO] Is Yoast compatible servers PHP 7?For me works fine on 7 for few months now.
Awesome, works perfect, thank you Rene.
Forum: Plugins
In reply to: [WP Dashboard Notes] Display image?Beautiful ?? , exactly what I was looking for.
Thank you.
li#wp-admin-bar-all-in-one-seo-pack { display: none; }
My bad, at first look I missed the class.
I run a customized multisite with admin to my users and want to reduce clicking to second options page just to set the front page displays field.
Forum: Fixing WordPress
In reply to: Serif lite theme problemForum: Fixing WordPress
In reply to: How to disable blue :active css in admin?Got it
a:active, a:focus, .button {box-shadow: 0 0 0px!important;}
Forum: Fixing WordPress
In reply to: How to disable blue :active css in admin?This is an admin side. Anyone can replicate this by clicking any wordpress admin button. I have tried chrome “inspect element” and “firebug” but still can’t find the class.
Thanks
EDIT: for example go to pages and then click the “apply” or “filter” button with right mouse button and you see the blue “border”. That is the one I cannot remove.
Forum: Fixing WordPress
In reply to: How to disable blue :active css in admin?Thanks, but there is a link on the top.
I’ll post it again.