• Resolved Thomas Nolan

    (@thomas-nolan)


    I have had this theme installed for quite some time now already, and update it, when the new versions become available without too many issues.

    I decided recently to overhaul the layouts and functions of my site, and ran into some serious issues, which resulted in me having to re-install WordPress, from cPanel, deactivate all the plugins, re-install the theme, and re-activate the theme, and turning on all the plugs, one by one to find the culprit… Im still unsure what exactly the issue was to begin with, but at least the site is back up and running, unlike the blank slate it turned into.

    Long story short, Ive streamlined everything, whilst re-designing, and have run into one small issue (I hope).

    The theme by default has three “service boxes” on the home page.
    Its broken into two parts. One with an accordion slider at the top, and then the three column boxes underneath. Pexeto’s admin panel does not allow changes to the main page, insofar as removing the service boxes. I used them before, but have since started using the slider above it, and want to now get rid of these boxes. Its taking way too much screen real-estate, and places a huge gap between the slider and the footer with the widgets.

    I know squat about editing code, so anyone who could offer some advice on editing this template without it falling to pieces (as my attempts have) I would be eternally grateful.

    Code:

    <?php
    /*
     Template Name: Home page
     */
    
    get_header();
    
    if ( have_posts() ) {
    	while ( have_posts() ) {
    		the_post();
    
    		//get the page settings
    		$title=get_the_title();
    		$subtitle=get_post_meta( $post->ID, 'subtitle_value', true );
    		$slider=get_post_meta( $post->ID, 'slider_value', true );
    		$slider_prefix=get_post_meta( $post->ID, 'slider_name_value', true );
    		if ( $slider_prefix=='default' ) {
    			$slider_prefix='';
    		}
    
    		//include the page header template
    		locate_template( array( 'includes/page-header.php' ), true, true );
    ?>
    
    <div id="content-container" class="content-gradient">
      	<div id="full-width">
    	   <!--content-->
        <?php
    		the_content();
    	}
    } ?>
    
        	<div class="column-wrapper">
    		<?php
    		//print the services boxes
    		for ( $i=1; $i<=3; $i++ ) {
    			$suf=$i==3?'-3':''; ?>
    			<div class="services-box three-columns<?php echo $suf; ?>">
    				<h4><?php echo get_opt( '_home_box_title'.$i ); ?></h4>
    				<?php if ( get_opt( '_home_box_icon'.$i )!='' ) { ?>
    					<img src="<?php echo get_opt( '_home_box_icon'.$i ); ?>" class="img-frame" />
    				<?php } ?>
    				<?php echo get_opt( '_home_box_desc'.$i ); ?>
    				<?php if ( trim( get_opt( '_home_box_btn_text'.$i ) )!='' ) { ?>
    					<a href="<?php echo get_opt( '_home_box_btn_link'.$i ); ?>" ><?php echo get_opt( '_home_box_btn_text'.$i ); ?><span class="more-arrow">?</span></a>
    				<?php } ?>
    			</div>
    		<?php } ?>
    		</div>
    	</div>
    <div class="clear"></div>
    </div>
    <?php get_footer(); ?>

    my site

Viewing 1 replies (of 1 total)
  • Thread Starter Thomas Nolan

    (@thomas-nolan)

    Figured it out for myself.

    Removed:

    <?php
    		//print the services boxes
    		for ( $i=1; $i<=3; $i++ ) {
    			$suf=$i==3?'-3':''; ?>
    			<div class="services-box three-columns<?php echo $suf; ?>">
    				<h4><?php echo get_opt( '_home_box_title'.$i ); ?></h4>
    				<?php if ( get_opt( '_home_box_icon'.$i )!='' ) { ?>
    					<img src="<?php echo get_opt( '_home_box_icon'.$i ); ?>" class="img-frame" />
    				<?php } ?>
    				<?php echo get_opt( '_home_box_desc'.$i ); ?>
    				<?php if ( trim( get_opt( '_home_box_btn_text'.$i ) )!='' ) { ?>
    					<a href="<?php echo get_opt( '_home_box_btn_link'.$i ); ?>" ><?php echo get_opt( '_home_box_btn_text'.$i ); ?><span class="more-arrow">&raquo;</span></a>
    				<?php } ?>
    			</div>
    		<?php } ?>
    		</div>
    	</div>
Viewing 1 replies (of 1 total)
  • The topic ‘Dandelion theme service boxes’ is closed to new replies.