bjorneric
Forum Replies Created
-
a simple <div class=”<?php the_category() ; ?>”> could replace it. It puts the category name as a class.
CSS:
.thumb-under { float: left; display: inline; z-index: 10; } .thumb-over { top: 0px; left: 0px; display: inline; z-index: 20; float: left; position: absolute; } .CategoryName { width: 100px; height: 100px; background: blue; }
For each category (use the slug name) you make another class with the desired color.
Its a start and will work with single categories.
//*
Forum: Fixing WordPress
In reply to: where to add jquery javascriptNo problems – just make sure the script is included in all the templates you need it for (single.php, archive.php and so on) or the menu will cease to work.
If you need it on many pages the footer.php would be a better choice since footer.php is included at the end of every page (if called for).
Glad if I was any help
Forum: Fixing WordPress
In reply to: where to add jquery javascriptDepending on your theme – if you use the script in all of your templates (being a menu i suppose you do?) I would put it in footer.php where I would also end the <body> tag.
I would put one div with the stripes on top of another div with the image. Something like:
<div class="thumb-under"> <a href="<?php echo get_permalink(); ?>"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail('thumbnail'); } else { echo '<img src="'; echo get_bloginfo('template_url'); echo '/images/thumb.jpg">' ; } ?> </a> <div class="thumb-over"> <div class="<?php foreach((get_the_category()) as $cat) { echo $cat->cat_name . ' '; } ?>"> </div> </div> </div>
With a css class with the same name as the post category.
Makes any sense?
Forum: Fixing WordPress
In reply to: Change link colorIn general it’s like this.
In you theme it would be on line 52, like this:
a, a:link, a:visited{
color: #0066ee;
text-decoration: underline;
}
a:hover, a:active {
text-decoration: none;
}Forum: Fixing WordPress
In reply to: where to add jquery javascriptLook at the source of tympanus.net/Tutorials/FixedNavigationTutorial2/, there you will find the java just before </body>
Developers usually put java scripts at bottom of page to get faster loading times (the loading halts until script is loaded otherwise).
Forum: Fixing WordPress
In reply to: Difference in two working PHP solutions get_post_meta*edited*