Viewing 3 replies - 1 through 3 (of 3 total)
  • Tijmen Smit

    (@tijmensmit)

    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

    (@jkweb)

    Okey.
    I am comfortable writing code but not javascript.

    Thanks for replying!
    Jim

    Tijmen Smit

    (@tijmensmit)

    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. 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.