WordPress.org

Ready to get started?Download WordPress

Forums

Creare Site
How to Add Sliders to Creare Site Theme? (1 post)

  1. nicksmith109x
    Member
    Posted 1 month ago #

    Hi everyone,

    I've just created a blog on weight loss using Creare Site Theme. Here is my own blog: http://niceslim.tk/

    However, I'm having a problem that needs your help.

    I'd like to add some slideshows (which include images, captions and post links) to Slider Box for this theme (you can see it by visiting my site). But I don't know how to do that.

    I searched information on the internet and there are some guys tell me that I must change code on front-page.php. Is it right or wrong?

    To make sure, I'll paste the code in front-page.php here:

    <?php
    /**
     * The template for displaying front page pages.
     *
     */
    ?>
    
    <?php get_header(); ?>  
    
    <div class="pagina_container">
    <div class="panou_24">
    <div id="container">
    <div id="content"> <!-- Deprecated. Use the .content or .hfeed class for styling instead of #content. -->
    <div class="hfeed content">
    <?php if (crearesite_get_option('re_nm2') == 'on') { ?>
    <div id="slider-container">
    <div id="slider" style="position: relative; overflow: hidden;">
    
    <?php
    $categorie =  crearesite_get_option('featured_category_id');
    $posts_numbers = crearesite_get_option('posts_numbers');
    
    $custom_querycs = new WP_Query('showposts='.$posts_numbers.'&cat='.$categorie);
    while($custom_querycs->have_posts()) : $custom_querycs->the_post(); ?>
    
    <div class="hentry post post-1 even alt sticky author-admin category-sports category-sub-sub-sub-cat-3 tag-football tag-super-bowl feature" style="position: absolute; top: 0px; left: -580px; display: none; z-index: 3; opacity: 1;">
    
    <?php
     $attr = array(
        'class' => 'medium feature-image medium ',
    );
     ?>
    
    <a>" title="<?php the_title(); ?>" class="">
    <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
    <?php
    echo get_the_post_thumbnail( $id, 'medium', $attr ); ?>
    <?php } else {  }?>
    </a>
    <h2 class="post-title entry-title"><a>" title="<?php the_title(); ?>" rel="bookmark" class=""><?php the_title(); ?></a></h2><p class="byline"><span class="text">By</span> <span class="author vcard"><?php the_author_posts_link(); ?>
    </span> <span class="text">on</span> <abbr class="published" title="<?php echo get_the_time('M, d, Y') ?>"><?php echo get_the_time('M, d, Y') ?></abbr></p>
    <div class="entry-summary entry"><?php the_excerpt(); ?>
    <a>" title="<?php the_title(); ?>">Full Story ยป</a>
    </div></div>
    
    <?php endwhile; ?>
    <?php wp_reset_postdata(); // reset the query ?>
    
    </div>
    <div class="slider-controls">
    <a title="Previous Post">Previous</a>
    <a title="Pause">Pause</a>
    <a title="Next Post">Next</a>
    </div>
    </div>
    <?php
    } else { } ?>
    
    <div id="excerpts">
    <?php get_template_part( 'loop', 'category' ); ?>
    </div>
    <?php posts_nav_link(); ?>
    
    </div>
    </div> <!-- Deprecated. Use the .content or .hfeed class for styling instead of #content. -->
    		<div id="widget-container">
    <?php if (is_active_sidebar('dynamic_sidebar') ||
               !dynamic_sidebar('HomeRight') ) : ?>
      <!-- This will be displayed if the sidebar is empty -->
    <?php endif; ?>
    
    	</div>
    <div class="clear"></div>
    </div>
    </div>
    
    <?php get_footer(); ?>

    Can anyone help me?

    Thank you so much,

    Nick

Reply

You must log in to post.

About this Theme

About this Topic