Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action('init', 'process_my_wptouch');
- function process_my_wptouch(){
- if (function_exists('bnc_wptouch_is_mobile')) {
- if(bnc_wptouch_is_mobile()) {
- add_action('wp_head', 'insert_my_wptouch_scripts');
- }
- }
- }
- function insert_my_wptouch_scripts() {
- echo <<<HTML
- <style type="text/css">
- body {background:url('http://www.example.com/wp-content/uploads/pattern.png') fixed !important;}
- </style>
- <script type="text/javascript">
- jQuery(document).ready( function($) {
- $("div.content").prepend('<div style="margin-left: 13px;"><h4>Site Description</h4></div>');
- });
- </script>
- HTML;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement