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(  
        unset( $actions['deactivate'] );  
    return $actions;  

* * *

Embed a Page inside a Page

* * *

How to change WordPress editor font

add_action( 'admin_head-post.php', 'devpress_fix_html_editor_font' );
add_action( 'admin_head-post-new.php', 'devpress_fix_html_editor_font' );

function devpress_fix_html_editor_font() { ?>

* * *

Change WordPress “from” email header

function res_fromemail($email) {
    $wpfrom = get_option('admin_email');
    return $wpfrom;

function res_fromname($email){
    $wpfrom = get_option('blogname');
    return $wpfrom;

add_filter('wp_mail_from', 'res_fromemail');
add_filter('wp_mail_from_name', 'res_fromname');

* * *

Recent Posts With Thumbnails In WordPress Without A Plugin

* * *

Display Random Posts in WordPress Without a Plugin

* * *

Customize WordPress login logo without a plugin

function my_custom_login_logo() {
    echo '

'; } add_action('login_head', 'my_custom_login_logo');

* * *

Show Related Post in WordPress Without a Plugin

Related Posts

    • '; while ($my_query->have_posts()) { $my_query->the_post(); ?>

* * *

How to highlight author comments in WordPress

  • user_id)
    $oddcomment = "authcomment";
    echo $oddcomment;
    ?>" id="comment"...

* * *

Displaying WordPress categories in a horizontal dropdown menu

// <![CDATA[
var mbA,mbT,mbTf,mbSf;
var mbR = [];

function mbSet(m) {
if (document.getElementById&&document.createElement) {
var m=document.getElementById(m);
mbR[mbR.length] = m;
var i;

if (!mbTf) mbTf=new Function('mbHT();');
if (!mbSf) mbSf=new Function('mbS(this);');
for (i=0;i<e.length;i++) {

for (i=0;i<m.length;i++) {

function mbHA() {
if (mbA) {
while (mbA) mbH(mbA);

function mbHT() {
if (!mbT) mbT=setTimeout('mbHA();', 0);

function mbTC() {
if (mbT) {

function mbS(m) {
if (mbA) while (mbA&&m!=mbA&&mbP(m)!=mbA) mbH(mbA);
else mbHE('none');

if (mbM(m)) {

function mbH(m) {
if (m==mbA) mbA=mbP(m);

function mbL(m) {
while (m && m.tagName != 'A') m = m.previousSibling;
return m;

function mbM(l) {
while (l && l.tagName != 'UL') l = l.nextSibling;
return l;

function mbP(m) {
var p = m.parentNode.parentNode;
if (p.tagName == 'UL') {
var i = 0;
while (i < mbR.length) {
if (mbR[i] == p) return null;
} else {
return null;
return mbL(p);

function mbSH(m,v) {

function mbHE(v) {

function mbHEV(v,e) {
for (var i=0;i

* * *

Don’t miss out these all-time favourites

  1. The best hosting for a WordPress website. Tap our link to get the best price on the market with 82% off. If HostPapa didn’t impress you check out other alternatives.
  2. Website Installation service - to get your template up and running within just 6 hours without hassle. No minute is wasted and the work is going.
  3. ONE Membership - to download unlimited number of WordPress themes, plugins, ppt and other products within one license. Since bigger is always better.
  4. Ready-to-Use Website service is the ultimate solution that includes full template installation & configuration, content integration, implementation of must-have plugins, security features and Extended on-page SEO optimization. A team of developers will do all the work for you.
  5. Must-Have WordPress Plugins - to get the most essential plugins for your website in one bundle. All plugins will be installed, activated and checked for proper functioning. 
  6. Finest Stock Images for Websites - to create amazing visuals. You’ll get access to Depositphotos.com to choose 15 images with unlimited topic and size selection.
  7. SSL Certificate Creation service - to get the absolute trust of your website visitors. Comodo Certificate is the most reliable https protocol that ensures users data safety against cyber attacks. 
  8. Website speed optimization service - to increase UX of your site and get a better Google PageSpeed score.

Edward Korcheg

Edward is a professional technical writer who is also passionate about making stunning designs in Photoshop. You can find many useful tutorials in his collection of articles at MonsterMost.

Get more to your email

Subscribe to our newsletter and access exclusive content and offers available only to MonsterPost subscribers.

From was successfully send!
Server error. Please, try again later.

Leave a Reply