title: How to add "x" close button onto upper right corner of uk-modal popup?
body: <p>I'm trying to add small "x" close button into top right corner of uk-modal popup. How can i properly add its php code and css and maybe its javascript?</p>
  
  <p>I've tried to add below 1, 2 codes into 3 code block:</p>
  
  <p>1) First code i've added:</p>
  
  <pre><code>&lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;×&lt;/button&gt;
  </code></pre>
  
  <p>2) Second code added:</p>
  
  <pre><code>&lt;div id="my-id"&gt;
      &lt;div class="uk-modal-dialog"&gt;
          &lt;button class="uk-modal-close-default" type="button" uk-close&gt;&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="my-id"&gt;
      &lt;div class="uk-modal-dialog"&gt;
          &lt;button class="uk-modal-close-outside" type="button" uk-close&gt;&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>3) To this code block of popup:</p>
  
  <pre><code>   &lt;div class="uk-modal-dialog"&gt;
      &lt;div class="uk-modal-header"&gt;
              &lt;h2&gt;&lt;?php echo esc_attr_e( $options['popuptitle'] ); ?&gt;&lt;/h2&gt;
          &lt;/div&gt;
          &lt;div class="uk-modal-content"&gt;&lt;?php echo stripslashes( $options['popuptext'] ); ?&gt;&lt;/div&gt;
          &lt;div class="uk-modal-footer"&gt;
              &lt;button id="button1" type="button" class="uk-button uk-button-large uk-button-&lt;?php echo esc_attr_e( $options['popupbutton1style'] ); ?&gt;&lt;?php if( $options['popupbuttonoptions'] != 'button-1-redirect' ) echo ' uk-modal-close'; ?&gt;"&gt;&lt;?php echo esc_attr_e( $options['popupbutton1text'] ); ?&gt;&lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I expected to get the true place of "x" close button on popup, but it's not in proper position and also can't close the modal popup. </p>
  
  <p>I expect to get it like in the image below:</p>
  
  <p>How to fix?</p>
  
  <p><a href="https://i.stack.imgur.com/CU9bR.png" rel="nofollow noreferrer">example x button</a></p>