use child theme for mobile version

I don’t see why it wouldn’t be possible. I use a switch plugin to display a totally different theme for mobile. A child theme is a totally different theme. The dependencies on the parent theme should still work, as they are WP functions built in. Give it a try with a super simple child theme … Read more

Best way to add some custom javascript using jquery to a child theme

Here you go. add_action(‘init’, ‘register_custom_jquery’); function register_custom_jquery() { wp_deregister_script(‘jquery’); wp_register_script( ‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js’, array(), ‘1.6.1’ ); wp_register_script( ‘my-custom-script’, ‘http://example.com/js/script.js’, array(), ‘1.0’ ); } add_action(‘wp_enqueue_scripts’, ‘add_js_to_page’); function add_js_to_page() { wp_enqueue_script( ‘jquery’ ); wp_enqueue_script( ‘my-custom-script’ ); }

WordPress Child Theme – twentyeleven

your @import doesn’t look malformed. this is what i have on a live site that is running a twenty eleven child theme. /* Theme Name: A Twenty Eleven Child Theme Description: my child theme Author: helgatheviking Template: twentyeleven Version: 1.0 */ /* Reset browser defaults */ @import url(‘../twentyeleven/style.css’); so assuming that twentyeleven is in the … Read more