blogbreaking
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: sidebar too low — aligning to bottom blog postIf there are no block-level errors, a simple thing that may be wrong is the padding for the sidebar or content div might be too large and pushing the sidebar down. If you have the web developers plugin for firefox, theres and outline feature that could help identify if this is the problem.
Forum: Fixing WordPress
In reply to: Hard Code a list item into a sub page with list_pagesyou could use the title_li= parameter for wp_list_pages. This will remove the default unordered list tag and all you to add in your own
list items after the call.
example:<ul> <?php wp_list_pages('title_li='); <li><a href="#">Hard code Link 1</a></li> <li><a href="#">Hard code Link 2</a></li> </ul> </li> </ul>Forum: Fixing WordPress
In reply to: Full Article help?Forum: Fixing WordPress
In reply to: how to edit the sidebarI originally had a suggestion of using the text widget, but after reading what you want, best way would be to manually alter the sidebar.php file.
Forum: Themes and Templates
In reply to: Theme css not finding imagesgonna sound silly but try and remove the space between url and the (.
.background { background-image: url('images/background.jpg'); }Forum: Themes and Templates
In reply to: How to use the header graphic in the footer?you have to change your style for #subfooter to have the same background image as your menu.
So your subfooter style would look like this
#subfooter{height:21px;background:url(images/menubg.png);background-repeat:repeat-x;text-align:right;padding-top:3px;padding-right:15px;}Forum: Themes and Templates
In reply to: Trouble with adding an image to HeaderIf you have to put an image into a theme and have the image in your theme images folder, it’s best to use this
<img src="<?php bloginfo('template_url'); ?>/images/textimage.jpg" />It’ll be the same for any theme you build so you don’t need to write a special src location to link images all the time.
Forum: Themes and Templates
In reply to: different links for same imageIm not sure if theres a way to do conditionals within a blogpost,
A way that would work is if you were to use a custom field and store the url to your photo in each post.
http://codex.wordpress.org/Using_Custom_Fields
http://codex.wordpress.org/Function_Reference/get_post_metaThen in your index.php file, in your loop pull out the custom field into an image tag and wrap it with an link tag that links to your permalink. Use the except field in to copy the first paragraph of your post and pull the excerpt out in the loop as well.
Something like this:
<a href="<?php the_permalink() ?>"><img src="<?php echo get_post_meta($post->ID, pic, true); ?>" alt="<?php the_title(); ?>" border="0" /></a> <?php the_excerpt(); ?>Forum: Themes and Templates
In reply to: Blog Page while using Static Page?Very strange. I have a custom theme I developed did the same thing you did but it worked for me. Can you repost your <h2> tag with your link so it doesn’t render the link. This is what I have for mine, looks identical to yours..
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
<small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small><div class=”entry”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div><p class=”postmetadata”><?php the_tags(‘Tags: ‘, ‘, ‘, ‘
‘); ?> Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
</div><?php endwhile; ?>
<div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
</div><?php else : ?>
<h2 class=”center”>Not Found</h2>
<p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
<?php get_search_form(); ?><?php endif; ?>