Sections Content Appearing in Source Code Despite Being Disabled

Home Forums SKT Biz/Corp Theme Support Sections Content Appearing in Source Code Despite Being Disabled

Tagged: ,

This topic contains 6 replies, has 2 voices, and was last updated by  Forum Moderator 5 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #109484

    info1389
    Member
    • Topics: 2
    • Replies: 3
    • Total: 5
    Member since: September 21, 2018

    I am working on this site

    https://stationeryexpress.org

    and have disabled all of the Sections but some of the content is still showing in the source code of the page. including giving me an additional (unwanted) h1 tag on the page.

    This is in the source code and I want to remove

    <section id=”wrapTwo” style=”display:none”>
    <div class=”container”>
    <div class=”services-wrap”>

    <div class=”three_column “>

    <h3>About Business1</h3>

    <p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sodales suscipit tellus, ut tristique neque suscipit a. Mauris tristique lacus quis leo imperdiet sed pulvinar dui fermentum. Aenean sit amet diam non tortor sagittis varius. Aenean at lorem nulla, sit amet interdum nibh.</p>.</p>


    </div>

    <div class=”three_column “>

    <h3>About Business2</h3>

    <p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sodales suscipit tellus, ut tristique neque suscipit a. Mauris tristique lacus quis leo imperdiet sed pulvinar dui fermentum. Aenean sit amet diam non tortor sagittis varius. Aenean at lorem nulla, sit amet interdum nibh.</p>.</p>


    </div>

    <div class=”three_column last_column”>

    <h3>About Business3</h3>

    <p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sodales suscipit tellus, ut tristique neque suscipit a. Mauris tristique lacus quis leo imperdiet sed pulvinar dui fermentum. Aenean sit amet diam non tortor sagittis varius. Aenean at lorem nulla, sit amet interdum nibh.</p>.</p>


    </div>

    <div class=”clear”></div>
    </div>
    </div>
    </section><!– container –>

    <div class=”clear”></div>

    <section id=”wrapOne” style=”display:none”>
    <div class=”container”>
    <div class=”wrap_one”>
    <h1>Welcome to SKT Local Business</h1>
    <div class=”welcomethumb”></div>

    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sodales suscipit tellus, ut tristique neque suscipit a. Mauris tristique lacus quis leo imperdiet sed pulvinar dui fermentum. Aenean sit amet diam non tortor sagittis varius. Aenean at lorem nulla, sit amet interdum nibh.</p>
    <p>Aliquam gravida odio nec dui ornare tempus elementum lectus rhoncus. Suspendisse lobortis pellentesque orci, in sodales nisi pretium sit amet. Aenean vulputate, odio non euismod eleifend, magna nisl elementum lorem.</p>

    • <i class=”fa fa-file-text-o”></i> 1. Plan
    • <i class=”fa fa-pencil”></i> 2. Design
    • <i class=”fa fa-building-o”></i> 3. Delivery

    </div><!– .wrap_one–>
    <div class=”clear”></div>
    </div><!– .container –>
    </section><!– #wrapOne –>

    How can I get rid of it?

    Thanks.

    #109497

    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 19826
    • Total: 19826
    Member since: August 16, 2013

    Hi,

    Kindly send us your URL of the site and WordPress admin details (Username & Password) via sktthemes.net/contact Please mention this forum URL while replying so that we understand what needs to be done.

    Regards,
    Chris

    #109595

    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 19826
    • Total: 19826
    Member since: August 16, 2013

    Hi,

    Issue resolved from our end. Kindly check and confirm.

    Regards,
    Chris

    #109606

    info1389
    Member
    • Topics: 2
    • Replies: 3
    • Total: 5
    Member since: September 21, 2018

    Perfect. Thanks, Chris.

    Can you point me to what the solution was? So I can avoid this if it comes up again.

    Thanks,

    Stephen

    #109702

    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 19826
    • Total: 19826
    Member since: August 16, 2013

    Hi,

    Kindly edit page-box.php file and replace all the codes with below codes:

    <?php if ( is_home() || is_front_page() ) { ?> <?php if( of_get_option('hideservicesoffered', true) == '' ) { ?> <section id="wrapTwo"> <div class="container"> <div class="services-wrap"> <?php $servicesoffered = of_get_option('servicesoffered'); ?> <?php if(!empty($servicesoffered)) { ?> <h2 class="section_title"><?php echo of_get_option('servicesoffered'); ?></h2> <?php } ?> <?php $boxArr = array(); if( of_get_option('box1',true) != '' ){ $boxArr[] = of_get_option('box1',false); } if( of_get_option('box2',true) != '' ){ $boxArr[] = of_get_option('box2',false); } if( of_get_option('box3',true) != '' ){ $boxArr[] = of_get_option('box3',false); } if( of_get_option('box4',true) != '' ){ $boxArr[] = of_get_option('box4',false); } if( of_get_option('box5',true) != '' ){ $boxArr[] = of_get_option('box5',false); } if( of_get_option('box6',true) != '' ){ $boxArr[] = of_get_option('box6',false); } if (!array_filter($boxArr)) { for($fx=1; $fx<=3; $fx++) { ?> <div class="three_column <?php if($fx % 3 == 0) { echo "last_column"; } ?>"> <img src="<?php echo get_template_directory_uri(); ?>/images/about<?php echo $fx; ?>.jpg" /> <h3><?php _e('About Business','skt_local_business_pro'); ?><?php echo $fx; ?></h3></a> <p><?php _e('<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sodales suscipit tellus, ut tristique neque suscipit a. Mauris tristique lacus quis leo imperdiet sed pulvinar dui fermentum. Aenean sit amet diam non tortor sagittis varius. Aenean at lorem nulla, sit amet interdum nibh.</p>.','skt_local_business_pro'); ?></p> <a href="#" class="alink"><?php echo of_get_option('pagereadmoretext'); ?></a> </div> <?php } } else { $box_column = array('no_column','one_column','two_column','three_column','four_column','five_column','six_column'); $fx = 1; $queryvar = new wp_query(array('post_type' => 'page', 'post__in' => $boxArr, 'posts_per_page' => 6, 'orderby' => 'post__in' )); while( $queryvar->have_posts() ) : $queryvar->the_post(); ?> <div class="three_column <?php echo $box_column[count($boxArr)]; ?> <?php if($fx % count($boxArr) == 0) { echo "last_column"; } ?>"> <?php $boximage = of_get_option('boximage'.$fx,true); ?> <?php if( !empty($boximage) ) { ?> <div class="page_thumb"> <a href="<?php the_permalink(); ?>"><img alt="" src="<?php echo esc_url( of_get_option( 'boximage'.$fx, true )); ?>" / ></a> </div> <?php } ?> <div class="page_contetn"> <a href="<?php the_permalink(); ?>"><h3><?php the_title(); ?></h3></a> <p><?php echo wp_trim_words( get_the_content(), of_get_option('pagecontentlimit'), '...' ); ?></p> <a class="alink" href="<?php the_permalink(); ?>" ><?php echo of_get_option('pagereadmoretext'); ?></a> </div> </div> <?php $fx++; endwhile; wp_reset_query(); } ?> <div class="clear"></div> </div> </div> </section><!-- container --> <?php } ?> <div class="clear"></div>

    Regards,
    Chris

    #109722

    info1389
    Member
    • Topics: 2
    • Replies: 3
    • Total: 5
    Member since: September 21, 2018

    Outstanding 🙂 Thank you, Chris.

    #109727

    Forum Moderator
    Participant
    • Topics: 0
    • Replies: 19826
    • Total: 19826
    Member since: August 16, 2013

    Hi,

    If you found our service good kindly review us here: https://www.sktthemes.net/forums/topic/reviews-and-testimonials/page/19/

    Regards,
    Chris

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.