Features Page icons point to wrong URL

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5449
    Reed
    Participant

    I 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.

    #5450
    CreaboxThemes
    Keymaster

    Hi Reed,

    could you send me your url to check that please?

    Regards

    #5575
    Reed
    Participant

    Very sorry for the late reply. The url is: https://www.velocevent.com

    #5576
    CreaboxThemes
    Keymaster

    Hi,

    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

    #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

    #5578
    CreaboxThemes
    Keymaster

    Yes 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.