SHARE
TWEET

Untitled

a guest Feb 12th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if ( wp_is_mobile() ) { // If it is a mobile device
  3.  
  4. get_template_part( 'mobile-front', 'page' );
  5.  
  6. } else { // If it is not a mobile device
  7.  
  8. get_template_part( 'desktop-front', 'page' );
  9.  
  10. } // end wp_is_mobile()
  11.    
  12. <?php
  13. if ( wp_is_mobile() ) { // If it is a mobile device
  14.  
  15. get_header( 'mobile' );
  16. // Display some other stuff here
  17. get_footer( 'mobile' );
  18.  
  19. } else { // If it is not a mobile device
  20.  
  21. get_header();
  22. // Display some other stuff here
  23. get_footer();
  24.  
  25. } // end wp_is_mobile()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top