Reply To: Features Page icons point to wrong URL

Support Forums Cian – WP Theme Features Page icons point to wrong URL Reply To: Features Page icons point to wrong URL

#5577
Reed
Participant

Yes, it is very strange. I checked the PHP code of the Features page and I didn’t see any such code there either to include an A tag, yet it is showing up on the page every time.

For Custom CSS I have this:
}
section {
padding: 30px 0px;
text-align: center;
overflow-x: hidden !important;
position: relative;
}
#spotlight1,
#spotlight2{
height: auto !important;
}

For Custom Javascript I have this:
jQuery(‘.btn-default’).on(‘click’, function(e){
e.preventDefault();
var url = jQuery(this).attr(‘href’);
if (url.indexOf(‘#’) >=0) location.href =url;
else window.open(url, ‘_blank’);
});

This is the features.php code:
<?php

add_shortcode(‘features’, ‘sec_features’);

function sec_features(){

$sectionPageID = vp_option(‘vpt_option.feature_section_page’);
if(function_exists(‘icl_object_id’ )) {
$sectionPageID = icl_object_id(vp_option(‘vpt_option.feature_section_page’ ),’page’ ,true);
}
?>

<!– ==============================================
FEATURES
=============================================== –>
<section id=”features”>
<div class=”container”>
<div class=”row”>
<div class=”heading col-md-8 col-md-offset-2 animate” data-animate=”<?php echo vp_metabox(‘vp_meta_feature.feature_sep_group.0.animation’, false, $sectionPageID); ?>”>
<span class=”section-name”><?php echo vp_metabox(‘vp_meta_feature.feature_sep_group.0.name_section’, false, $sectionPageID); ?></span>
<h2><?php echo vp_metabox(‘vp_meta_feature.feature_sep_group.0.title’, false, $sectionPageID); ?></h2>
<span class=”line”></span>
<p><?php echo vp_metabox(‘vp_meta_feature.feature_sep_group.0.text_intro’, false, $sectionPageID); ?></p>
</div>
</div>
<div class=”row”>
<!– FEATURES LEFT SIDE –>
<div class=”features-wrapper col-md-2 col-sm-3″ >
<?php
$features = vp_metabox(‘vp_meta_feature.feature_group’, false, $sectionPageID);
$i = 1;
if (is_array($features)){
foreach ($features as $feature){

if ($i%2 != 0){
echo'<div class=”features-desc col-md-12 col-sm-12 col-xs-6 animate” data-animate=”‘.vp_metabox(‘vp_meta_feature.feature_sep_group.0.animation’, false, $sectionPageID).'”>
<div class=”hi-icon-wrap hi-icon-effect hi-icon-effectb”>

<div class=”hi-icon fa ‘.esc_attr($feature[‘fa_1’]).'”></div>

</div>
<h4>’.$feature[‘title’] .'</h4>
<p>’.$feature[‘text’] .'</p>
</div>’;
}
$i++;
}
} ?>
</div>
<!– END FEATURES LEFT SIDE –>

<!– FEATURES IMAGES –>
<figure class=”col-md-8 col-sm-6 features-images”>
” src=”<?php echo esc_url(vp_metabox(‘vp_meta_feature.feature_sep_group.0.feature_image_left’, false, $sectionPageID)) ?>” alt=”” title=””>
” src=”<?php echo esc_url(vp_metabox(‘vp_meta_feature.feature_sep_group.0.feature_image_right’, false, $sectionPageID)) ?>” alt=”” title=””>
” src=”<?php echo esc_url(vp_metabox(‘vp_meta_feature.feature_sep_group.0.feature_image_center’, false, $sectionPageID)) ?>” alt=”” title=””>
</figure>
<!– END FEATURES IMAGES –>

<!– FEATURES RIGTH SIDE –>
<div class=”features-wrapper col-md-2 col-sm-3″ >
<?php
$features = vp_metabox(‘vp_meta_feature.feature_group’, false, $sectionPageID);
$i = 1;
if (isset($features)){
foreach ($features as $feature){

if ($i%2 == 0){
echo'<div class=”features-desc col-md-12 col-sm-12 col-xs-6 animate” data-animate=”‘.vp_metabox(‘vp_meta_feature.feature_sep_group.0.animation’, false, $sectionPageID).'”>
<div class=”hi-icon-wrap hi-icon-effect hi-icon-effectb”>

<div class=”hi-icon fa ‘.esc_attr($feature[‘fa_1’]).'”></div>

</div>
<h4>’.$feature[‘title’] .'</h4>
<p>’.$feature[‘text’] .'</p>
</div>’;
}
$i++;
}
} ?>
</div>
<!– END FEATURES RIGHT SIDE –>

</div> <!– END ROW –>
</div> <!– END CONTAINER –>
Request Demo or Contact Us
</section> <!– END FEATURES SECTION –>

<?php

}

?>

Do you need anything else? I can give you SFTP access to the server if you need it? I’ve been trying to figure this out for a while now.

Reed