Skip to main content

Posts

Showing posts from February, 2012

Hiding or Changing the List Heading

The default heading of the list ("Pages") of Pages generated by  wp_list_pages  can be hidden by passing a null or empty value to the  title_li  parameter. The following example displays no heading text above the list. <ul> <?php wp_list_pages('title_li='); ?> </ul> In the following example, only Pages with IDs 9, 5, and 23 are included in the list and the heading text has been changed to the word "Poetry", with a heading style of  <h2> : <ul> <?php wp_list_pages('include=5,9,23&title_li=<h2>' . __('Poetry') . '</h2>' ); ?> </ul>

[resolved] Adding login and register links to the header

Your first instinct was right. The two template tags you need are  <?php wp_register(); ?>  and  <?php wp_loginout(); ?> . It's the placement within your header that's the problem. The header image is masking/hiding the links. Try adding: <ul class="headerlinks"> <li><?php wp_register(); ?></li> <li><?php wp_loginout(); ?></li> </ul> immediately after  <div id="header">  in header.php. Then add the following to style.css: #header .headerlinks { position:relative; top:20px; left:600px; z-index:500; } #header .headerlinks { display:inline; margin:0 5px 0 0; padding:0; }

Easy Rounded Corners with Border-Radius

The realm of CSS is a realm of boxes. Everything on the page is a box,  within a box, within a box. No wonder it’s so common for beginning CSS developers (or, in my case, poor graphic designers with too much CSS experience) to create boxy layouts! However, the forthcoming CSS3 specification offers us a glimmer of hope in the form of rounded corners . That’s right — once CSS3 is commonly supported, we’ll be able to childproof all those pointy edges and beautify the web in the process. And better yet, a few browsers already support rounded corners! As I’m writing this, you’re pretty much limited to Mozilla/Firefox and Safari 3. However, this list is bound to grow as time goes on, so it couldn’t hurt to start playing around with this feature. Especially considering that, in the browsers that don’t support rounded corners, nothing bad happens — the user just sees regular, square corners. For now, to get the code to work, you’re stuck using proprietary CSS tags: they won’t va