browser

WordPress: Open “Visit site” in a new window

add_action( ‘admin_bar_menu’, ‘customize_my_wp_admin_bar’, 80 ); function customize_my_wp_admin_bar( $wp_admin_bar ) { //Get a reference to the view-site node to modify. $node = $wp_admin_bar->get_node(‘view-site’); //Change target $node->meta[‘target’] = ‘_blank’; //Update Node. $wp_admin_bar->add_node($node); } To change any other item in the menu bar… Baca selengkapnya WordPress: Open “Visit site” in a new window

WordPress: Polldaddy Responsive

Currently, the standard Poll Daddy objects that I use are fixed width and not mobile responsive. Here are some simple CSS styles that I use to make Poll Daddy objects responsive to small devices. @media only screen and (max-width: 400px)… Baca selengkapnya WordPress: Polldaddy Responsive

Responstable – a Responsive Table Solution

Author: jordyvanraaij Source: tjoen <!DOCTYPE html> <html> <head> <meta charset=”UTF-8″> <!– Copyright (c) 2014 by Theun (http://codepen.io/tjoen/pen/LEpeq) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to… Baca selengkapnya Responstable – a Responsive Table Solution

Mac: GlimmerBlocker – Ad Blocker for Safari

The problem with other ad-blockers for Safari is that they are implemented as awful hacks: as an InputManager and/or ApplicationEnhancer. GlimmerBlocker is implemented as an http proxy, so the stability of Safari isn’t compromised because it doesn’t use any hacks.… Baca selengkapnya Mac: GlimmerBlocker – Ad Blocker for Safari

Conditionally Loading JavaScript and CSS in WordPress

It’s looks like kinda of cool thing, to have script that conditionally loading JavaScript and CSS in WordPress plugins or function. But, for the best way, in most flexible way, you don’t have to have script conditionally loading JavaScript and… Baca selengkapnya Conditionally Loading JavaScript and CSS in WordPress

Enable gzip compression

Compressing the static contents with [highlight color=”orange”]enable gZip compression[/highlight] will drastically change your site loading time. Its a good practice for general web development too. You just need to place below code in your [highlight color=”salmon”]htaccess[/highlight] file: <IfModule mod_deflate.c> #… Baca selengkapnya Enable gzip compression

Add Expires Headers

Setting the expire header to far future date will instruct your web browser to cache and serve those cached content until that expire date. You can [highlight color=”salmon”]add expires headers[/highlight] using some easy edits to your [highlight color=”orange”].htaccess[/highlight] file. <IfModule… Baca selengkapnya Add Expires Headers

Scroll to Top