Title: Add php file with javascript
Last modified: August 20, 2016

---

# Add php file with javascript

 *  [Overflow](https://wordpress.org/support/users/acrane/)
 * (@acrane)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/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.

## Tags

 * [super cache](https://wordpress.org/support/topic-tag/super-cache/)

 * 0 replies
 * 1 participant
 * Last reply from: [Overflow](https://wordpress.org/support/users/acrane/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/add-php-file-with-javascript/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
