Posts tagged shailan.com

Facebook meta tags version 1.0 release notes

We have recently updated our Facebook Meta Tags for WordPress plugin to version 1.0. With this new version, you can easily define a default site image and homepage description using plugin options page. New Feature Highlights Default Site Image Facebook meta tags plugin normally uses post featured image as a sharing image. For posts that […]

Shortcode to display content for Mobile or Desktop visitors only

Did you know that WordPress has a mobile detect function already. In this post we will show you how you can use wp_is_mobile function to create a simple shortcode to hide certain parts of your posts from mobile visitors or the other way.

WordPress: Adding column shortcodes to your theme

Adding Column Layout Shortcodes to Your WordPress Theme

WordPress: Hide/Disable Admin bar for all users except admins

Admin bar is the dark bar with buttons to add content, and manage updates, comments. For regular users, this bar sometimes becomes confusing. To easily hide admin bar, add the following snippet to your functions.php file: function remove_admin_bar() { if (!current_user_can(‘administrator’) && !is_admin()) { show_admin_bar(false); } } add_action(‘after_setup_theme’, ‘remove_admin_bar’);

WordPress: Prevent admin access for logged in users

For some webdesign projects, you may need to prevent admin access for logged in users. To do so, simply paste following snippet to your functions.php file: function prevent_admin_access() { if ( false !== strpos( strtolower( $_SERVER[‘REQUEST_URI’] ), ‘/wp-admin’ ) && !current_user_can( ‘administrator’ ) ) wp_redirect( home_url() ); } add_action( ‘init’, ‘prevent_admin_access’, 0 ); This code […]

Removing updates menu from WordPress admin panel

You can use the remove_submenu_page function to remove updates menu from WordPress admin panel. Here is the snippet: add_action( ‘admin_init’, ‘wpse_38111’ ); function wpse_38111() { remove_submenu_page( ‘index.php’, ‘update-core.php’ ); } (ref: http://codex.wordpress.org/Function_Reference/remove_submenu_page)

WordPress SEO Resources

Codex: SEO For WordPress SEO tips from Yoast Top 5 WordPress Permalink Structures for SEO Optimizing WordPress tags Importance of keywords and key phrases in SEO Analysis

Nginx Resources

Nginx Setting up WordPress on Nginx Installing WordPress + Nginx Server (Minimal Configuration)

WebDesign Quality Checklist Pt.1

For success, quality is a must. So we are building our own web design quality checklist here. Make sure to follow us on improvements of the checklist.

Track your site performance on WordPress Dashboard

Google Analytics Dashboard is a WordPress plugin that adds analytics graphs right on your WordPress dashboard. Apart from a dashboard widget, it also gives you ability to see your post view statistics separately, on your “All posts” screen. Installing & Setting Up Google Analytics Dashboard Go to Plugins > Add New on your dashboard. Search […]

Mastering “.htaccess” file tricks for WordPress

.htaccess is a file used by Apache server, to over-write general rules for certain folders. Previously, we shared how to speed up your website using .htaccess file. With this post, we see there is more, awesome ways to manage your server rules and limits. Default WordPress .htaccess file # BEGIN WordPress RewriteEngine On RewriteBase / […]

How to fix plugin CSS issues using CSS overwrites

For some plugins you may need CSS styling to be changed, but if you change the plugin files, either you won’t update it, or you will lose your changes. I will show you a simple trick to overcome this problem using seperate stylesheets.



NS Weight Release