• Relatively new to php programming but I’m trying to get my wordpress installation to load in some custom js files with some embedded code using the enhance.js framework

    //call enhance() function, include relevant assets for capable browsers
    enhance({
    loadStyles: [
    '<?php bloginfo('stylesheet_url'); ?>',
    {href:'<?php get_bloginfo('template_directory'); ?> . '/css/handheld.css' , media: 'only screen and (max-width: 479px)'}
    ],
    });
    //check if the browser displays the screen media type
    enhance.mediaquery('screen');
    //returns true/false

    I keep getting an error centred around the stylesheet url

    missing ] after element list
    [Break On This Error] '<?php get_bloginfo('stylesheet_url'); ?>',

    I’m stumped. Everything else loads in fine.
    Any help greatly appreciated

  • The topic ‘Enhance custom call’ is closed to new replies.