• Resolved xserial

    (@xserial)


    Hello guys,

    can anyone tell me if it`s possible to filter or replace a given URL from a tile button.

    The custom post type “tile” is a part of the Metro Theme: https://themify.me/docs/metro-documentation (Themify Framework)

    The problem is that you can of course set an URL for the button type, but it`s not possible to set a target type (_blank or _new) to the tile button.

    Is there any way to get the content output and replace the href=url with href=url target_blank ? or maybe any better solution within the tile functions itself?

    Would be great to get some suggestions.

Viewing 1 replies (of 1 total)
  • Thread Starter xserial

    (@xserial)

    I have now found the right module file and solved it by the following in the themify class shortcodes


    case ‘button’:
    if ( ” != $button_link = themify_get(‘external_link’) ) {
    $is_ydk_page = ‘ydk.me’;
    $intern_link = strpos($button_link, $is_ydk_page);
    if ($intern_link !== false) {
    $out .= ‘< a title=”‘.the_title_attribute(‘echo=0’).'” href=”‘.esc_url($button_link).'”>’;
    }
    else {
    $out .= ‘< a title=”‘.the_title_attribute(‘echo=0’).'” href=”‘.esc_url($button_link).'” target=”_blank”>’;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Tiles] Replace/Set Target of an URL’ is closed to new replies.