Title: How to create button
Last modified: August 21, 2016

---

# How to create button

 *  [Xavi86](https://wordpress.org/support/users/xavi86/)
 * (@xavi86)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-create-button/)
 * I want to create a simple plugin that creates a similar to “Get Shortlink”, side
   by side with it. How can I do it (just the part of adding the button)?

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-create-button/#post-4311003)
 * Hook the filter ‘the_content’ and add you content either to the end or beginning
   of the passed HTML if any of certain template tags return true, such as `is_archive()
   || is_single()`.
 * Your content wouldn’t normally be side by side with Get Shortlink because that
   plugin inserts a break clear div so that it occurs on a line by itself. If your
   filter hook fires after Get Shortlink, you could delete that content if found.

Viewing 1 replies (of 1 total)

The topic ‘How to create button’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-create-button/#post-4311003)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
