mattshepherd
Forum Replies Created
-
After reading that w3schools set of pages, it seems like this is the best option:
body { margin: 0; padding: 0; background: #FFF url('images/applemirror.gif'); background-repeat: repeat-y; background-position: center; font-size: 80%; font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, sans-serif; color: #000; text-align: center;with “applemirror” being a 1200px-wide image, 800px in the middle for the blog and 200px for the border on the left and right. I left the middle 800px transparent, but could have just as easily made it solid, as it’s “covered” by the blog contents.
A 1200px GIF where the middle 800px is covered seems a little inefficient, but was the best workaround I could bungle my way into. Are there any more streamlined solutions?
Excellent! Thanks for pointing me in the right direction; I’ll start reading.
Forum: Fixing WordPress
In reply to: Fatal error: Cannot redeclare kubrick_head()Got frustrated, deleted everything, started from scratch, and now it all works. Hm.
Forum: Themes and Templates
In reply to: Have I totally screwed up my dedicated pages?You’re right! I had cleared the cache — I thought. Something weird. Thanks!
Forum: Fixing WordPress
In reply to: home.php disables index.php?Thanks! That was enough for me to puzzle it out. The Codex really turned me around and around on this one.
Forum: Themes and Templates
In reply to: Invidividual posts that follow their category’s template?Ha! Another 20 minutes of Codex-diving and I figured it out…
Forum: Plugins
In reply to: Fine, I’m an idiot. How does OpenID work?Aha! Thanks, oeconomist!
I still can’t figure out how to use “my” URI (instead of foo.openID.com) as the name, but that’s hopefully solveable.
And it’s nice to see some people still use the gramatically correct apostrophe before ‘blog.
Forum: Themes and Templates
In reply to: Lotsa “unique category” options — but which is best?Whoo! I’ll check that out; now that I don’t feel like a complete imbecile I’m really starting to enjoy this stuff. Thanks!
Forum: Themes and Templates
In reply to: Lotsa “unique category” options — but which is best?I’m a bit of a dolt, but I can’t figure out how to make the “bloginfo” parameter work with specific css files, because “bloginfo” just looks for what WordPress has designated as the CSS file (style.css in my case). But I’m probably not understanding something.
Thanks for the link to the plugin, but I opted to use “in_category” elseif commands for the category-specific posts, because the plugin would have required me to make category-x.php templates for each category (right?). Extending the if-else just seemed easier. It doesn’t appear to drag too much.
(it occurs to me that this may fall under the “if it ain’t broke, don’t fix it” category, but I can’t help but feel that a PHP command would be cleaner than that repetitive HTML. But does it make any PRACTICAL difference?)
Forum: Themes and Templates
In reply to: Lotsa “unique category” options — but which is best?It worked!
Essentially, I made a CSS file for each category, using the CSS header image background to call the header image, then styled the colours according to the category theme.
I’ll paste the code here in case this can help somebody else in the future:
<?php if (is_category('1') ) { ?> <link rel="stylesheet" href="http://EXAMPLE.COM/wp-content/themes/bede/style.css" type="text/css" media="screen" /> <?php } elseif (is_category('12') ) { ?> <link rel="stylesheet" href="http://EXAMPLE.COM/wp-content/themes/bede/category12.css" type="text/css" media="screen" /> <?php } elseif (is_category('8') ) { ?> <link rel="stylesheet" href="http://EXAMPLE.COM/wp-content/themes/bede/category8.css" type="text/css" media="screen" /> <?php } elseif (is_category('11') ) { ?> <link rel="stylesheet" href="http://EXAMPLE.COM/wp-content/themes/bede/category11.css" type="text/css" media="screen" /> <?php } elseif (is_category('13') ) { ?> <link rel="stylesheet" href="http://EXAMPLE.COM/wp-content/themes/bede/category13.css" type="text/css" media="screen" /> <?php } elseif (is_category('9') ) { ?> <link rel="stylesheet" href="http://EXAMPLE.COM/wp-content/themes/bede/category9.css" type="text/css" media="screen" /> <?php } elseif (is_category('10') ) { ?> <link rel="stylesheet" href="http://EXAMPLE.COM/wp-content/themes/bede/category10.css" type="text/css" media="screen" /> <?php } elseif (is_category('7') ) { ?> <link rel="stylesheet" href="http://EXAMPLE.COM/wp-content/themes/bede/category7.css" type="text/css" media="screen" /> <?php } else { ?> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <?php } ?>And so on. I may do the same for individual posts (checking the parent category) so that individual posts also use the same header/sidebar as the category pages.
Is there a way to replace that all that HTTP:// with a php command?
I’ll do that! Thanks for the tip!
I think I’m the nuffy (I did say it was a stupid question!)
Gotcha. I was following some css from a tutorial and trying to build off it, and I obviously didn’t understand how to add onto a definition correctly.
Back to work! Thanks a million!
(EDIT: It worked! This is EXACTLY the sort of thing that seems really dumb in retrospect but I never would have figured out on my own.)
I’m not sure what you mean by definition, but here’s the bulk of the style.css. It’s the “visited” that seems to be the problem: I set the sitebar to a unique shade of grey so it would be easy to tell from the brown I want. When I click on any link and reload the main page, all visited links are turning up that weird grey instead of the brown that I THINK I’ve defined further up in the a:visited section.
body, h1, h2, h3, h4, h5, h6, blockquote, p{
margin: 0;
padding: 0;
}body{
margin: 0;
font-family: Arial, Helvetica, Georgia, Sans-serif;
font-size: 12px;
text-align: center;
vertical-align: top;
background: #ffffff;
color: #000000;
}h1{
font-family: Georgia, Sans-serif;
font-size: 24px;
padding: 0 0 10px 0;
}img{
border-style: hidden;
}a:link, a:visited{
text-decoration: none;
color: #5A3D1B;
}a:hover{
text-decoration: underline;
}p{
padding: 10px 0 0 0;
}#wrapper{
margin: 0 auto 0 auto;
width: 750px;
text-align: left;
}#header{
float: left;
width: 750px;
height: 170px;
background: url(“http://venerable-bede.com/images/bedeheader.jpg”)
no-repeat top center;
}#headerimg {
height: 140px;
width: 740px;
}#header a:link, a:visited, a:active{
text-decoration: none;
color: #5A3D1B;
}#header a:hover{
text-decoration: underline;
}#header p{
font-family: Palatino Linotype, Book Antiqua, Palatino, serif;
font-size: 18px;
font-weight: bold;
text-align: center;
position: absolute; top: 130px;
letter-spacing: 2px;
color: #5A3D1B;
}#container{
float: left;
width: 580px;
}.post{
padding: 10px 0 10px 0;
}.post h2{
font-family: Georgia, Sans-serif;
font-size: 18px;
}.entry{
line-height: 18px;
}p.postmetadata{
border-top: 1px solid #ccc;
margin: 10px 0 0 0;
padding: 0 0 0 2px;
}.sidebar{
float: left;
width: 160px;
background: #5A3D1B;
margin: 0 0 0 10px;
display: inline;
color: #FFC468;
}.sidebar a:link, a:visited{
text-decoration: underline;
color: #555555;
}.sidebar a:hover{
color: #FFF3A4
}.sidebar ul{
list-style-type: none;
margin: 0;
padding: 0 10px 0 10px;
}.sidebar ul li{
padding: 10px 0 10px 0;
}.sidebar ul li h2{
font-family: Georgia, Sans-serif;
font-size: 14px;
color: #FFC468;
}.sidebar ul ul li{
padding: 0;
line-height: 18px;Forum: Themes and Templates
In reply to: Lotsa “unique category” options — but which is best?That makes sense, Ivovic.
That sounds ideal, then! I’ll try getting this done over the weekend.
Thanks, guys!
Forum: Themes and Templates
In reply to: Lotsa “unique category” options — but which is best?Thanks for the prompt reply, iridiax.
If I understand correctly, you’re recommending my Option One, yes?
Is there any concern for page load times if you have lots of elseif commands running through eight options in your template files?