WordPress.org

Ready to get started?Download WordPress

Forums

meteor slider homepage responsive theme 1.7.2 (1 post)

  1. qmic76
    Member
    Posted 1 year ago #

    I'm using the responsive theme 1.7.2 and it has a "featured" div on home page by default. I would like to replace that feature box with the meteor slider in its place but i'm not sure where to cut/paste the template tag.
    I searched using chrome "expect element" on that featured box above the 3 home widgets and it's in HOME.PHP which I posted the code at the bottom of my post. I don't know where to stick the template tag much less what to comment out if anything of this existing code to get the slideshow to show up. I want it the same width but the height I can be play around with in the settings. Please help as to where I put the template tag. My site mks76.com/mm3000_wp/wk1/

    <?php get_header(); ?>
    
            <div id="featured" class="grid col-940">
    
            <div class="grid col-460">
    
                <?php $options = get_option('responsive_theme_options');
    			// First let's check if headline was set
    			    if ($options['home_headline']) {
                        echo '<h1 class="featured-title">';
    				    echo $options['home_headline'];
    				    echo '</h1>';
    			// If not display dummy headline for preview purposes
    			      } else {
    			        echo '<h1 class="featured-title">';
    				    echo __('Hello, World!','responsive');
    				    echo '</h1>';
    				  }
    			?>
    
                <?php $options = get_option('responsive_theme_options');
    			// First let's check if headline was set
    			    if ($options['home_subheadline']) {
                        echo '<h2 class="featured-subtitle">';
    				    echo $options['home_subheadline'];
    				    echo '</h2>';
    			// If not display dummy headline for preview purposes
    			      } else {
    			        echo '<h2 class="featured-subtitle">';
    				    echo __('Your H2 subheadline here','responsive');
    				    echo '</h2>';
    				  }
    			?>
    
                <?php $options = get_option('responsive_theme_options');
    			// First let's check if content is in place
    			    if ($options['home_content_area']) {
                        echo '<p>';
    				    echo $options['home_content_area'];
    				    echo '</p>';
    			// If not let's show dummy content for demo purposes
    			      } else {
    			        echo '<p>';
    				    echo __('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');
    				    echo '</p>';
    				  }
    			?>
    
                <?php $options = get_option('responsive_theme_options'); ?>
    		    <?php if ($options['cta_button'] == 0): ?>
                <div class="call-to-action">
    
                <?php $options = get_option('responsive_theme_options');
    			// First let's check if headline was set
    			    if (!empty($options['cta_url']) && $options['cta_text']) {
    					echo '<a href="'.$options['cta_url'].'" class="blue button">';
    					echo $options['cta_text'];
    				    echo '</a>';
    			// If not display dummy headline for preview purposes
    			      } else {
    					echo '<a href="#nogo" class="blue button">';
    					echo __('Call to Action','responsive');
    				    echo '</a>';
    				  }
    			?>  
    
                </div><!-- end of .call-to-action -->
                <?php endif; ?>         
    
            </div><!-- end of .col-460 -->
    
            <div id="featured-image" class="grid col-460 fit"> 
    
                <?php $options = get_option('responsive_theme_options');
    			// First let's check if image was set
    			    if (!empty($options['featured_content'])) {
    					echo $options['featured_content'];
    		    // If not display dummy image for preview purposes
    			      } else {
                        echo '<img class="aligncenter" src="'.get_stylesheet_directory_uri().'/images/featured-image.png" width="440" height="300" alt="" />';
     				  }
    			?> 
    
            </div><!-- end of #featured-image --> 
    
            </div><!-- end of #featured -->

Topic Closed

This topic has been closed to new replies.

About this Topic