In the content-featured.php, remove the following lines (from 5th line) <?php if ( has_post_thumbnail() ): ?> <?php the_post_thumbnail(‘thumb-large’); // only difference to content.php ?> <?php elseif ( ot_get_option(‘placeholder’) != ‘off’ ): ?> <img src=”<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png” alt=”<?php the_title(); ?>” /> <?php endif; ?> This will remove the big fat featured image in homepage of […]
Category: WordPress Code Snippets
Customizr WordPress Theme Mobile Checkpoint Setting To 767PX
The free WordPress theme Customizr converts the top menu into mobile menu (burger menu system) at the width of 979px. We have created a child theme for Customizr that uses a skin and sets mobile checkpoint to 767px. Because sometimes, the number of menus are very less and in iPad like tablets, unnecessary, the mobile […]
Twenty Fourteen WordPress Theme Demo with Sample Data and Download
We heard you and here we would like to provide you the setup data for Twenty Fourteen WordPress Theme. You can get this same demo setup in your localhost or even in your live site. You can download the following xml file and another file called “wie”. The WIE file is generated from “Widget Importer […]
Enabling HTML email Option For SabaiDirectory
SabaiDirectory uses wp_mail function for emailing purposes. By default, it does not support HTML tags inside the templates. However, you can enable this feature by adding a filter. Just add the below code in your theme functions.php file. But note that, once you add this feature, you need to edit all the Sabai Directory email […]
How to remove TwentyTwelve style while creating child theme?
It is general process to remove style of parent theme while creating child theme for any WordPress themes. In the same way, recently I tried to dequeue style of TwentyTwelve WordPress theme. But it did not work. After Googling and with lots of trials and errors, I found that the style needs to be deregistered too. […]
How to add a full width slider inside Hueman WordPress Theme?
We all know Hueman is one of the best made WordPress theme. And it is free too. This theme basically does not have slider in it. So, I created a child theme called “Hueplus” with slider in it. However, That slider is not full width. Hence I modified the code a little more on header.php […]
How to get the current page id of post or page outside loop?
Use the below code to get the current page id or post id, but outside loop, global $wp_query; echo $wp_query->post->ID;