Header link coding issue

Discussion in 'WordPress' started by wiseassoffice, Dec 13, 2007.

  1. #1
    I tried...Site is noheat.com

    <div id="header" onclick="location.href='http://www.noheat.com/'">
    </div>

    but it just messes up my search box...

    Here's what I have to work with any ideas...

    <div id="header">
    <a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('description'); ?></a><br />
    <?php bloginfo('description'); ?>




    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
    <label for="s"></label>
    <div align="right">
    <table width="150" border="0" cellspacing="5" cellpadding="5">
    <tr>
    <th scope="row"><div align="right">
    <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
    <input name="submit" type="submit" id="searchsubmit" value="Search" />
    </div></th>
    </tr>
    </table>
    <br />
    </div>
    </form>
     
    wiseassoffice, Dec 13, 2007 IP
  2. CypherHackz

    CypherHackz Well-Known Member

    Messages:
    447
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    155
    #2
    your search box is fine in my firefox though. i don't see any problem.

    -cypher.
     
    CypherHackz, Dec 13, 2007 IP
  3. wiseassoffice

    wiseassoffice Peon

    Messages:
    345
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I took the code out because it was screwing up my search box, so now you can't click on the logo to go home. I still have a link in my toolbar to go "home" there but I get complaints all the time that I need to link my logo up.
     
    wiseassoffice, Dec 13, 2007 IP
  4. wiseassoffice

    wiseassoffice Peon

    Messages:
    345
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ugh I so need to get my wordpress theme redesigned. Still no answer eh?
     
    wiseassoffice, Dec 17, 2007 IP
  5. CypherHackz

    CypherHackz Well-Known Member

    Messages:
    447
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    155
    #5
    dont know buddy. because when we look at your theme, everything is find. maybe because you took out the code though.

    -cypher.
     
    CypherHackz, Dec 17, 2007 IP
  6. wiseassoffice

    wiseassoffice Peon

    Messages:
    345
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #6
    What I am really looking for is a way to be able to click on the logo to take me home without screwing up the search bar.

    wise
     
    wiseassoffice, Dec 17, 2007 IP
  7. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #7
    Try:

    <div id="header" onclick="location.href='<?php echo get_settings('home'); ?>';" style="cursor: pointer;">
    	</div>
    Code (markup):
    Nice site, by the way.
     
    mizaks, Dec 17, 2007 IP
  8. wiseassoffice

    wiseassoffice Peon

    Messages:
    345
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks Mizaks thats the code I had in there before, now try and search. If you click in the search box it wants send you back to the "home" page without entering in your search text.
     
    wiseassoffice, Dec 17, 2007 IP
  9. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #9
    Here is the code for my search form:

    <form id="searchform" method="get" action="<?php bloginfo('home'); ?>/" ><input type="text" value="search" onfocus="if (this.value == 'search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'search';}" size="18" maxlength="50" name="s" id="s" /><input name="submit" type="submit" id="submit" value="search" /></form>
    Code (markup):
    Try substituting it in for yours and see if it makes a difference.
     
    mizaks, Dec 17, 2007 IP
  10. CypherHackz

    CypherHackz Well-Known Member

    Messages:
    447
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    155
    #10
    try this:

    <div id="header">
    
    <div class="subheader" onclick="location.href='<?php echo get_settings('home'); ?>';" style="cursor: pointer;"><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('description'); ?></a><br />
    <?php bloginfo('description'); ?>
    </div> <!--close subheader-->
    
    <form id="searchform" method="get" action="<?php bloginfo('home'); ?>/" ><input type="text" value="search" onfocus="if (this.value == 'search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'search';}" size="18" maxlength="50" name="s" id="s" /><input name="submit" type="submit" id="submit" value="search" /></form>
    
    </div> <!--close header-->
    Code (markup):
    -cypher.
     
    CypherHackz, Dec 17, 2007 IP
  11. wiseassoffice

    wiseassoffice Peon

    Messages:
    345
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Well it kinda sorta works...halfway down the logo, this is really weird.
     
    wiseassoffice, Dec 17, 2007 IP
  12. CypherHackz

    CypherHackz Well-Known Member

    Messages:
    447
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    155
    #12
    it is because fo the css. need to check your css then. but it looks ok in my firefox though. ;)

    -cypher.
     
    CypherHackz, Dec 17, 2007 IP
  13. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #13
    Appears to be working fine in Opera.
     
    mizaks, Dec 18, 2007 IP