how to setup content on a static frontpage with css and xhtml

I would set up a new page template (see http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates), create a new page (Pages > New) and set it to use that template, and then set WordPress to use that page as the homepage (Settings > Reading). Then you can fill the custom page template with whatever content you want in between wp_head() and … Read more

Dynamic sidebar nav with current page highlighting

I see that you are have a hard time on this so here: <?php global $post; $curent_post = $post; $curent_post_id = $post->ID $parents = array(‘4′,’6′,’8′,’10’); if (in_array($post->post_parent,$parents)){ query_posts(“post_type=page&post_parent=”.$post->post_parent.”&orderby=menu_order&order=asc”); } if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <a href=”https://wordpress.stackexchange.com/questions/12054/<?php the_permalink(); if ($curent_post_id = $post->ID){ echo” class=”highlight”‘; } ?>”><?php the_title(); ?></a> and … Read more

Gallery CSS Problem

You have to account for all appropriate CSS classes, based on the number of columns passed to the shortcode. Here’s my CSS (borrowed heavily from Michael Fields), for handling from 1 to 10 columns: .gallery { margin: 0px auto; text-align: center; width: 100%; min-width: 100%; } .gallery .gallery-item { float: left; margin: 0px auto; text-align: … Read more

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