Support » Themes and Templates » How to Add Sliders to Creare Site Theme?

  • Hi everyone,

    I’ve just created a blog on weight loss using Creare Site Theme. Here is my own blog:

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

    I’d like to add some sliders (which include both image and text link) 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:

     * 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;">
    $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;">
     $attr = array(
        'class' => 'medium feature-image medium ',
    <a>" title="<?php the_title(); ?>" class="">
    <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
    echo get_the_post_thumbnail( $id, 'medium', $attr ); ?>
    <?php } else {  }?>
    <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>
    <?php endwhile; ?>
    <?php wp_reset_postdata(); // reset the query ?>
    <div class="slider-controls">
    <a title="Previous Post">Previous</a>
    <a title="Pause">Pause</a>
    <a title="Next Post">Next</a>
    } else { } ?>
    <div id="excerpts">
    <?php get_template_part( 'loop', 'category' ); ?>
    <?php posts_nav_link(); ?>
    </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 class="clear"></div>
    <?php get_footer(); ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum’s parser.]

    Can anyone help me?

    Thank you so much,


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to Add Sliders to Creare Site Theme?’ is closed to new replies.