michaelphipps
Forum Replies Created
-
I’ve just implemented Curtiss’ suggestion (#2) and it works perfectly.
Is it possible to get this into the plugin to avoid the change being overwritten when the plugin is updated?
Do we need to submit a patch or something? How can we help fix this for all users?
Forum: Plugins
In reply to: [Bulk Password Reset] Conflicts with Optimize Press 2Ok – I found if I comment out the wp_enqueue_style(‘dashboard’) and wp_enqueue_script(‘dashboard’) that the conflict disappears
function do_css() { // wp_enqueue_style('dashboard'); wp_enqueue_style('thickbox'); wp_enqueue_style('global'); wp_enqueue_style('wp-admin'); wp_enqueue_style('bprextra-admin-css', plugin_dir_url( __FILE__ ) . 'bulk_password_reset.css'); } /** * @desc Load the plugin related javascript */ function do_script() { wp_enqueue_script('postbox'); // wp_enqueue_script('dashboard'); wp_enqueue_script('thickbox'); wp_enqueue_script('media-upload'); }
I don’t understand why dashboard is required in the first place? Is it safe to remove? The plugin seems to work correctly without it…
Can you clarify what problem you are having?
May I suggest the following change to your code:
<?php $counter = 1; ?> <?php $otherFeaturedPost = new WP_Query(); $otherFeaturedPost->query('showposts=4&offset=0'); ?> <?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?> <a href="#fragment-<?php print $counter; ?>"> <?php the_post_thumbnail( array( 'class' => 'emadsss5' )); ?> <span><?php the_title(); ?></span></a> <?php $counter++; endwhile; wp_reset_query(); ?>
Forum: Plugins
In reply to: Woocommerce Single post view customizationMight be too late for Wudza, but for anyone else who has this problem, add this to the shortcode to remove the style:
[add_to_cart id="XX" style=""]
You can pass your own css style info to format the button like this:
[add_to_cart id="XX" style="padding:10px; background:#e0e0e0"]
I hope it helps.
Forum: Fixing WordPress
In reply to: Visual Editor Not Working After 3.3 UpgradeBefore you waste hours switching off / on plugins, check the javascript debugger in your browser!
For me, it turned out TinyMCE was looking for a missing en.js file (non standard) instead of wp-langs-en.js
I just copied the wp-langs-en.js file to en.js and the visual editor came back. There’s some more detailed instructions here: https://www.ads-software.com/support/topic/visual-editor-not-working-mimicing-html-editor-blanking-out-no-tool-bar
Forum: Fixing WordPress
In reply to: Contributors to add images and links to Blog – How to set this up?Out of the box, you can’t currently do this with WordPress, however you can use the Role Manager Plugin and enable permission for contributors to upload files.
https://sourceforge.net/projects/role-manager/
Works a treat!