Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author 100plugins

    (@100plugins)

    Hi @pb75,

    It’s not possible by default, but you can always customize the output of the location bubbles to achieve this. Here is a tutorial on how to do this.

    Best regards,
    Daniel

    Thread Starter pb75

    (@pb75)

    Hello Daniel,

    Ah ok, thank you! But how can I change the already existing value “URL” in the bubble? Somehow I need to add a target=”_blank” to it.

    best regards, Patrick

    PS: I see there is also official Support. I will contact it.

    • This reply was modified 1 year, 8 months ago by pb75.
    • This reply was modified 1 year, 8 months ago by pb75.
    Thread Starter pb75

    (@pb75)

    finally I used this code in Functions.php. Works perfect for me:

    add_filter('oum_location_bubble_content', function ( $content, $location ) {
    
        $website = oum_get_location_value('Webseite', $location['post_id']);
    
        // extend bubble content
        $content .= '<div class="oum_location_custom_fields"><div class="oum_custom_field" style="font-size: 14px; font-weight: normal; padding-left: 15px; padding-right: 15px;">';
        $content .= '<strong>Webseite:</strong><br>';
        $content .= '<a href="' . $website . '" target="_blank">' . $website . '</a>';
        $content .= '</div></div><br>';
    
        return $content;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Open URL in new window/tab’ is closed to new replies.