jbbrwcky
Forum Replies Created
-
The best way to do this is to use the body_class() function. In your theme files, make sure the body tag has it:
<body <?php body_class(); ?>>
Then you can use css to alter the colours of menus that are inside the body, by looking for any category class that is generated by the body_class() function. Offhand I think each category generates a slug, like category-news, category-today and so on.
Richard
Forum: Themes and Templates
In reply to: IE6 vs FirefoxOr you can specify a max-width for IE6:
* html .post img { max-width:your-choice; }
Love that last pic with the clouds.
Forum: Themes and Templates
In reply to: Forced/Fixed Height for Menu?To force something to be an exact height try this bit of css:
#snippet { min-height:31px; max-height:31px; height:auto !important; height:31px; overflow:hidden; }
I haven’t tested it with max-height, just with min-height, but it should work.
Forum: Themes and Templates
In reply to: How to except certain pages from being displayed in the sidebar?I assume you know how to edit theme files, so based on that, look for your sidebar.php file in the theme you’re using.
Since it is a ‘page’ vs a ‘post’ you’ll be looking for a line that says this:
wp_list_pages( .... )
Usually it has other bits and pieces in the parentheses, but you need to find out the ID of your page (disclaimer) and add it into those other bits like this:
wp_list_pages(' ... &exclude=ID ... ')
So the ID may be 2 or 27, then it would be exclude=2 or exclude=27
If you need more reading material on it try this codex page: https://codex.www.ads-software.com/Template_Tags/wp_list_pages
Richard
Forum: Themes and Templates
In reply to: Problem with template-> Invalid argument supplied for foreach()Is $options an array? Has it been defined prior to that line?
Forum: Themes and Templates
In reply to: WordPress or Joomla!Joomla is very bloated, hard to work with IMHO. WordPress is much more flexible, lots of community help (here), loads of examples to work with and develop from.
Forum: Themes and Templates
In reply to: Awesome theme!She means atahualpa, he tagged it.
Forum: Themes and Templates
In reply to: Recommend a trust wordpress themes website pleaseI offer free templates at my site. Only one link in them in the footer saying who wrote it, that’s it, no encrypted stuff, or anything else. Many of the themes have backend configuration to let you customize them, nearly all are WP-2.8 compatible (90%+)
Forum: Themes and Templates
In reply to: Limit for title lengthforeach ($comments as $comment) { $title = $comment->comment_author . " @ [" . $comment->post_title; echo "<a href=\'your link here\'>"; echo substr($title, 0, 40); echo "</a>]"; }
That should work – have you tried it?
Forum: Themes and Templates
In reply to: Limit for title lengthHere’s how to do it:
<?php $tit = the_title('','',FALSE); echo substr($tit, 0, 55); if (strlen($tit) > 55) echo " ..."; ?>
You’d have to edit the comments section a little, but you can definately set how long the comment title will be with this.
Forum: Themes and Templates
In reply to: Limit widgets to a numberHey Esmi,
Yeah I thought that might be the case. Thanks though!
Richard
Forum: Themes and Templates
In reply to: Am I expecting too much from WPThe shopping cart for listing, there’s a couple if you look through the plugins site @ https://www.www.ads-software.com/extend/plugins/
Forum: Themes and Templates
In reply to: Posts cut off in IE6Well you have a negative margin-top, so reduce that value and it should give more space.
Forum: Themes and Templates
In reply to: Changing my index.php into a Single Post templateACS1, if you go to your admin settings, then Reading, you can select a static post as the front page. Then use the pulldown menu to select which one.
Forum: Themes and Templates
In reply to: Posts cut off in IE6That ul directive won’t work because of the hash mark. Remove it, then it should work.
For your footer problem in IE6, try this:
* html #footer { margin-top: 100px; }
That should give it plenty of room.