Title: hide border/shadow
Last modified: March 24, 2025

---

# hide border/shadow

 *  Resolved [mod4ps](https://wordpress.org/support/users/mod4ps/)
 * (@mod4ps)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/hide-border-shadow/)
 * ![](https://i0.wp.com/pstype.ch/wp-content/uploads/2025/03/shadow.png?ssl=1)
 * How can I hide the border / shadow **around the Link** when the modal is loaded?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-border-shadow%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/hide-border-shadow/#post-18379574)
 * [@mod4ps](https://wordpress.org/support/users/mod4ps/) That is the focus state
   of a link, the modal focuses on the first focusable element with the modal when
   it opens for accessibility.
 * If you want to skip this behavior, you can add the following to your child theme**
   functions.php** file or in a snippet somewhere:
 *     ```wp-block-code
       /*** Prevents the light modal block from focusing on a specific element when it opens.** @return void*/add_action(    'wp_enqueue_scripts',    function () {        wp_add_inline_script(            'cloudcatch-light-modal-block-view-script',            'window.lmbFocusableElements = "";',            'before'        );    });
       ```
   
 *  Thread Starter [mod4ps](https://wordpress.org/support/users/mod4ps/)
 * (@mod4ps)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/hide-border-shadow/#post-18383334)
 * Thank you David
   This is exactly the solution to my problem. Why should the focus
   status be displayed (with a shadow)? The status is usually displayed via the 
   link settings (hover, focus) in the CSS.
 *  Plugin Author [David Jensen](https://wordpress.org/support/users/dkjensen/)
 * (@dkjensen)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/hide-border-shadow/#post-18391442)
 * Hi [@mod4ps](https://wordpress.org/support/users/mod4ps/)
 * Your theme and/or browser is controlling the default focus behavior. This plugin
   is not opinionated on such styling and is not controlling that border/outline/
   box-shadow state.
 *  Thread Starter [mod4ps](https://wordpress.org/support/users/mod4ps/)
 * (@mod4ps)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/hide-border-shadow/#post-18395344)
 * Hi David
   Good to know! Thanks for solving the problem.
 * Best regards
   Peter

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

The topic ‘hide border/shadow’ is closed to new replies.

 * ![](https://ps.w.org/light-modal-block/assets/icon.svg?rev=3399001)
 * [Light Modal Block](https://wordpress.org/plugins/light-modal-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/light-modal-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/light-modal-block/)
 * [Active Topics](https://wordpress.org/support/plugin/light-modal-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/light-modal-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/light-modal-block/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mod4ps](https://wordpress.org/support/users/mod4ps/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/hide-border-shadow/#post-18395344)
 * Status: resolved