Support » Themes and Templates » Add php file with javascript

  • I simply want to keep the sidebar dynamic on a Super Cached pages using

    <script type="text/javascript" src="my-sidebar.php"></script>

    But what do i put in the my-sidebar.php?

    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : endif;

    the above did not work.

  • The topic ‘Add php file with javascript’ is closed to new replies.