Viewing 9 replies - 1 through 9 (of 9 total)
  • Dear pfffishhhh,
    Something like newwindow=true should help.
    For instance, in my “Feed” Post, I’ve the following request :

    [if-location]
    <div>Location: [maps-link newwindow=”true”][location][/maps-link]</div>
    [/if-location]

    [if-description]
    <div>Description: [description newwindow=”true”]</div>[/if-description]

    I guess it should help you,
    rgds
    Vincent

    Thread Starter pffflishhhh

    (@pffflishhhh)

    Thanks for the response, but I tried this and it didn’t work!

    Plugin Contributor Nick Young

    (@nickyoung87)

    Are you using the simple display options or the event builder? Can you post your event builder code if that is what you are using?

    I’m experiencing the same issue, I have included my builder code below. Modified to match the above example, but still does not work. Did not think it would since “newwindow” is not a supported attribute of description. I have tried including a [/description] at the end to “match” the others, but no change.

    Both the map-link and more link open in a new window. But the parsed links inside of the description do not. Thoughts? (http://growingstems.org/event-calendar/)

    [event-title]<br />
    <br />
    Starts: [[start-time]<br />
    Ends: [end-date] - [end-time]<br />
    <br />
    [if-location][maps-link newwindow="true"][location][/maps-link]
    [/if-location]<br />
    <br />
    [if-description]
    [description newwindow="true"]
    [/if-description]<br />
    <br />
    [link newwindow="true"]More details...[/link]

    Updated my builder code with a little more formatting. Still experiencing the link issue.

    <b>[event-title]</b><br />
    <div style="padding-left: 20px;">
    [if-single-day]
       > [start-time] - [end-time]<br />
    [/if-single-day]
    [if-multi-day]
       [if-first]<br />
          [start-time] to<br />
       [/if-first]<br />
       [if-not-first]
          [start-date] - [start-time]<br />
       [/if-not-first]<br />
       [end-date] - [end-time]<br />
    [/if-multi-day]
    [if-location]
       >[maps-link newwindow="true"]
          [location]
       [/maps-link]
    [/if-location]
    </div>
    <br />
    [if-description]
       [description newwindow="true"]<br />
    [/if-description]
    <br />
    [link newwindow="true"]
       More details...
    [/link]
    <br />
    <hr />
    Plugin Contributor Nick Young

    (@nickyoung87)

    If it is a link that is in the description then we don’t have control over making that open in a new window currently. Sorry for the inconvenience currently.

    This may be something you want to add as a feature request by checking out this post:

    https://wordpress.org/support/topic/public-roadmaps-and-feature-requests?replies=1

    Since there is no built in support for this feature and it is a fairly necessary one for my website, I have taken the time to modify the source of your plugin to suit my needs. Hope you don’t mind.

    For those of you who are looking for the same, you can modify line 354 of the file “class-gce-event.php” from

    $description = make_clickable( $description );

    to

    $description = links_add_target( make_clickable( $description ) );

    The function “links_add_target” is a built in WordPress function, I just figured it would be easy to use.

    Hope that helps someone.

    Thread Starter pffflishhhh

    (@pffflishhhh)

    Thank you all for the responses and that worked perfectly. Thanks Zstack!

    Plugin Contributor Nick Young

    (@nickyoung87)

    @zstack,

    You can add that as a request on GitHub too if you would like. If you don’t then I will get it in the next release anyway. Good call here, I did not know that there was a function that did that. Thanks!

    Here is the repo: https://github.com/pderksen/WP-Google-Calendar-Events

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Description Links’ is closed to new replies.