Title: creating a button
Last modified: August 20, 2016

---

# creating a button

 *  [astima](https://wordpress.org/support/users/astima/)
 * (@astima)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/creating-a-button/)
 * I am using the log out of password-protected post plug-in. I am trying to make
   my link to a button. The only thing I can’t seem to do is get quotes around the
   URL. This is the code that I have now.
 * `echo '<input type="button" value="Log out of password protected posts" onclick
   ="window.location.href=' . posts_logout_url() . '">';`
 * if I add ” after href= it doesn’t wrap it URL quotes. How do I add quotes around
   the URL.

The topic ‘creating a button’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [astima](https://wordpress.org/support/users/astima/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/creating-a-button/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
