Title: link a shortcode block
Last modified: December 6, 2022

---

# link a shortcode block

 *  Resolved [gtogan1](https://wordpress.org/support/users/gtogan1/)
 * (@gtogan1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/)
 * On this website you see a few badges who are displayed with a shortcode. is it
   possible to allow users to click on this badge and link them somewhere else on
   the website?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flink-a-shortcode-block%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/#post-16265990)
 * Hi [@gtogan1](https://wordpress.org/support/users/gtogan1/) – the simplest way
   to achieve your goal is to insert images using the Image block and adding a link
   to the block.
 * [https://wordpress.org/support/article/image-block/#link-settings](https://wordpress.org/support/article/image-block/#link-settings)
 * If you’re asking specifically about how to modify the badge shortcode being used
   on that page, you’d need to ask the developers of the badge shortcode if there
   is a shortcode parameter available for a link, as each shortcode is different,
   depending on how it’s been coded by the developer.
 *  Thread Starter [gtogan1](https://wordpress.org/support/users/gtogan1/)
 * (@gtogan1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/#post-16266253)
 * hello kathryn. i don’t really think there needs to be something done about the
   shortcode. I’m just simply asking how i can add a link to the shortcode. So after
   people click on a badge, they will be linked to another page. Is there not a 
   link option here?: [https://drive.google.com/file/d/1-FP667V5G5jzntUbkP_z-yNutyqsWYCT/view?usp=share_link](https://drive.google.com/file/d/1-FP667V5G5jzntUbkP_z-yNutyqsWYCT/view?usp=share_link)
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/#post-16266262)
 * Let me try to explain it a different way:
 * A shortcode is a piece of code that can take various parameters. For example,
   one parameter in your shortcode example is “tid.” The meaning of “tid” and what
   it does on the front end is defined entirely by the developers who created your
   shortcode.
 * To add extra functionality like a link to a shortcode, it needs to have been 
   programmed inside the shortcode itself, by the developers. As I’m not familiar
   with your shortcode I can’t tell you whether or not it comes with a URL or link
   parameter, so you’ll need to ask the developers as they’re best placed to help
   you. There’s no “generic” parameter you can add to a shortcode to do something
   like add a link or anything else.
 * I hope this helps explain things better.
 *  Thread Starter [gtogan1](https://wordpress.org/support/users/gtogan1/)
 * (@gtogan1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/#post-16266303)
 * I see… i saw that there are multiple options with the gutenberg editor how you
   can link things. Is there a creative way i could use the editor for example to
   put the shortcode in a box or something else and then redirect users somewhere
   else?
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/#post-16266713)
 * One thing you could test is using a Custom HTML block and inside the block, put
   your shortcode, wrapped in an HTML link. May not work but perhaps worth a try.
   🙂
 * What plugin are you using for your shortcode?
 *  Thread Starter [gtogan1](https://wordpress.org/support/users/gtogan1/)
 * (@gtogan1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/#post-16266777)
 * The plugin i’m using for the badges is called ”WP reviews slider pro”
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/#post-16268914)
 * Great – I’d definitely suggest asking the plugin developers directly if there’s
   a way to add a link, they must have been asked before. 🙂
 * [https://wpreviewslider.com/support/](https://wpreviewslider.com/support/)
 *  Thread Starter [gtogan1](https://wordpress.org/support/users/gtogan1/)
 * (@gtogan1)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/#post-16269165)
 * Yes, i was already talking with them about it but they too couldn’t come up with
   a solution for me. But i gave it a try with the wrapped html link that you suggested,
   and it worked! i found a code on the internet and pasted it on my website but
   there is only one small problem: The numbers and letters are underlined. do you
   know why that is?: [https://drive.google.com/file/d/1hHcQOxrWnJ9FabM0W0ul_TE0EtvdeBfA/view?usp=share_link](https://drive.google.com/file/d/1hHcQOxrWnJ9FabM0W0ul_TE0EtvdeBfA/view?usp=share_link)
   
   [https://drive.google.com/file/d/1IuIS54a-LApOhu8UcS_CPjwrbvhXsPyp/view?usp=share_link](https://drive.google.com/file/d/1IuIS54a-LApOhu8UcS_CPjwrbvhXsPyp/view?usp=share_link)
    -  This reply was modified 3 years, 6 months ago by [gtogan1](https://wordpress.org/support/users/gtogan1/).
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/#post-16269410)
 * > But i gave it a try with the wrapped html link that you suggested, and it worked!
 * Great!
 * > there is only one small problem: The numbers and letters are underlined. do
   > you know why that is?
 * Your theme may be defining links as having underlines, unless more specific CSS
   overrides that style, so could add some custom CSS to remove the underlines on
   links within your badges.
 * I’ll mark this thread as resolved but feel free to start a new one if you have
   other questions relating to the block editor. Cheers!

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

The topic ‘link a shortcode block’ is closed to new replies.

 * ![](https://ps.w.org/gutenberg/assets/icon-256x256.jpg?rev=1776042)
 * [Gutenberg](https://wordpress.org/plugins/gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenberg/reviews/)

## Tags

 * [link](https://wordpress.org/support/topic-tag/link/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 9 replies
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/link-a-shortcode-block/#post-16269410)
 * Status: resolved