Support Forum

For all questions related to themes and plugins!

Enter search keyword e.g. "footer color".

  • Registration is Required

    Registration is required to post questions to support forum. ThemeForest buyers also need to obtain Purchase code to be able to post on forum.

    Please read here how to obtain Purchase code.

#1558
Vladimir
Keymaster

Hi Mark,

Script from footer was conflicting with one in content, it’s fixed now.

If anyone needs it before here is fixed version of “pi_shortcodes_contact_info” function that can be found in “wp-content plugins / metropolis-core / includes / shortcodes / shortcodes.php”.

function pi_shortcodes_contact_info($atts, $content = null) {
    extract(shortcode_atts(array(
        'address' => '',
        'phone' => '',
        'email' => ''
                    ), $atts));
    
    $randomID = rand(1, 99);

    $address_label = __('Address:', 'pi_framework');
    $phone_label = __('Phone:', 'pi_framework');
    $email_label = __('E-Mail: ', 'pi_framework');

    $contact_address = (!empty($address)) ? "<li class='address'>
                    <p>{$address_label} {$address}</p>
                </li>" : '';

    $contact_phone = (!empty($phone)) ? "<li class='phone'>
                    <p>{$phone_label} {$phone}</p>
                </li>" : '';

    if (!empty($email)) {
        $contact_email = "<li class='mail'>
                    <p>{$email_label}</p>
                </li>";

        $email_parts = explode('@', $email);
        $contact_email .= "<script>var m = '{$email_parts[0]}';
            m += '@';            
            m += '{$email_parts[1]}';
            var href = '<a href=\"mailto:' + m + '\">' + m + '</a>';
            jQuery('#contact-info-{$randomID}').find('.mail p').append(href);
            </script>";
    } else {
        $contact_email = '';
    }

    $html = "<ul class='contact-info' id='contact-info-{$randomID}'>
                {$contact_address}
                {$contact_phone}
                {$contact_email}
            </ul>";

    return $html;
}

Fix will be included in next update of the theme.

Vladimir