Wish
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sidebar outside of wordpressWhere outside of the WP install did you have in mind? I’ve done this before for a clients’ site here. (Click on continue after the flash intro, then on the next page a JS function called by the flash will reveal the blog sidebar…not in WP.) In this case the sidebar is called from the index.php file in the root, while the WP install is in the directory /blog. So that I know for sure is possible. I know this is unusual so there might not be too many resources out there.
In a case such as what I described above you can do this:
<?php
require('blog/wp-blog-header.php');
?>
<?php
get_header();
?>
Your page formatting, etc.
<?php get_sidebar(); ?>Forum: Fixing WordPress
In reply to: background images for post titles???Try adding this to your style.css:
.post h2
{
background: url(images/your_image.gif) no-repeat 0 0;
}That will put a background image in any H2 inside your .post div (like the headlines on the default themes’ homepage.) Change the no-repeat to repeat-x or repeat-y as needed, and add expirament with padding or line-height for your desired effect:
.post h2
{
background: url(images/your_image.gif) no-repeat 0 0;
padding: .5em;
line-height: 2em;
}But bear in mind different browsers might scale your headlines differently, so make sure your background is large enough or tiles well.
Forum: Fixing WordPress
In reply to: Posts_nav_link now won’t show upI’ve implemented Kafkaesqui’s above code to page through an individually templated category and it works perfectly- save one point- after 6 pages, the
next_posts_link
does not render (there are more than 40 posts in the category, and each successive page properly renders theprevious_posts_link
perfectly.Anyone have any ideas what I’m missing? My last gasp will be running a simple counter to increment the pages somehow, and I’d rather have a little better solution than that! Thanks.