Alex Cragg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: highlighting admin commentsi had the highlighting set so that every other comment was either green or orange, using $oddcomment, or something like that.
I wanted to still have every other comment a different colour, but when i post a comment, have that be a different colour too, so the class would be assigned as author, or something, and for that comment it would ignore the $oddcomment bit…
does that make sense?
Forum: Themes and Templates
In reply to: Widget Ready — How much work?i got an unexpected t variable error when i tried with the !empty, hence why i came up with the other way.
it would definitely be improved functionality if the h2 tags were removed by default if they were left empty, IMHO.—-
you edited before i could reply! hope all that helped dwzemensForum: Themes and Templates
In reply to: Widget Ready — How much work?im sure there must be a way.
you need an if statement somewhere, saying if title is blank, dont register title, before title etc, and if it isnt blank, then put them in.
unfortunately i cant work out how.Forum: Themes and Templates
In reply to: Widget Ready — How much work?and actually, ive realised that this was something i wanted to do a while back, and never worked out how, so ive helped myself out here too!!
😀Forum: Themes and Templates
In reply to: Widget Ready — How much work?ive worked it out. What otto said was nearly right, but not quite 😉
either put an ! before the ($title)…
<?php !($title) ? print($before_title . $title . $after_title) : null; ?>or //
<?php //($title) ? print($before_title . $title . $after_title) : null; ?>the ! does the opposite of what the php says, and the // edits it out, like putting in a comment.
so it has basically just stopped the output on the text section only.
let us know
😀Forum: Plugins
In reply to: Show Only Selected Catagory Posts (Pretty Please)i take it you tried here?
http://codex.wordpress.org/Category_Templates#Show_the_Category_Postsmaybe you could put something in that says, if the category is the title, exclude children of it….
but in php…..dont spose thats much help really!Forum: Plugins
In reply to: unique class for each item in navigation menuto sort out getting each item with a different class, look at sticky menu http://tela-web.com/wordpress-plugins/sticky-menu/
there is also a suggestion in the comments as to how to include the current_page_item into this.
hope it helps
Forum: Themes and Templates
In reply to: Widget Ready — How much work?thanks for helping out otto, i didnt know what to do, so i just put the code that i knew needed to be changed, so you’re right, that was what the text widget already did! 🙂
Forum: Installing WordPress
In reply to: A Good Hosting Site?i would edit it and take it out, but its too late.
i still stand by what i said though, they are a good host.
and im not a spammer.
Forum: Themes and Templates
In reply to: Widget Ready — How much work?look for this section, its near the top
function register_sidebar($args = array()) { global $registered_sidebars; if ( is_string($args) ) parse_str($args, $args); $defaults = array( 'name' => sprintf(__('Sidebar %d', 'widgets'), count($registered_sidebars) + 1 ), 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => "</li>\n", 'before_title' => '<h2 class="widgettitle">', 'after_title' => "</h2>\n", );the end bit is what puts the h2 tags in, you could probably create a statement so that if the input was blank, it would remove them, or maybe give a different class, that you could style differently? this would change the h2 tag for every widget though, not just the text one.
the text widget code is low down,
function widget_text($args, $number = 1) { extract($args); $options = get_option('widget_text'); $title = $options[$number]['title']; if ( empty($title) ) $title = ' '; $text = $options[$number]['text']; ?> <?php echo $before_widget; ?> <?php $title ? print($before_title . $title . $after_title) : null; ?> <div class="textwidget"><?php echo $text; ?></div> <?php echo $after_widget; ?>maybe look at removing some of the calls for before and after title, this would just effect the text one, not all.
all a bit of a guess really, never done it myself.
hope it points you in the right directionForum: Your WordPress
In reply to: New Website w/ custome wordpress designtook over a minute to load, maybe cause of all the vids? nice design though.
maybe try less posts on the front page?Forum: Everything else WordPress
In reply to: How friendly is wordpress for search engines?very much so!
Forum: Installing WordPress
In reply to: A Good Hosting Site?Bluehost have the above mentioned fantastico installs, and offer you free google and yahoo advertising to the value of $75. and hosting starts at $6.95 a month, under $90 a year. Ive just switched to them myself, and they provide a great service. Plus you get free domain registration, but most hosts offer this anyway
Forum: Fixing WordPress
In reply to: Comment search….have a look at dan cameron’s search everything plugin
http://www.dancameron.org/wordpressForum: Fixing WordPress
In reply to: Would like a page with NO sidebarcreate a new page template, based on index.php, and remove the get_sidebar php call.
make sure you add this to the top of the file, after the opening php bracket
/*
Template Name: my new template
*/
this allows you to select it as a template on the write page admin panel