Month: May 2013

Remove ‘Comments’ section from a WordPress page

  Goto page.php. It will appear something like this: ——————————————————————————————get_header(); ?> <div id=”primary” class=”site-content”><div id=”content” role=”main”> <?php while ( have_posts() ) : the_post(); ?><?php get_template_part( ‘content’, ‘page’ ); ?><?php comments_template( ”, true ); ?><?php endwhile; // end of the loop. ?> </div><!– #content –></div><!– #primary –> <?php get_sidebar(); ?><?php get_footer(); ?> —————————————————————————————- Remove the line …

Remove ‘Comments’ section from a WordPress page Read More »

Important documents to keep in User Drive (Q:\)

While submitting the screens for review, follow this checklist of documents that you need to put there. Let us assume, screens for the SHG course are to be submitted for review. Review sheet: File name convention: Review comments _Name of Module_part_Date(ddmmyyyy) Example: Review comments_SHG_P5_08052013 ——————————————- Storyboard: File name convention: Storyboard_Name of Module_part_date Example: Storyboard_SHG_P5_08052013 —————————————— …

Important documents to keep in User Drive (Q:\) Read More »

Insert a picture in a table

To put a repeating pic in table:   <table style=”background-image:url(;”> <tr> <th>Table header</th><th>Table header</th> </tr> <tr> <td>Table cell 1</td><td>Table cell 2</td> </tr> </table>   Source:  

Hide JetPack’s ‘Related Post’ feature in WordPress

I found this link useful in doing that. I removed the ‘Related Posts’ from my posts by adding the following code to the bottom of my theme’s functions.php function jetpackme_remove_rp() { $jprp = Jetpack_RelatedPosts::init(); $callback = array( $jprp, ‘filter_add_target_to_dom’ ); remove_filter( ‘the_content’, $callback, 40 ); } add_filter( ‘wp’, ‘jetpackme_remove_rp’, 20 ); That’s all.