• 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 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:

    <?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(); ?>

    [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,

    Nick

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.