Home › Forums › SKT Biz/Corp Theme Support › Sections Content Appearing in Source Code Despite Being Disabled
- This topic has 6 replies, 2 voices, and was last updated 6 years, 2 months ago by Sonl Sinha.
-
AuthorPosts
-
October 11, 2018 at 9:33 pm #109484
I am working on this site
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 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 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 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”><img src=”https://stationeryexpress.org/wp-content/themes/skt-local-business-pro/images/welcomeimage.png” /></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.
October 12, 2018 at 6:57 am #109497Hi,
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,
ChrisOctober 12, 2018 at 1:37 pm #109595Hi,
Issue resolved from our end. Kindly check and confirm.
Regards,
ChrisOctober 12, 2018 at 2:37 pm #109606Perfect. Thanks, Chris.
Can you point me to what the solution was? So I can avoid this if it comes up again.
Thanks,
Stephen
October 15, 2018 at 6:44 am #109702Hi,
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,
ChrisOctober 15, 2018 at 8:09 am #109722Outstanding 🙂 Thank you, Chris.
October 15, 2018 at 8:56 am #109727Hi,
If you found our service good kindly review us here: https://www.sktthemes.org/forums/topic/reviews-and-testimonials/page/19/
Regards,
Chris -
AuthorPosts
- You must be logged in to reply to this topic.