brettlewis
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: List all post categories to be used as class names in templateI have a question for this one”
<div class="<?php foreach((get_the_category()) as $category) { echo $category->slug . ' '; } ?>">
it works, but it outpust a space after every category so it makes the div look like this
<div class="about home "></div>
I know it shouldn’t matter much, but is there a way to make it not space after the final category. I know that within the tags to list categories as links there is a way to specify what is in-between each output instead of what is after each output.
Forum: Fixing WordPress
In reply to: List all post categories to be used as class names in templateThis one worked great! Thank you very much.
<div class="<?php foreach((get_the_category()) as $category) { echo $category->slug . ' '; } ?>">
This one seems to post the link which is a problem when trying to use the category names as classes. Thank you though for the suggestion!
<?php the_category(', ') ?>
Forum: Fixing WordPress
In reply to: jQuery Conflictactually I used this script.
I read through the page a tried a few things. It took a while but if anyone else was interested this is what i used:in header:
<?php wp_enqueue_script("jquery"); ?> //call jquery from wordpress source <?php wp_head(); ?> //then call head. put all script below <script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>YOURSCRIPT"></script>//now call your script
in the script:
replace:$(document).ready(function() {
with:jQuery(document).ready(function($) {
then throughout the rest of the script replace all “$” with “jQuery“
that should work.
Forum: Themes and Templates
In reply to: Images at top and bottom of sidebar missingyou also might want to define a width…
Forum: Plugins
In reply to: Help Desk questionyes, it was made for wordpress MU
Forum: Fixing WordPress
In reply to: internet explorer background imagesthe
margin-left: 11px
is what i added to deal with the problem, so now it works.Forum: Fixing WordPress
In reply to: internet explorer background imageswhy would that matter if it is centered?
Forum: Fixing WordPress
In reply to: internet explorer background imageshttps://i33.tinypic.com/21mam2f.jpg
see, in ie the background is shifted to the right by about ten pixels
Forum: Fixing WordPress
In reply to: internet explorer background imagesi know the colors aren’t good, but i am just messing around
https://thesummerset.bandsnow.com/
yeah i know its on MU, but its more of a general css question and thought it would be better answered here.
also the style sheet is .php cuase it is fully changeable in the admin.
https://thesummerset.bandsnow.com/wp-content/themes/dynamo/style.php
– thanks