Title: Help: Inserting javascript in posts(jquery truncate) not working!
Last modified: August 19, 2016

---

# Help: Inserting javascript in posts(jquery truncate) not working!

 *  [stevin](https://wordpress.org/support/users/stevin/)
 * (@stevin)
 * [16 years ago](https://wordpress.org/support/topic/help-insert-javascript-in-postsjquery-truncate/)
 * Hi, I want to truncate the words with jquery javacript like +more and -less and
   I have added the code in sigle.php file(only posts).
    I have downloaded the plugin
   from here: [http://plugins.learningjquery.com/expander/index.html#getting-started](http://plugins.learningjquery.com/expander/index.html#getting-started)
   I tested many things,adding plugins wordpress like javascript logic to be allowed
   to insert javascript in wordpress.. but still not working. Can someone help please?
   I’m testnig my site in local server and is not yet online. Thanks, Best regards

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years ago](https://wordpress.org/support/topic/help-insert-javascript-in-postsjquery-truncate/#post-1523884)
 * [http://codex.wordpress.org/Using_Javascript](http://codex.wordpress.org/Using_Javascript)
   
   [http://codex.wordpress.org/Function_Reference/wp_enqueue_script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)

Viewing 1 replies (of 1 total)

The topic ‘Help: Inserting javascript in posts(jquery truncate) not working!’ is
closed to new replies.

## Tags

 * [expand](https://wordpress.org/support/topic-tag/expand/)
 * [truncate](https://wordpress.org/support/topic-tag/truncate/)

 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/help-insert-javascript-in-postsjquery-truncate/#post-1523884)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
