Not able to override plugin’s default css rules

If you want to do it this way, it has to look like the following: add_filter(‘style_loader_src’, ‘wpse127340_replace_stylesheet’, 10, 2); function wpse127340_replace_stylesheet($src, $handle){ if (‘your-plugin-script-handle’ == $handle) return get_template_directory_uri().’/css/themes-copy-of-plugin.css’; return $src; } Replace your-plugin-script-handle and themes-copy-of-plugin.css with what you want it to be.

Adding first and last classes to three column layout in Bones boilerplate

I’ve just managed to resolve this now. This <?php $counter = 1; //counter tracks the number of the post we’re on ?> needed to be above <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query(‘showposts=3’ . ‘&paged=’.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> (not below). End code that works correctly is:- <?php $counter = … Read more

Adding elements to wp_list_pages (within , but before )

If I Understood your question right, instead of wp_list_pages, you can use a custom query using get_pages e.g. $args = array( ‘sort_order’ => ‘ASC’, ‘sort_column’ => ‘menu_order’, ‘hierarchical’ => 1, ‘exclude’ => ”, ‘child_of’ => 0, ‘parent’ => -1, ‘exclude_tree’ => ”, ‘number’ => ”, ‘offset’ => 0, ‘post_type’ => ‘page’, ‘post_status’ => ‘publish’ ); … Read more

Block wordpress style for my plugin admin page

The admin stylesheets combines rules for everything: tool bar, left menu, footer and some common elements like tables and forms. You cannot disable just a part of it. If you want to apply your own rules, use a higher specificity in your CSS rules. Normally, all plugin pages use the same wrapper element: <div class=”wrap”> … Read more