Support › Forums › Cian – WP Theme › Features Page icons point to wrong URL
- This topic has 5 replies, 2 voices, and was last updated 6 years, 6 months ago by
CreaboxThemes.
-
AuthorPosts
-
August 25, 2016 at 11:51 pm #5449
Reed
ParticipantI develop the site in a staging area which has a different URL from the live site. When the changes are made and working I deploy from staging to live. I noticed today that only in the Features page for the icons, the links are pointing to the staging site URL. I’ve looked throughout the site and don’t see any reference in Settings or elsewhere for the staging site. How can I fix this? Even if I add a new feature with icon while on the live site, the URL still will point to the staging URL. Very strange.
August 28, 2016 at 7:12 am #5450CreaboxThemes
KeymasterHi Reed,
could you send me your url to check that please?
Regards
December 2, 2016 at 12:33 am #5575Reed
ParticipantVery sorry for the late reply. The url is: https://www.velocevent.com
December 2, 2016 at 10:35 am #5576CreaboxThemes
KeymasterHi,
it’s really strange because in the default theme there is no the option to add a link to the icons in the features section. Have you modified the theme?
Regards
December 2, 2016 at 10:17 pm #5577Reed
ParticipantYes, 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:
<?phpadd_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
December 5, 2016 at 7:35 am #5578CreaboxThemes
KeymasterYes please. Could you give me access to your admin panel? I don’t understand why it is added a link in the feature icons.
Regards
-
AuthorPosts
- You must be logged in to reply to this topic.