Title: Adding text before the each element
Last modified: August 30, 2016

---

# Adding text before the each element

 *  [Luke Cavanagh](https://wordpress.org/support/users/lukefiretoss/)
 * (@lukefiretoss)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-text-before-the-each-element/)
 * What would be the correct way to have the following show before each element 
   of the plugin.
 * “Listed: NYSEMKT:AST”
    “Price: $5.55” “Change: 0.00” “% Change: 0.00%”
 * [http://asterias.pvmdev.com/investors/](http://asterias.pvmdev.com/investors/)
 * [https://wordpress.org/plugins/show-stock-quotes/](https://wordpress.org/plugins/show-stock-quotes/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [kjbenk](https://wordpress.org/support/users/kjbenk/)
 * (@kjbenk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-text-before-the-each-element/#post-6758593)
 * In the main file you can add the “Listed: ” text to line 146, right before the
   start of the `<a>` tag.
 * Then for the others you will have to add all the respective text to each line
   in the file `/includes/js/kjb_quotes.js` at lines 80-82.
 * For example, “Price: ” can be added to line 80 like this:
 * `$(".kjb_show_stock_quotes_quote_" + table_id + symbol).text('Price: $' + commaSeparateNumber(
   price));`
 *  Thread Starter [Luke Cavanagh](https://wordpress.org/support/users/lukefiretoss/)
 * (@lukefiretoss)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-text-before-the-each-element/#post-6758596)
 * I was going the CSS method and using
 * .kjb_show_stock_quotes_ticker:before {
    content: “Listed: NYSEMKT: “; }
 * .kjb_show_stock_quotes_quote_kjb_show_stocks–1AST:before {
    content: “Price: “;}
 * .kjb_show_stock_quotes_change_AST:before {
    content: “Change: “; }
 * .kjb_show_stock_quotes_change_p_AST:before {
    content: “% Change: “; }
 *  Plugin Author [kjbenk](https://wordpress.org/support/users/kjbenk/)
 * (@kjbenk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-text-before-the-each-element/#post-6758598)
 * Yeah that could work as well. Did you have success with it?
 *  Thread Starter [Luke Cavanagh](https://wordpress.org/support/users/lukefiretoss/)
 * (@lukefiretoss)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-text-before-the-each-element/#post-6758600)
 * Yep it seems to be working fine.
 * If a shortcode was built for the plugin and the options to add those titles in
   before each element in the plugin settings, would be a cool couple of features.
   Ended up just using Widget Shortcode.
 *  Plugin Author [kjbenk](https://wordpress.org/support/users/kjbenk/)
 * (@kjbenk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/adding-text-before-the-each-element/#post-6758602)
 * Great!
 * Let me know if you have any other questions.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding text before the each element’ is closed to new replies.

 * ![](https://ps.w.org/show-stock-quotes/assets/icon-256x256.jpg?rev=1267378)
 * [Show Stock Quotes by 99 Robots](https://wordpress.org/plugins/show-stock-quotes/)
 * [Support Threads](https://wordpress.org/support/plugin/show-stock-quotes/)
 * [Active Topics](https://wordpress.org/support/plugin/show-stock-quotes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/show-stock-quotes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/show-stock-quotes/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [kjbenk](https://wordpress.org/support/users/kjbenk/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/adding-text-before-the-each-element/#post-6758602)
 * Status: not a support question