Wednesday, March 21, 2012

WordPress Hacks to Style Out Your Blog Theme

WordPress Hacks to Style Out Your Blog Theme

It seems that almost every third WordPress user has encountered with the issue: hack or not to hack? Actually, this is quite rhetorical question and it is hard to give a precise answer. WordPress hacks allow you to make really unique things with your WordPress website but require having certain coding and programming skills. It is obvious thing that many WordPress users often want to customize certain design elements of their website but don’t know how to do that. Yeah, details are important and that’s why some smart guys have created WordPress theme hacks that could change your blog design with the help of some little tricks. Of course we are always glad to hear about your favorite theme hacks so, feel free to tell us about it at the comments section.

Disabling WordPress plugin deactivation and theme changing

add_filter( 'plugin_action_links', 'slt_lock_plugins', 10, 4 ); function slt_lock_plugins( $actions, $plugin_file, $plugin_data, $context ) { // Remove edit link for all if ( array_key_exists( 'edit', $actions ) ) unset( $actions['edit'] ); // Remove deactivate link for crucial plugins if ( array_key_exists( 'deactivate', $actions ) && in_array( $plugin_file, array( 'slt-custom-fields/slt-custom-fields.php', 'slt-file-select/slt-file-select.php', 'slt-simple-events/slt-simple-events.php', 'slt-widgets/slt-widgets.php' ))) unset( $actions['deactivate'] ); return $actions; }

Read more about WordPress Hacks to Style Out Your Blog Theme

0 comments:

Post a Comment