dor
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Adding different styling every 3rd postFirst, this:
$style_classes = array('first','second','third'); $style_index = 0;should be outside of the loop. Before
query_posts, let’s say.Next, right you are, that’s my fault, try to use one more variable, like this:
<div class="<?php $k = $style_index%3; echo "class=$style_classes[$k]"; $style_index++; ?>">Mmm… should work.
Forum: Fixing WordPress
In reply to: Adding different styling every 3rd postI’d say there may be a lot of ways to do that..
Put a counter into loop and fetch style information from a “style pool” using that counter; be sure to use “cycling fetching”…
Let’s say:
$style_classes = array('first','second','third'); $style_index = 0; // ... // in a loop: <span class="<?php echo "class=$style_classes[$style_index%3]"; $style_index++; ?>"> .... </span>Does this make sense?
Forum: Themes and Templates
In reply to: secondary category templateI guess you can create a sub-category 🙂
A bit ugly, but you can use one template for “main” category, and another — for sub-category.
A bit ugly, because you’ll need to remember to add to sub…
No other thought, sorry.
Yes, i’ve got this, too.
Don’t know what happened.
Deleted mySTAT and quite happy now.
Next time, may be ™.
Forum: Themes and Templates
In reply to: how to get rid off image framemy guess:
use firefox and install webdeveloper plugin.
and check your styles.
Forum: Themes and Templates
In reply to: How to keep header image only to index page?Yes; it depends on theme you use.
Somewhere in you templates you can write smth like:
<?php if( $post->ID == 3 ) { echo '<.... html code for the header logo image ... >'; }Sorry, this really depends on your theme a lot; moreover i’m not sure this is the best way.
Forum: Fixing WordPress
In reply to: Category questionUse
query_posts.Forum: Fixing WordPress
In reply to: Highlight current page in sidebar widgetIn you stylesheet:
.current_page_item { background: yellow; }Or what’s the question?-)
Forum: Fixing WordPress
In reply to: Highlight current page in sidebar widgetIf your theme puts this item in a separate class — yes.
ps. That theme, which i’m using, puts
class="current_page_item"for current item. Probably, not the theme does this, i’m using Flexi Pages widget… Sorry for the noise, if any.Forum: Plugins
In reply to: How to get category ID of current page?get category title than get category id by category title
You can find this in the docs.
I guess you can obtain category ID by php and pass it to javascript as argument. Sorry, have not tried such things.
Forum: Plugins
In reply to: Warning: Cannot modify header informationI guess some blank line has been output by
/home/programm/public_html/wp-content/plugins/simple-post-thumbnails/timthumb.php, line 273.Check that file, espessially for
[... some staff..] ?> <?php [... some more staff ...]That blank line may be a problem, hope this helps.
Forum: Plugins
In reply to: how to alter the header background color and title color?Via CSS sheet.
Mmm.. What do you mean?..
Forum: Themes and Templates
In reply to: Editing Sidebars and other functions in a Theme> I want to remove the Tags, Blogroll and Meta from public view.
Use theme editor->widgets.If you need smth to be kept for authenticated users only, try to use
is_user_logged_in.Forum: Themes and Templates
In reply to: would like to make div.sidebar widerHi,
i guess, the width of your sidebar must be “in sync” with the width of main part — try to find some numbers common for both sidebar and main.
For example, my style.css contains:
[...] #outer-column-container { border-left: solid 16em #ffffff; border-right: solid 16em #ffffff; } #right-column {float: right; margin-right: -16em; width: 16em; margin-left: 1px; } #left-column {float: left; margin-left: -16em; width: 16em; margin-right: 1px; } [...]So, i need to change all that “16em” and “-16em” lets say “in sync”.
Forum: Fixing WordPress
In reply to: my WordPress is not available now – white pagesmost probably, your theme “echoes” some text (may be, blank line only) before headers has been sent