Posts

Showing posts from March, 2014

Sample Empty Table Markup

< table > < thead > < tr > < th > </ th > < th > </ th > < th > </ th > < th > </ th > </ tr > </ thead > < tbody > < tr > < td > </ td > < td > </ td > < td > </ td > < td > </ td > </ tr > < tr > < td > </ td > < td > </ td > < td > </ td > < td > </ td > </ tr > < tr > < td > </ td > < td > </ td > < td > </ td > < td > </ td > </ tr > </ tbody > </ table >

How to get title from IFrame document

HTML code :   < div id = "main-content" > < iframe name = "cstage" src = "home.html" width = "100%" height = "100%" id = "main-content-iframe" frameborder = "0" > If you 're seeing this message, it means IFrames are not supported; Please enable IFrames or upgrade to a compatible browser that supports IFrames.</iframe> </div> jQuery code:   alert($(' #main-content-iframe').contents().find("title").text());     Note: Make sure home.html come from the same domain as your main page.

How to Disable Theme and Plugin Editors from WordPress Admin Panel

By default WordPress allows users to edit the theme and plugin codes through the admin panel. While it is a handy feature, it can be very dangerous as well. A simple typo can end up locking you out of your site unless ofcourse you have the FTP access. To prevent clients from screwing up the site, it is best to disable the theme and plugin editors from the WordPress admin panel. In this article, we will share with you a one line code that will disable theme and plugin editors functionality from WordPress. All you have to do is open your wp-config.php file and paste the following code: define( 'DISALLOW_FILE_EDIT', true ); 1. Removing theme editor link from menu using remove_action() function tcb_remove_editor_menu() { remove_action('admin_menu', '_add_themes_utility_last', 101); } add_action('admin_menu', 'tcb_remove_editor_menu', 1); 2. Removing theme editor link from menu using remove_submenu_page() add_action('admin_i