Title: Remove link code if no URL is set
Last modified: February 3, 2022

---

# Remove link code if no URL is set

 *  Resolved [csnodgr2](https://wordpress.org/support/users/csnodgr2/)
 * (@csnodgr2)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/remove-link-code-if-no-url-is-set/)
 * Is there a reason why manual notifications are automatically set to have a link
   even if the URL is not set? I have a test notification added and did not set 
   the URL, but the notification text is still getting the “a” tag applied to it
   so it looks like it should be linking somewhere to the end-user. Maybe this is
   just a bug, if not, I think if the URL is empty for a manual notification then
   the actual text notification should not be linked.

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

 *  Plugin Author [wpdever](https://wordpress.org/support/users/wpdever/)
 * (@wpdever)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/remove-link-code-if-no-url-is-set/#post-15325399)
 * Hi,
 * I originally only considered the use case of linking the notification with a 
   page or post with more details. But I’ll remove the a tag for empty url fields
   in the next update. Thanks for the suggestion.
 *  Thread Starter [csnodgr2](https://wordpress.org/support/users/csnodgr2/)
 * (@csnodgr2)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/remove-link-code-if-no-url-is-set/#post-15325409)
 * [@wpdever](https://wordpress.org/support/users/wpdever/) I like the option of
   being able to enter a custom URL, but appreciate that you’ll remove the a tag
   if the URL field is empty on the next update.

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

The topic ‘Remove link code if no URL is set’ is closed to new replies.

 * ![](https://ps.w.org/wp-notification-bell/assets/icon-256x256.png?rev=2439614)
 * [WP Notification Bell](https://wordpress.org/plugins/wp-notification-bell/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-notification-bell/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-notification-bell/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-notification-bell/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-notification-bell/reviews/)

## Tags

 * [links](https://wordpress.org/support/topic-tag/links/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 2 replies
 * 2 participants
 * Last reply from: [csnodgr2](https://wordpress.org/support/users/csnodgr2/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/remove-link-code-if-no-url-is-set/#post-15325409)
 * Status: resolved