Home › Forums › All Other Themes › [Naturo] Hompeage four aligns vertically instead of horizontally
- This topic has 9 replies, 2 voices, and was last updated 8 years, 2 months ago by Sonl Sinha.
-
AuthorPosts
-
October 4, 2016 at 9:21 pm #48485
We changed the theme to Naturo and this is what happenss… please advise.
October 5, 2016 at 5:34 am #48530Hi Kuan,
Kindly show us your website URL so that we can find out the issue.
Regards,
DaveOctober 5, 2016 at 1:04 pm #48592I’ve temporarily disabled maintenance. Please let me know after you’ve taken a look so I can put on maintenance again
utcsa.ca
October 5, 2016 at 1:15 pm #48594Hi Kuan,
Did you add link to those boxes?
Regards,
DaveOctober 5, 2016 at 1:20 pm #48597Kindly add anchor tag inside this div tag
<div class="four_column four_column ">
Regards,
DaveOctober 5, 2016 at 1:27 pm #48600http://imgur.com/a/gJCXX
October 5, 2016 at 1:36 pm #48601Hi Kuan,
Kindly send us your URL of the site and WordPress admin details via [email protected]
Please mention this forum URL while replying so that we understand what needs to be done.
Regards,
DaveOctober 5, 2016 at 1:40 pm #48602done!
October 5, 2016 at 3:53 pm #48622Please let me know when there’s a fix
October 6, 2016 at 5:38 am #48676Hi Kuan,
You didn’t gave us permission to edit in core files.
Kindly go to page-box.php and replace the entire code with this code:
<?php if ( is_home() || is_front_page() ) { ?> <section class="menu_page featuresbg" id="wrapone" <?php if( of_get_option('hideservicessec', true) != '' ) { ?>style="display:none"<?php } ?>> <div class="container"> <div class="services-wrap"> <?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<=4; $fx++) { ?> <div class="four_column <?php if($fx % 4 == 0) { echo "last_column"; } ?>"> <a href="<?php esc_url('#');?>"> <img src="<?php echo get_template_directory_uri(); ?>/images/icon<?php echo $fx; ?>.png"> <h3><?php _e('Page Title','skt-naturo');?> <?php echo $fx; ?></h3> <p><?php _e('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas imperdiet ex at mauris varius interdum. Fusce mattis gravida libero, nec sollicitudin ad ti ku.','skt-naturo');?></p> <p class="ReadMore"><?php echo of_get_option('pagereadmoretext'); ?></p> </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="four_column <?php echo $box_column[count($boxArr)]; ?> <?php if($fx % count($boxArr) == 0) { echo "last_column"; } ?>"> <a href="<?php the_permalink(); ?>"> <?php $boximage = of_get_option('boximage'.$fx,true); ?> <?php if( !empty($boximage) ) { ?> <div class="page_column_thumb"><img alt="" src="<?php echo esc_url( of_get_option( 'boximage'.$fx, true )); ?>" / ></div> <?php } ?> <h3><?php the_title(); ?></h3> <p><?php echo wp_trim_words( get_the_content(), of_get_option('pagecontentlimit'), '' ); ?></p> <p class="ReadMore"><?php echo of_get_option('pagereadmoretext'); ?></p> <div class="clear"></div> </a> </div> <?php $fx++; endwhile; wp_reset_query(); } ?> </div><!-- .services-wrap--> <div class="clear"></div> </div><!-- .container --> </section> <?php } ?>
Regards,
Dave -
AuthorPosts
- You must be logged in to reply to this topic.