How to create more templates to the same theme?

Create .php file with name like template-blogs.php, inside file write a Template Name in php comment, include header & footer. here is the sample of test template <?php /* * Template Name: Test Template */ get_header(); ?> <div class=”content_area”> <!—Write Your PHP Code Here—> </div> <?php get_footer();

Setting different CSS for all pages except home.php

Instead of <?php if(!is_home() || !is_front_page()) :?> you could use <?php else: ?> This style will not affect the wp-admin part, only the front end of your web since this is used in header.php. A safe way is to use wp_register_style() and wp_enqueue_style() as described here in the Codex: http://codex.wordpress.org/Function_Reference/wp_enqueue_style http://codex.wordpress.org/Function_Reference/wp_register_style In your case it … Read more

How to Create a Multi Purpose Theme?

The way I do it is create multiple layout files, add the option to choose which one to use on the template options panel: layout-left.php layout-right.php layout-both.php Then on the index page you setup if layout X is chosen, load X layout. This is an example using the option tree plugin theme options: <?php get_header(); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)