• RESPONSIVE THEME : front-page template. Off localhost so no link availible. (code in backquotes)
    html code:

    <div id="featured" class="grid col-940">
    
    		<div class="grid col-460">
    
    			<h1 class="featured-title">
    				<?php
    				if ( isset( $responsive_options['home_headline'] ) && $db && $empty )
    					echo $responsive_options['home_headline'];
    				else
    					_e( 'Hello, World!', 'responsive' );
    				?>
    			</h1>
    
    			<h2 class="featured-subtitle">
    				<?php
    				if ( isset( $responsive_options['home_subheadline'] ) && $db && $empty )
    					echo $responsive_options['home_subheadline'];
    				else
    					_e( 'Your H2 subheadline here', 'responsive' );
    				?>
    			</h2>
    
    			<p>
    				<?php
    				if ( isset( $responsive_options['home_content_area'] ) && $db && $empty )
    					echo do_shortcode( $responsive_options['home_content_area'] );
    				else
    					_e( 'Your title, subtitle and this very content is editable from Theme Option. Call to Action button and its destination link as well. Image on your right can be an image or even YouTube video if you like.','responsive' );
    				?>
    			</p>
    
    			<strong><?php if ($responsive_options['cta_button'] == 0): ?>  
    
    				<div class="call-to-action"></strong>
    					<a>" class="blue button">
    						<?php
    						if( isset( $responsive_options['cta_text'] ) && $db && $empty )
    							echo $responsive_options['cta_text'];
    						else
    							_e('Call to Action','responsive');
    						?>
    					</a>
    
    				</div><!-- end of .call-to-action -->
    
    			<?php endif; ?>         
    
    		<strong></div><!-- end of .col-460 -->
    
    		<div id="featured-image" class="grid col-460 fit">
    
    		  <?php $featured_content = ( !empty( $responsive_options['featured_content'] ) )</strong> ? $responsive_options['featured_content'] : '<img class="aligncenter" src="' . get_template_directory_uri() . '/images/featured-image.png" width="440" height="300" alt="" />'; ?>
    
    			<?php echo do_shortcode( $featured_content ); ?>
    
    		</div><!-- end of #featured-image --> 
    
    	</div><!-- end of #featured -->
    
    	<?php

    I want to move the call to action div to below the feature image div.
    tried float with margins but can’t seem to get it centered and about 20px below the feature image.

Viewing 1 replies (of 1 total)
  • Thread Starter jgoldberg2013

    (@jgoldberg2013)

    Any suggestions on this.
    Moving the call to action button to below the feature image area.
    Thanks in advance.

Viewing 1 replies (of 1 total)
  • The topic ‘move div class under another div’ is closed to new replies.