• Hi all,

    Wasn’t sure where to post this, and I couldn’t find any posts about it. But I have a javascript function which relies on the path to the images folder in my theme’s directory. I usually do something like this in php,

    <?php bloginfo('template_url'); ?>/images/top_about_us_on2.jpg

    But because I am using javascript, I can’t just use the bloginfo(‘template_url’) function. Is there anyway I can still use it?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Using wordpress variables in Javascript’ is closed to new replies.