Pages

Sunday, February 3, 2013

How to show the latest blog post on the sidebar

Open the sidebar.php file and paste the following code....

<?php query_posts("post_per_page=1"); the_post(); ?>
<div>
<p> <?php echo the_date(); ?></p>
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<p><?php the_excerpt(); ?></p> 
</div>
 <?php wp_reset_query(); ?>

 

Friday, February 1, 2013

How to remove pagelines logo/leaf from footer in free/trial version

Follow three easy steps...
1.Open footer.php file in any code editor (such as Dreamweaver).
2.Find the line pagelines_cred();.
3.Delete or comment out it.

footer.php file

Enjoy!!!!!!

Friday, January 25, 2013

How to create a child theme of an existing theme

Let's make a child theme of twentyten theme.The following steps are to be followed.........

1.Create a new folder under wp-content folder(where all other theme exist) and name it.Suppose we named it ChildofTT
2.Open any text editor(dreamweaver,notepad) and create a style.css file and save it in ChildofTT folder.
3.Add these code to style.css file

@import url('../twentyten/style.css');