Title: Code on front end
Last modified: August 31, 2017

---

# Code on front end

 *  Resolved [Flexer](https://wordpress.org/support/users/flexer/)
 * (@flexer)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/code-on-front-end-2/)
 * ello and thank you for the hard work on this plugin.
 * I am also seeing these code snippets after installing to test your plugin. This
   is on the front end, is this supposed to be there?
 *     ```
       <script type='text/javascript'>
       /* <![CDATA[ */
       var bwg_objectL10n = {"bwg_field_required":"field is required.","bwg_mail_validation":"This is not a valid email address.","bwg_search_result":"There are no images matching your search."};
       /* ]]> */
       </script>
       ```
   
 * AND
 *     ```
       <script type='text/javascript'>
       /* <![CDATA[ */
       var bwg_objectsL10n = {"bwg_select_tag":"Select Tag","bwg_search":"Search"};
       /* ]]> */
       </script>
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcode-on-front-end-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Photo Gallery Support](https://wordpress.org/support/users/photogallerysupport/)
 * (@photogallerysupport)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/code-on-front-end-2/#post-9457103)
 * Hey,
 * Thanks for posting your question!
    Could you please check [this forum post](https://wordpress.org/support/topic/errors-in-html/#post-9457092),
   where I responded to your question? I am posting it quoted below also.
 * > Please note, that these code blocks are necessary for translations written 
   > in Javascript files. The texts in Javascript files will not be translated without
   > this code.
 * Let me know in case you have questions.
    Cheers!

Viewing 1 replies (of 1 total)

The topic ‘Code on front end’ is closed to new replies.

 * ![](https://ps.w.org/photo-gallery/assets/icon-256x256.png?rev=2068745)
 * [Photo Gallery by 10Web - Mobile-Friendly Image Gallery](https://wordpress.org/plugins/photo-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photo-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photo-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Photo Gallery Support](https://wordpress.org/support/users/photogallerysupport/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/code-on-front-end-2/#post-9457103)
 * Status: resolved