tony2nice
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: PHP Code Widget] Widget is automatically adding br tagsThanks for the timely fix, Otto. Working perfectly again. π
Forum: Plugins
In reply to: [Plugin: PHP Code Widget] Widget is automatically adding br tagsHow did you roll back?
Forum: Plugins
In reply to: Cache Hotlinked Images When PostingExactly that.
Forum: Fixing WordPress
In reply to: Custom Edit Profile PageDude. You just made my night. That is exactly what I was after, and much more. I’ll be sending a few dollars your way as soon as I get paid.
Thanks so much for the plugin.
Forum: Plugins
In reply to: Cache Hotlinked Images When PostingNothing? Maybe I’m asking my questions wrong. I’ve yet to get a reply to any threads I’ve started here. Is there a more heavily-frequented help forum out there that might have an answer?
Forum: Themes and Templates
In reply to: How to style h2 headings separately?^ use t31os_‘s php as it’s much safer.
Can you style the css from there, scribbler?
Forum: Themes and Templates
In reply to: How to style h2 headings separately?AntonyGray: start a new thread and I’ll have a look. You’ll have better luck that way, in case this thread gets resolved.
Sorry scribbler, let me try to be more specific.
Your code as it is now:
<h2><?php prox_cat_link($post_by_cat); //category title as a link to category archive ?></h2>See that first
<h2>? What we want to do is give it a class, so we can select it with our css. Replace that<h2>with this:<h2 class="<?php foreach((get_the_category()) as $category) {echo $category->cat_name;} ?>">So now your code looks like so:
<h2 class="<?php foreach((get_the_category()) as $category) {echo $category->cat_name;} ?>"><?php prox_cat_link($post_by_cat); //category title as a link to category archive ?></h2>Forum: Themes and Templates
In reply to: How to style h2 headings separately?Also, I don’t know how familiar you are with css, but let’s assume you have three categories: music, art, video. You want to color the text different for each.
In your stylesheet, add these lines:
h2.music {color:red;} h2.art {color:blue;} h2.video {color:purple;}You’re obviously going to want to change those categories to your own, and the colors to your site’s scheme.
Wouldn’t that be…
.home .h2 {[ some styling] }π
π
It’s
.home h2 {[ some styling] }without the second period.Forum: Themes and Templates
In reply to: How to style h2 headings separately?Try this:
<h2 class="<?php foreach((get_the_category()) as $category) {echo $category->cat_name;} ?>">...</h2>This will add the category as a class to each
<h2>. Style accordingly.Forum: Plugins
In reply to: [Plugin Request] add lastfm audio trackI’d love to at least see the php you used, if possible. π
Forum: Plugins
In reply to: [Plugin:Last.Fm records] Centering the widgetYou still need help? Play some tracks so we can see them and style the covers properly. Without seeing them, I can only guess what it’ll look like.
But are you doing the css? If you look at the very bottom of your main stylesheet, you’ll see:
li#lastfm-records.widget.widget_lastfmrecords ol{ margin-right: auto; margin-left: auto; width: 246px; padding: 0; padding-left: 25px; }This doesn’t select anything. At least not until you have record covers, I’m guessing. In any case, try simplifying that selector down to just:
#lastfm-records { margin: 0 auto; width: 246px; padding: 0; text-align:center; }I also added
text-align: centerso that might be all you need, but again, you’ll need to play with it when there are albums.Forum: Themes and Templates
In reply to: Display the_content or the_excerpt dependent on $author_idOk, cool, I got it working by changing “$author_id” to “get_the_author_id()”. Full code:
<div class="entry"> <?php if ( get_the_author_id() == '1' ) { ?> <?php the_content('Continue reading »'); ?> <?php } else { ?> <?php the_excerpt('Continue reading »'); ?> <?php } ?> </div><!--/entry -->Hope this is useful for someone else too.
Forum: Fixing WordPress
In reply to: blank wp-comments-post.php errorSame issue. Hope we get an answer soon. π
Forum: Themes and Templates
In reply to: Custom archives excerpt helpIf anyone was curious or looking for something similar, I ended up going with an edited version of Justin Blanton’s Smart Archives.
βtony