Peter Boosten
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Best way to associate images with categories?Maybe this can help you in your quest.
Peter
Forum: Themes and Templates
In reply to: Problem with Safari and Chrome, only started happening yesterdayEverything was fine before yesterday, and I didn’t change my theme or anything like that.
hmmm, both browsers didn’t change yesterday either, so it must be something that you did. Maybe some incomplete xhtml in a post?
Peter
Forum: Themes and Templates
In reply to: i.e. centering help neededYou have to tell the browser what kind of ‘language’ you’re trying to feed him (her?), and act accordingly.
For instance, if you’re ‘doing’ xhtml transitional, you have to apply closing tags to all xhtml elements.
Such a declaration takes place at the very top of each and every page (in case of WordPress that would be in header.php), and could look like this (just replace the relevant of your header with this):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">EDIT: in your case there’s a statement BEFORE this declaration: a div. This is not allowed in the header.
Peter
Forum: Themes and Templates
In reply to: Blog Post Text ColourIf you change the font-color for posts in the styesheet (style.css), then it’ll apply to ALL posts (new and existing).
This is theme specific though, so if you upload and activate a new theme, the styles of the new theme will apply. If you want me to be very specific, you’ll have to supply a URL to your site.
The new theme: in your admin dashboard, click ‘Appearance’, ‘Add new theme’,’upload’.
Peter
Forum: Themes and Templates
In reply to: Adding an Admin pageYou might be able to do just that with custom fields, since the ad is post/page specific.
Have a read first.
Peter
Forum: Themes and Templates
In reply to: Blog Post Text Colour- login in the admin dashboard. The version is shown there
- text-color: #F00; in your stylesheet (will be horrible red 🙂 )
- is it a zip? from the admin dashboard
Peter
Forum: Themes and Templates
In reply to: dyanmic landing page template based on custom fieldThis article describes exactly what you want, I think, but then with the use of tags, not custom fields.
Peter
Forum: Themes and Templates
In reply to: Header excerptYou should make it conditional, btw, or you’ll always stuck with those ‘…’:
<?php if (strlen($post->post_title) >= 19 ) echo substr($post->post_title,0,19) . "..."; else echo $post->post_title; ?>Peter
Forum: Themes and Templates
In reply to: Header excerptah, apologies:
<?php echo substr($post->post_title,0,19) . "..."; ?>Peter
Forum: Themes and Templates
In reply to: Header excerptAh, you mean the title?
<?php echo substr($post->post_title,19) . "..."; ?>Peter
Forum: Themes and Templates
In reply to: Header excerptChange
the_content(intothe_excerpt(in your index.php.Peter
Forum: Themes and Templates
In reply to: the_excerpt() length – changing the default not workingPut this in your functions.php
/* Create excerpt with 10 words and preserved HTML tags */ function my_wp_trim_excerpt($text) { { if ( '' == $text ) { $text = get_the_content(''); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); $excerpt_length = 10; $words = explode(' ', $text, $excerpt_length + 1); if (count($words) > $excerpt_length) { array_pop($words); array_push($words, '[...]'); $text = implode(' ', $words); } } return $text; } // remove WordPress default excerpt filter remove_filter('get_the_excerpt', 'wp_trim_excerpt'); // Add our custom filter with low priority add_filter('get_the_excerpt', my_wp_trim_excerpt, 20);Peter
Forum: Themes and Templates
In reply to: Link Creation<a href="http://your.url.tld">Link text here</a>Like this?
Peter
Forum: Themes and Templates
In reply to: Why are there borders around all my pics?Find this in style.css (line 345)
.entry img { border:2px solid #6E2338; padding:3px; }and remove the border line.
Peter
Forum: Themes and Templates
In reply to: i.e. centering help neededIE is in quirks mode. Please correct all the errors in your xhtml.
Peter