Diffee

Instant visual diffing with CSS blend modes! A handy little site built by Una Kravets that enables you to easily compare your development site against your production one. Oh and you can even test locally hosted addresses which is awesome. una.im/diffee Source: web design weekly

Get rid of Another update is currently in progress

I was trying to update my wordpress core to 4.5.1 but my system was missing some permissions, and now after giving correct permission, I cannot get rid of that message and I cannot upgrade. Tried to look for a .maintainance file but there is not. How do I update now? Thanks for help Source: https://wordpress.stackexchange.com/feeds

meta_query ‘compare’ => ‘!=’ not working

I am using a custom post-type, in post there are a checkbox meta field for featured post. So there are two scenarios. First with featured posts Second with non featured When I called featured posts with meta_query its result 100% perfect. Here is my code: $c_clients_args = array( ‘post_type’ => ‘clients_testimonials’, ‘posts_per_page’ => 6, ‘order’ => ‘ASC’, ‘meta_query’ => array( array( ‘key’ => ‘c_client_feature’, ‘value’ => ‘on’ ) ) ); $c_clients_result = new WP_Query($c_clients_args); if($c_clients_result->have_posts()) : while($c_clients_result->have_posts()) : $c_clients_result->the_post(); // My result endwhile; endif; But when I call non featured…

Web Design Weekly #232

Headlines UI development as a first-class citizen The single hardest part of front-end development at any scale is making changes to code and understanding all of the resulting visual and behavioral effects that will occur across the application. Once again, wise words by Adam Morse. (mrmrs.io) Collect customer data with one API then send it anywhere.​ ​Companies who want to reclaim hundreds of hours spent managing and collecting customer data trust Segment to handle this for them. Built by developers for developers, Segment helps businesses of all size build great…

Add aditional class to get_avatar when showing image

I want to add bootstrap img-responsive and img-rounded classes to avatar image when displaying one. But for some reason the class is not displayed when using get_avatar. By WordPress codex there is an attributes list that you can use in get_avatar to alter the function but my doesn’t pickup class array list. Here is current code that i use. get_avatar( $current_user->user_email, 128, null, null, array(‘class’ => array(‘img-responsive’, ‘img-rounded’) ) ); By explanation last parameter is arguments array in which you can use size , height , width etc… among those…

Remove the link from the thumbnail and product title on woocommerce

Where exactly in the file structure can I find and edit the markup so that I remove that a href within the thumbnail and product title. I tried searching the template files but can’t seem to find it. It’s calling or echoing this template part (<?php wc_get_template_part( ‘content’, ‘product’ ); ?>) but there wasn’t any markup showing the thumbnail or product title. <?php $args = array( ‘post_type’ => ‘product’, ‘post_per_page’ => 12, ); $crate_products = new WP_Query ( $args ); if ( $crate_products->have_posts() ) : while ( $crate_products->have_posts() ) :…

Undefined offset: 0

Here is my PHP function: function getUserIDandPush($ul){ global $table_prefix; // Prefix for Database table global $user_login; global $wpdb; // WordPress WPDB database method $dt = $table_prefix; //Tables Prefix $as = $wpdb->get_results(‘SELECT * FROM ‘.$dt.’users WHERE user_login = « ‘.$ul.' » ‘); $usID = $as[0]->ID; wp_set_current_user($usID, $ul); wp_set_auth_cookie($usID); do_action(‘wp_login’, $ul); } The issue is that $as[0]->ID returns Undefined offset: 0, I’m not sure why is this returning that. The function works and does exactly what I want. But, why this error occurs? Seeking some learning.. Source: https://wordpress.stackexchange.com/feeds

Web Design Weekly #231

Headlines Future CSS Josh Marsh looks into the current developments in modern front-end development and the direction that CSS is headed. He also dives into a potential CSS concept that takes inspiration from the JavaScript landscape. (medium.com) WordPress 4.5 “Coleman” (poststatus.com) ​Get a job at a top company ​Want to work on more exciting projects? Join Hired to start getting offers from top tech companies. You’ll get salary & equity upfront on every offer, and you’ll get a $1,000 signing bonus on top as a thank you! (hired.com) Articles Why…

Add div to specific sub-menu

I researched in google, yandex but had no success. With this code I can set a div to sub-menu but this code add to all sub-menus, I just need to add div to specific sub-menu. class Megratron_div extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat(« t », $depth); $output .= « n$indent<div id=’megatron’><ul class=’sub-menu’>n »; } function end_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat(« t », $depth); $output .= « $indent</ul></div>n »; } } ¿How can I do that? I really appreciate your…