kz
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Help with excerpt appreciatedin functions.php:
function excerpt_length_featured($length){ return 90; } function excerpt_length_recent($length){ return 40; }Featured Post:
add_filter('excerpt_length', 'excerpt_length_featured'); the_excerpt(); remove_filter('excerpt_length', 'excerpt_length_featured');Recent Posts:
add_filter('excerpt_length', 'excerpt_length_recent'); the_excerpt(); remove_filter('excerpt_length', 'excerpt_length_recent');Forum: Plugins
In reply to: Hiding posts in category from blog page<div class="text">after<img />has no</div><!-- end text -->.Forum: Plugins
In reply to: Hiding posts in category from blog page<ul> <?php wp_list_categories('exclude=5&title_li='); ?> </ul>Forum: Themes and Templates
In reply to: How to center header image<h1 class="logo"><img src="<?php echo $logo; ?>" title="<?php bloginfo('name'); ?>" alt="<?php bloginfo('name'); ?>" />YOUR TEXT HERE</h1>or if you want to place text where youwant,
<h1 class="logo"><img src="<?php echo $logo; ?>" title="<?php bloginfo('name'); ?>" alt="<?php bloginfo('name'); ?>" /><span>YOUR TEXT HERE</span></h1>
with style.cssh1.logo{position:relative;} h1.logo span{ position:absolute; left:30px; top:15px; }Forum: Themes and Templates
In reply to: How to I get rid of the bullet next to the widget title?Use
#sidebar ul li ul li
instead of
#sidebar ul liForum: Themes and Templates
In reply to: I am making a wordpress admin theme: how override wp-admin.css?If Albyzzolo’s style rules overwrite all default rules, it doesn’t matter if default styles are loaded.
If Albyzzolo’s style rules are the subset of default rules, it means his style is incomplete. If there are not default rules, it leads layout broken.Forum: Themes and Templates
In reply to: How to center header imageIn style.css
h1.logo{text-align:center;}Forum: Themes and Templates
In reply to: Help needed – moving main content & sidebar down the page?#body{padding-top:140px;}Forum: Themes and Templates
In reply to: I am making a wordpress admin theme: how override wp-admin.css?The priority of default admin stylesheet is 20.
See line 202 of wp-includes/default-filters.php
add_action('admin_print_styles', 'print_admin_styles', 20);add_action('admin_print_styles', 'xxxx', 21);means xxxx function is called after print_admin_styles function.
The later rules are winner. See Style cascadForum: Themes and Templates
In reply to: I am making a wordpress admin theme: how override wp-admin.css?WordPress 2.9.1
add_action('admin_print_styles', 'xxxx', 21);Forum: Themes and Templates
In reply to: Help with corporate theme bottombar – how to add recent posts<h2 class="bottombartitle"><?php _e('Recent Posts'); ?></h2> <?php query_posts('showposts=5'); if(have_posts()) : ?> <ul class="list-archives"> <?php while(have_posts()) : the_post(); ?> <li><?php the_permalink(); ?></li> <?php endwhile; ?> </ul> <?php endif; wp_reset_query(); ?>Forum: Themes and Templates
In reply to: How to I get rid of the bullet next to the widget title?Use
<ul class="sideblock">and</ul>
instead of
<div class="sideblock">and</div>