انجمن


یه سوال کوچیک در مورد محل گذاشتن کد اسلایدر  (۶ نوشته)

  • aref-auto

    آفلاین
    عضو
    تعداد نوشته‌ها: ۳۵
    تشکر شده: ۲ بار
    # نوشته شده: ۱۱ سال پیش
    ۲۲ تیر ۱۳۹۱ - ۲۰:۴۷

    سلام من این اسلایدر و دانلود کردم توش کدش رو داده گفته هرجا میخوایید باشه بذارید ! من میخوام بذارم جای اولین پستم . نمیدونم کجا باید کد رو بذارم

    <?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
    .
    .

    اینم اون جایی که ازش دانلود کردم همین اسلایدر هست :
    http://www.featuredcontentgallery.com/

  • پویا آنلاین

    آفلاین
    عضو
    تعداد نوشته‌ها: ۵۴۵
    تشکر شده: ۳۳۳ بار
    # نوشته شده: ۱۱ سال پیش
    ۲۲ تیر ۱۳۹۱ - ۲۰:۵۲

    در صفحه ایندکس و قبل از تابع عنوان مطلب.

    کاربران زیر به‌خاطر این نوشته تشکر کرده‌اند:
    aref-auto
  • aref-auto

    آفلاین
    عضو
    تعداد نوشته‌ها: ۳۵
    تشکر شده: ۲ بار
    # نوشته شده: ۱۱ سال پیش
    ۲۲ تیر ۱۳۹۱ - ۲۱:۵۸

    این ایندکس قالبم

    <?php get_header(); ?>
    
    		<!-- Begin #colLeft -->
    		<div id="colLeft">
    		<!-- archive-title -->
    						<?php if(is_month()) { ?>
    						<div id="archive-title">
    						جستجوی آرشیو "<strong><?php the_time('F, Y') ?></strong>"
    						</div>
    						<?php } ?>
    						<?php if(is_category()) { ?>
    						<div id="archive-title">
    						جستجوی آرشیو "<strong><?php $current_category = single_cat_title("", true); ?></strong>"
    						</div>
    						<?php } ?>
    						<?php if(is_tag()) { ?>
    						<div id="archive-title">
    						جستجوی آرشیو "<strong><?php wp_title('',true,''); ?></strong>"
    						</div>
    						<?php } ?>
    						<?php if(is_author()) { ?>
    						<div id="archive-title">
    						جستجوی آرشیو "<strong><?php wp_title('',true,''); ?></strong>"
    						</div>
    						<?php } ?>
    					<!-- /archive-title -->
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>		
    
    		<!-- Begin .postBox -->
    		<div class="postBox">
    			<div class="postBoxTop"></div>
    			<div class="postBoxMid">
    				<div class="postBoxMidInner first clearfix">
    				<div class="date"><?php the_time('M') ?><br /><span class="day"><?php the_time('j') ?></span><br /><?php the_time('Y') ?></div>
    				<div class="category"><?php the_category(' // ') ?></div>
    				<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
    				<div class="postThumb"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a></div>
    				<div class="textPreview">
    					<?php the_excerpt(); ?>
    				</div>
    				<div class="postMeta">
    					<a href="<?php the_permalink() ?>" class="more-link">ادامه نوشته &raquo;</a>
    					<div class="metaRight">
    						<img src="<?php bloginfo('template_directory'); ?>/images/ico_author.png" alt="Author"/> نوشته شده توسط <?php the_author_link(); ?>
    						<img src="<?php bloginfo('template_directory'); ?>/images/ico_comments.png" alt="Comments"/> <?php comments_popup_link('بدون دیدگاه', '1 بدون دیدگاه ', '% بدون دیدگاه'); ?>
    					</div>
    				</div>
    				</div>
    			</div>
    			<div class="postBoxBottom"></div>
    		</div>
    
    		<!-- End .postBox -->
    
    		<?php endwhile; ?>
    
    	<?php else : ?>
    
    		<p>متاسفانه آنچه به دنبالش هستید وجود ندارد.</p>
    
    	<?php endif; ?>
                <!--<div class="navigation">
    						<div class="alignleft"><?php next_posts_link() ?></div>
    						<div class="alignright"><?php previous_posts_link() ?></div>
    			</div>-->
    			<?php if (function_exists("emm_paginate")) {
    				emm_paginate();
    			} ?>
    
    		</div>
    		<!-- End #colLeft -->
    
    		<!-- slider setup -->
    <script type="text/javascript">
    			stepcarousel.setup({
    				galleryid: 'slider', //id of carousel DIV
    				beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
    				panelclass: 'panel', //class of panel DIVs each holding content
    				autostep: {enable:true, moveby:1, pause:5000},
    				panelbehavior: {speed:500, wraparound:false, persist:true},
    				defaultbuttons: {enable: true, moveby: 1, leftnav: ['<?php bloginfo('template_directory'); ?>/images/but_previous.png', -32, 30], rightnav: ['<?php bloginfo('template_directory'); ?>/images/but_next.png', -665, 30]},
    				statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
    				contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
    			})
    
    			</script>
    
    <?php get_sidebar(); ?>	
    
    <?php get_footer(); ?>

    عنوان رو پیدا نکردم !

  • پویا آنلاین

    آفلاین
    عضو
    تعداد نوشته‌ها: ۵۴۵
    تشکر شده: ۳۳۳ بار
    # نوشته شده: ۱۱ سال پیش
    ۲۳ تیر ۱۳۹۱ - ۰۱:۰۸

    بعد از
    <!-- Begin .postBox -->
    کپی کنید.

  • aref-auto

    آفلاین
    عضو
    تعداد نوشته‌ها: ۳۵
    تشکر شده: ۲ بار
    # نوشته شده: ۱۱ سال پیش
    ۲۳ تیر ۱۳۹۱ - ۱۶:۵۵

    اشتباه میگی ! اونجا که میذارم همه پستا پاک میشه !!

  • پویا آنلاین

    آفلاین
    عضو
    تعداد نوشته‌ها: ۵۴۵
    تشکر شده: ۳۳۳ بار
    # نوشته شده: ۱۱ سال پیش
    ۲۴ تیر ۱۳۹۱ - ۰۸:۴۸

    خب خودت یه جایی بذار که به نظر خودت مناسبه. بعد اگه دیدی خوب نیست یه جای دیگه بذار و آرمایش کن....

    کاربران زیر به‌خاطر این نوشته تشکر کرده‌اند:
    aref-auto

درباره‌ی این موضوع



برچسب‌ها

هیچ برچسبی نیست.