Showing posts with label WordPress. Show all posts
Showing posts with label WordPress. Show all posts

Monday, July 28, 2014

Protect wp-config.php with .htaccess



Adding this to your .HTACCESS will prevent access to your wp-config.php file

Prasath Mani
Posted By Unknown11:08 PM

Thursday, August 1, 2013

Hide specific plugin from plugin installed list in WordPress


Add bellow code into functions.php file function hideplugin() { global $wp_list_table; $hidearr = array('plugin-folder/plugin.php'); $myplugins = $wp_list_table->items; foreach ($myplugins as $key => $val) { if (in_array($key,$hidearr)) { unset($wp_list_table->items[$key]); } } } add_action( 'pre_current_active_plugins', 'hideplugin' );

Prasath Mani
Posted By Unknown7:03 PM

Saturday, May 11, 2013

How to add Typekit fonts on your WordPress theme


Typekit is a useful service which allow you to use countless different fonts on your website or blog. They do provide a WordPress plugin to easily add their fonts to your WordPress site, but there’s no built-in solution for integrating Typekit fonts directly to your theme. Here’s a recipe to do it. Edit the code below and update the .js file path on line 2. Then, simple paste it on your functions.php file. Save the file, and you're done!
function theme_typekit() {
    wp_enqueue_script( 'theme_typekit', '//use.typekit.net/xxxxxxx.js');
}
add_action( 'wp_enqueue_scripts', 'theme_typekit' );

function theme_typekit_inline() {
  if ( wp_script_is( 'theme_typekit', 'done' ) ) { ?>
   

Prasath Mani
Posted By Unknown5:14 PM