[How to] Add Column Shortcodes to WordPress
WPAssist / Theme Development - January 23, 2024Adding Column Layout Shortcodes to Your WordPress Theme
Adding Column Layout Shortcodes to Your WordPress Theme
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); […]
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( […]
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)
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 […]
.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 […]
Google Images is an awesome place to find great pictures. However, it can be a real trouble for sites, depending mainly on image based content like wallpaper sites and stock image websites. If you are using WordPress as your CMS, then you can easily prevent […]
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.
WordPress dashboard is a collection of tools that gives you quick acess to most used areas of your blog. It also acts as a feed reader for latest wordpress news and latest plugins.
For WordPress permalink structure to work on your localhost installation, your wamp/lamp installation must have mod_rewrite module enabled. To enable the module, simply find your httpd.conf file, search for mod_rewrite and remove the hash (#) in front of the line. Save your configuration file and […]