Create a body div using CSS [closed]

Easiest Solution would be to create a new css rule that simply changes the background color of an element to white i.e: .white-background{ background-color: #ffffff; } Then just add class=”white-background” to the elements you want to have a white background. Just remember an HTML element can have multiple classes inside a single class=”” attribute just … Read more

set up development environment windows

You might need to install Xampp or Wamp on your computer first. Then setup a Virtual Host on your computer which will make sure your when you type your website address, it will point it to the local installation of your computer. Download XAMPP: http://www.apachefriends.org/en/xampp-windows.html Setting up Virtual Host: http://ddmboss.wordpress.com/2013/07/10/how-to-set-up-virtual-hosts-using-xampp/ Hope that helps

Redirect when the site’s home is set to a page

If you want a nested child page to load when the home page is called, I would set up a separate page as your home page. Create a custom template for that page. Then setup a redirect in the template file for the home page. You would then setup your placeholder page as the home … Read more

What is the best way to get the first few post from WordPress in different divs using a loop?

Use this code for the loop. I removed your comments and added some for clarification. <?php if ( have_posts() ) { // Do first post. add_filter( ‘the_content’, ‘narga_excerpts’ ); add_filter( ‘the_content’, ‘remove_first_image’ ); the_post(); get_template_part( ‘content’, get_post_format() ); // Do remaining posts. remove_filter( ‘the_content’, ‘narga_excerpts’ ); remove_filter( ‘the_content’, ‘remove_first_image’ ); while ( have_posts() ) { … Read more