Title: Using a BUTTON
Last modified: August 19, 2016

---

# Using a BUTTON

 *  [viralbytes](https://wordpress.org/support/users/viralbytes/)
 * (@viralbytes)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/using-a-button/)
 * I am trying to build a very simple menu using buttons inside a table. The table
   is just to make it look pretty. The button, when clicked, should take the User
   to anther page “Red Wine”.
 * When I click on the button, nothing happens… grrrrrrrrr
    Can anyone please correct
   this code and email it back to me at: [viralbytes@yahoo.com](https://wordpress.org/support/topic/using-a-button/viralbytes@yahoo.com?output_format=md)
 * Many thanks, Viral :o)
 * My code:
    <center><table border=”5″ bordercolor=”#660000″ style=”background-color:#
   FFFFFF” width=”98%” cellpadding=”3″ cellspacing=”3″></center> <tr> <td><center
   > <input type=”button” value=”Red Wine” onclick=”[http://funniest-vids.com/?p=42&#8243](http://funniest-vids.com/?p=42&#8243);/
   > </center></td> </table>

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/using-a-button/#post-1877239)
 * Try this:
 * `<input type="button" value="Red Wine" onclick="location.href='http://funniest-
   vids.com/?p=42';" />`
 *  Thread Starter [viralbytes](https://wordpress.org/support/users/viralbytes/)
 * (@viralbytes)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/using-a-button/#post-1877372)
 * ClaytonJames.. how can I ever thank you… hours of hair tearing and nail biting
   solved in a flash…
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/using-a-button/#post-1877410)
 * Glad it helped.
 *  Thread Starter [viralbytes](https://wordpress.org/support/users/viralbytes/)
 * (@viralbytes)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/using-a-button/#post-1877418)
 * oooooh Clayton, I spoke too soon
 * What I’m trying to achieve is a simple menu in the sidebar
    so it is available
   on every page the visitor visits.
 * This is my test site which I use to try things out.
    [http://funniest-vids.com/](http://funniest-vids.com/)
 * Using buttons doesn’t seem to work as they are too large and spread wider than
   the sidebar allows. I have no idea how to make them smaller.
    (See WINE MENU 
   1st try)
 * I’ve tried something else and to be honest, it looks pretty naff.
    (See WINE 
   MENU 2nd try)
 * Do you have any ideas or can you point me in the right direction?
 * Many thanks Viral.. :o)
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/using-a-button/#post-1877469)
 * I think the second attempt looks like a better idea than the buttons. It might
   look cleaner if you use “text-decoration:none;” to remove the underline on the
   links, and leave the text aligned left. Then you can style the “a” and “a:hover”
   colors as you see fit.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Using a BUTTON’ is closed to new replies.

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/using-a-button/#post-1877469)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
