claytonboen
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How would I center my content in both a page and post?Thanks, but I am afraid that didn’t work. 🙁
Any other ideas?
Forum: Fixing WordPress
In reply to: How do I change the color of Blog Post links?Thanks Esmi, but actually… That doesn’t work. 🙁
I think it is being overridden someplace else, but I can’t figure out where. I can place !important after the color and force the link to a different color, but then it changes EVERY link to that color. I want to have separate link colors in different sections.
Any other ideas?
Forum: Fixing WordPress
In reply to: How do I change the color of Blog Post links?The link to my site is:
Forum: Fixing WordPress
In reply to: Help! All posts are going to the same old post!Here is the video.php code, but I doubt it matters:
<div id="videos"> <h3 id="myVideos" class="replace">My videos. Featured videos.</h3> <div class="box1" id="video"> <?php query_posts('tag=video&showposts=1'); ?> <?php while (have_posts()) : the_post(); ?> <?php woo_get_custom('embed'); ?> <?php endwhile; ?> </div><!--box1--> </div><!--videos-->Forum: Fixing WordPress
In reply to: Help! All posts are going to the same old post!I figured out that what I posted above isn’t the problem. Turns out the culprit is the video I am trying to place in the header. I have no idea, but when I do, it causes the problem. Here is the code for my header.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head profile="http://gmpg.org/xfn/11"> <title> <?php if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } ?> <?php if ( is_search() ) { ?><?php bloginfo('name'); ?> | Search Results<?php } ?> <?php if ( is_author() ) { ?><?php bloginfo('name'); ?> | Author Archives<?php } ?> <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?> <?php if ( is_page() ) { ?><?php bloginfo('name'); ?> | <?php wp_title(''); ?><?php } ?> <?php if ( is_category() ) { ?><?php bloginfo('name'); ?> | Archive | <?php single_cat_title(); ?><?php } ?> <?php if ( is_month() ) { ?><?php bloginfo('name'); ?> | Archive | <?php the_time('F'); ?><?php } ?> <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> | Tag Archive | <?php single_tag_title("", true); } } ?> </title> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" /> <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/ie.css" /><![endif]--> <!--[if IE 6]> <script src="<?php bloginfo('template_directory'); ?>/includes/js/pngfix.js"></script> <script src="<?php bloginfo('template_directory'); ?>/includes/js/menu.js"></script> <![endif]--> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('woo_feedburner_url') <> "" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> <!--LINK-OPACITY-STARTS--> <style type="text/css"> a.linkopacity img { filter:alpha(opacity=0); -moz-opacity: 0.0; opacity: 0.0; -khtml-opacity: 0.0;} a.linkopacity:hover img { filter:alpha(opacity=100); -moz-opacity: 1.0; opacity: 1.0; -khtml-opacity: 1.0; } </style> <!--LINK-OPACITY-STOPS-http://bloggerstop.net--> <script type="text/javascript"> <!-- var tmr = null, ebd = null; function makesound(file) { if (!ebd) { var snd = document.createElement('embed'); snd.setAttribute("name", "hoversound"); snd.setAttribute("id", "hoversound"); snd.setAttribute("src", file); snd.setAttribute("autostart", "true"); snd.setAttribute("loop", "false"); snd.setAttribute("volume", "150"); snd.setAttribute("hidden", "true"); document.getElementById("sound-holder").parentNode.appendChild(snd); if (tmr) { clearTimeout(tmr); } tmr = setTimeout('killsound()', 200); ebd = true; } else { clearTimeout(tmr); killsound(); return makesound(file); } } function killsound() { document.getElementById("sound-holder").parentNode .removeChild(document.embeds['hoversound']); ebd = null; } //--> </script> </head> <body id="woothemes"> <div id="wrap"> <div id="header"> <ul id="nav" class="nav"> <li<?php if ( is_home() ) : ?> class="current_page_item"<?php endif; ?>><a href="<?php echo get_option('home'); ?>/">Home</a></li> <?php if (get_option('woo_nav')) wp_list_categories('sort_column=menu_order&depth=3&title_li=&exclude='); else wp_list_pages('sort_column=menu_order&depth=3&title_li=0&exclude=17, 19, 32' ); ?> </ul> <form id="topSearch" class="search" method="get" action="<?php bloginfo('url'); ?>"> <p class="fields"> <input type="text" value="search" name="s" id="s" onfocus="if (this.value == 'search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'search';}" /> <button class="replace" type="submit" name="submit">Search</button> </p> </form> <?php if ( !get_option('woo_video') ) include ( TEMPLATEPATH . "/includes/video.php" ); ?> <div id="logo"> <a href="http://www.cataxrevolution.com/" title="<?php bloginfo('description'); ?>"><img class="title" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a> <h1 class="replace"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1> </div> <span id="sound-holder"> <div id="logo3"> <a class="linkopacity" href="http://twitter.com/DanWarp" onMouseOver="makesound('Tock.wav');" onMouseOut="makesound('');" target="_blank" title="Click to Follow Me On Twitter"><img class="title" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/logo3.png<?php } ?>" alt="Click to Follow Me On Twitter" /></a> <h1 class="replace"><a href="<?php echo stripslashes( get_option( 'woo_aboutlink' ) ); ?>"><?php bloginfo('name'); ?></a></h1> </div> <div id="logo4"> <a class="linkopacity" href="http://www.youtube.com/DanWarp" onMouseOver="makesound('Tock.wav');" onMouseOut="makesound('');" target="_blank" title="Click to Subscribe to My YouTube Channel"><img class="title" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/logo4.png<?php } ?>" alt="Click to Follow Me On Twitter" /></a> <h1 class="replace"><a href="<?php echo stripslashes( get_option( 'woo_aboutlink' ) ); ?>"><?php bloginfo('name'); ?></a></h1> </div> <div id="login"> <a class="linkopacity" href="http://cataxrevolution.com/wp-login.php" onMouseOver="makesound('Tock.wav');" onMouseOut="makesound('');" title="Click Here to Login"><img class="title" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/login.png<?php } ?>" alt="Click to Follow Me On Twitter" /></a> <h1 class="replace"><a href="<?php echo stripslashes( get_option( 'woo_aboutlink' ) ); ?>"><?php bloginfo('name'); ?></a></h1> </div> <div id="signup" <a class="linkopacity" href="http://cataxrevolution.com/wp-login.php?action=register" onMouseOver="makesound('Tock.wav');" onMouseOut="makesound('');" title="Click Here to Register"><img class="title" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/signup.png<?php } ?> " alt="Click to Follow Me On Twitter" /></a> <h1 class="replace"><a href="<?php echo stripslashes( get_option( 'woo_aboutlink' ) ); ?>"><?php bloginfo('name'); ?></a></h1> </div> </span> </div>Forum: Fixing WordPress
In reply to: How to play sound when cursor hovers over image/linkIn case anyone runs across this from a google search, I have figured it out. You need to use javascript. To accomplish it, you place this in the head of the page:
<script type=”text/javascript”>
<!–
var tmr = null, ebd = null;
function makesound(file) {
if (!ebd) {
var snd = document.createElement(’embed’);
snd.setAttribute(“name”, “hoversound”);
snd.setAttribute(“id”, “hoversound”);
snd.setAttribute(“src”, file);
snd.setAttribute(“autostart”, “true”);
snd.setAttribute(“loop”, “false”);
snd.setAttribute(“volume”, “150”);
snd.setAttribute(“hidden”, “true”);
document.getElementById(“sound-holder”).parentNode.appendChild(snd);
if (tmr) {
clearTimeout(tmr);
}
tmr = setTimeout(‘killsound()’, 200);
ebd = true;
}
else {
clearTimeout(tmr);
killsound();
return makesound(file);
}
}
function killsound() {
document.getElementById(“sound-holder”).parentNode
.removeChild(document.embeds[‘hoversound’]);
ebd = null;
}
//–>
</script>NOTE — The timeout option can be adjusted. 1000 = 1 second.
Then, where you want the file you play, you place the following command outside the image or link:
<span id=”sound-holder”>
</span>
And then the following command inside the Herf:
onMouseOver=”makesound(‘Tock.wav’);” onMouseOut=”makesound(”);”
The onMouseOver command plays the effect, the onMouseOut points to null so that it does not play a second time when you move the cursor off the image/link.
So my full code looked like the following (assuming the code stated above is already in the header):
<span id=”sound-holder”>
<div id=”signup”
<img class=”title” src=”<?php if ( get_option(‘woo_logo’) <> “” ) { echo get_option(‘woo_logo’).'”‘; } else { bloginfo(‘template_directory’); ?>/images/signup.png<?php } ?> ” alt=”Click to Follow Me On Twitter” />
<h1 class=”replace”>“><?php bloginfo(‘name’); ?></h1></div>
</span>Forum: Fixing WordPress
In reply to: How to play sound when cursor hovers over image/linkAnyone? Any ideas?
Forum: Fixing WordPress
In reply to: How to edit the HOME page link when using a static welcome pageWorked like a charm! Thank you so much!
Forum: Fixing WordPress
In reply to: How to edit the HOME page link when using a static welcome pageThank you for suggesting the video, however it does not provide me with the instructions to do what I am asking. It provides me with the instructions to do what I have already done.
If you visit the site, I already have my static front page. Then, the visitor clicks on the link to visit the blog. On the header I have a list of all my pages in the blog, the first being HOME. That home page link, when clicked, takes the visitor back to my static page. I want that link to take them to the blog page, not the front page.
Any ideas?
Forum: Fixing WordPress
In reply to: Why won’t videos embed into the page itself?I, also, thought that. But multiple themes have the same problem.