Title: Edit code for the post?
Last modified: August 21, 2016

---

# Edit code for the post?

 *  Resolved [jkweb](https://wordpress.org/support/users/jkweb/)
 * (@jkweb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/edit-code-for-the-post/)
 * Hi.
 * I wold like to change some of the code in this awesome plugin. I would like to
   make the whole post the link and to only the header. Or maybe just but a “read
   more” at the end of the post.
 * Is this possible?
 * [http://wordpress.org/plugins/nomad-world-map/](http://wordpress.org/plugins/nomad-world-map/)

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

 *  [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/edit-code-for-the-post/#post-4302200)
 * Are you comfortable editing code? You do realize that a next update will overwrite
   your changes, and you will have to edit the code again?
 * It’s possible though, but it all depends on how good you are with editing code.
   If you are comfortable doing that, I can post the code here to make the whole
   text click able.
 * I will try to add an option to add a “read more” at the end of the post in the
   next release.
 *  Thread Starter [jkweb](https://wordpress.org/support/users/jkweb/)
 * (@jkweb)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/edit-code-for-the-post/#post-4302202)
 * Okey.
    I am comfortable writing code but not javascript.
 * Thanks for replying!
    Jim
 *  [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/edit-code-for-the-post/#post-4302206)
 * This code is untested, but it should work. If not, and you want to of course,
   email me your ftp details and I will have a look.
 * Open the nwm-gmap3.js file and remove the code from line 185 till 193, and replace
   it with this.
 *     ```
       var destinationContent;
   
       if ( destination.data.url ) {
           destinationContent = '<a href="' + destination.data.url + '">' + destination.data.content + '</a>';
       } else {
           destinationContent = destination.data.content;
       }
   
       if ( destination.data.arrival ) {
           if ( destination.data.departure ) {
           $destination = '<li data-id="' + destination.data.nwm_id + '">' + thumb + '<h2>' + title + '</h2><p class="nwm-travel-schedule"><span>' + destination.data.arrival + '</span><span> - ' + destination.data.departure + '</span></p><p>'+ destinationContent + '</p></li>';
           } else {
               $destination = '<li data-id="' + destination.data.nwm_id + '">' + thumb + '<h2>' + title + '</h2><p class="nwm-travel-schedule"><span>' + destination.data.arrival + '</span></p><p>'+ destinationContent + '</p></li>';
           }
       } else {
           $destination = '<li data-id="' + destination.data.nwm_id + '">' + thumb + '<h2>' + title + '<span>' + destination.data.date + '</span></h2><p>'+ destinationContent + '</p></li>';
       }
       ```
   
 * As I said before, the next update will undo these changes. A nice tool to compare
   old and new files is [Compare It](http://www.grigsoft.com/wincmp3.htm). It might
   make it easier to see what has changed in new files, and include these changes
   again.

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

The topic ‘Edit code for the post?’ is closed to new replies.

 * ![](https://ps.w.org/nomad-world-map/assets/icon-256x256.jpg?rev=984088)
 * [Nomad World Map](https://wordpress.org/plugins/nomad-world-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nomad-world-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nomad-world-map/)
 * [Active Topics](https://wordpress.org/support/plugin/nomad-world-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nomad-world-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nomad-world-map/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/edit-code-for-the-post/#post-4302206)
 * Status: resolved