مشکل در اسلایدر

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

Alidesign

تازه وارد
سلام وقت بخیر

دوستان من از وردپرس استفاده میکنم برای اسلایدر از پلاگین استفاده نکردم خودم دستی درستش کردم ولی یه مشکلی داره

وقتی اسلایدر تصویر رو لود میکنه به محض لود شدن تصویر پنهان میشه ولی عنوان برا همون تصویره هستش آخه من اخرین ارسالهای سایت و به صورت اسلایدر در آوئردم تا 4 تا از اخرین ارسال ها رو نمایش بده.

مشکل من فقط غیب شدن تصویر هستش اگه کسی می دونه باید چه جوری درستش کنم راهنمایی کنه.

این هم استایلش هست


کد:
 /*
 *    generated by WOW Slider 2.9
 *    template Block
 */

#wp-designer-container1 { 
    zoom: 1; 
    position: relative; 
    max-width:1200px;
max-height:400px;
    margin:0px auto 0px;
    z-index:90;
    border:none;
    text-align:right; /* reset align=center */
}
* html #wp-designer-container1{ width:1200px;height:400px }
#wp-designer-container1 .ws_images ul{
    position:relative;
    width: 0; 
    height:400px;
    left:0;
    list-style:none;
    margin:0;
    padding:0;
    border-spacing:0;
    overflow: visible;
    /*table-layout:fixed;*/
}
#wp-designer-container1 .ws_images ul li{
    width:1%;
    line-height:0; /*opera*/
    float:left;
    font-size:0;
    padding:0 0 0 0 !important;
    margin:0 0 0 0 !important;
}

#wp-designer-container1 .ws_images{
    position: relative;
    left:0;
    top:0;visibility:hidden;
    width:1200px;
    height:444px;
    overflow:hidden;
}
#wp-designer-container1 .ws_images a{
    width:1200px;
    height:400px;
    display:block;
    color:transparent;
}
#wp-designer-container1 img{
    max-width: none !important;
}
#wp-designer-container1 .ws_images img{
    width:1200px;
height:400px;
    border:none 0;
    max-width: none;
    padding:0;
}
#wp-designer-container1 a{ 
    text-decoration: none; 
    outline: none; 
    border: none; 
}

#wp-designer-container1  .ws_bullets { 
    font-size: 0px; 
    float: left;
    position:absolute;
    z-index:70;
}
#wp-designer-container1  .ws_bullets div{
    position:relative;
    float:left;
}
#wp-designer-container1  a.wsl{
    display:none;
}

#wp-designer-container1 .ws_bullets { 
    padding: 10px; 
}
#wp-designer-container1 .ws_bullets a { 
    margin-left: 5px; 
    height: 10px; 
    width: 10px; 
    float: left; 
    border: 1px solid #B8C4CF; 
    color: transparent; 
    text-indent: 0px; 
    background-image:url("data:image/gif;base64,");
    position:relative;
}
#wp-designer-container1 .ws_selbull { 
    background-color: #B8C4CF; 
    color: #FFFFFF; 
}

#wp-designer-container1 .ws_bullets a:hover, #wp-designer-container1 .ws_overbull { 
    background-color: #dae9f6;
    color: #FFFFFF; 
}

#wp-designer-container1 a.ws_next, #wp-designer-container1 a.ws_prev {
    font-family: Tahoma,Arial,Helvetica;
    font-size: 14px;
    position:absolute;
    display:none;
    top:50%;
    margin-top:-15px;
    line-height:30px;
    z-index:60;
    background-color: #000000; 
    color: #FFFFFF; 
    padding: 0px 10px; 
    opacity:0.7;
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70);
}
#wp-designer-container1 a.ws_next{
    right:0;
}
#wp-designer-container1 a.ws_prev {
    left:0;
}
* html #wp-designer-container1 a.ws_next,* html #wp-designer-container1 a.ws_prev{display:block}
#wp-designer-container1:hover a.ws_next, #wp-designer-container1:hover a.ws_prev {display:block}
/* bottom center */
#wp-designer-container1  .ws_bullets {
    bottom:0;
    left:50%;
}
#wp-designer-container1  .ws_bullets div{
    left:-50%;
}
#wp-designer-container1 .ws-title{

    position: absolute;
    bottom:0;
    left: 0;
    margin-right:5px;
    z-index: 50;
    background-color:#000000;
    color:#FFFFFF;
    padding:10px 1%;
    width:98%;
    font-family: Tahoma,Arial,Helvetica;
    font-size: 14px;
    opacity:0.55;
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=55);    
}
#wp-designer-container1 .ws-title div{
    padding-top:5px;
    font-size: 12px;
}
#wp-designer-container1 .ws_images ul{
    animation: wsBasic 8s infinite;
    -moz-animation: wsBasic 8s infinite;
    -webkit-animation: wsBasic 8s infinite;
}  [MENTION=23633]key[/MENTION]frames wsBasic{0%{left:-0%} 25%{left:-0%} 50%{left:-100%} 75%{left:-100%} }
@-moz-keyframes wsBasic{0%{left:-0%} 25%{left:-0%} 50%{left:-100%} 75%{left:-100%} }
@-webkit-keyframes wsBasic{0%{left:-0%} 25%{left:-0%} 50%{left:-100%} 75%{left:-100%} }
 

caduspro

کاربر عضو
کد افزونه را بفرستید. کدهای . php در صورت موجود بودن فایل html رو هم بفرستید.

 
آخرین ویرایش توسط مدیر:

Alidesign

تازه وارد
این هم کد پی اچ پی نسخه اچ تی ام ال ندارم


کد:
<!-- Start Ali-Design.ir BODY section -->
<?php if ( is_front_page() ) { ?> 
    <div id="wp-designer-container1">
    <div class="ws_images">

    <?php
  $prodcat=get_option('alirezadb_slider');
  $my_query = new WP_Query('showposts=4&cat='.$prodcat);
  while ($my_query->have_posts()):
  $my_query->the_post();
  $do_not_duplicate = $post->ID;?>
    <li>
    <div class="slide-item1">

<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php if(has_post_thumbnail()) { the_post_thumbnail( array(1200,1200) ); } else {  echo '<img src="'.get_bloginfo("template_url").'/images/no2.png" />'; } ?> </a> </div>
<div class="slide-entry"><a src="<?php echo get_post_meta($post->ID, 'img', true); ?> width:1200px; height:400px" /><?php the_title(); ?></a></div>
    </li>
    <?php endwhile; ?>

</div>


    </div>
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/jss/wp-designer.js"></script>
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/jss/script.js"></script>
    <?php } ?>   <!-- End Ali-Design.ir BODY section -->
 

caduspro

کاربر عضو
خب برادر من فایل های مورد نیاز رو هم بفرست تا در html تست کنم، اگر در اونجا درست کار کرد مشکل کد php هست. البته گمان کنم در جایی از استایل دهی right یا left را رعایت نکردید.

********** به روز رسانی *************

همینجوری در html تست کردم، عکست معلوم نبود. در استایل دهی این مورد موجود عدم نمایش عکس شد.


کد:
#wp-designer-container1 .ws_images{
    position: relative;
    left:0;
    top:0;visibility:hidden;
    width:1200px;
    height:444px;
    overflow:hidden;
}
البته فایل js، نگاره و اینها رو نداشتم. برای اینجور کارها بهتره نخست در html از درست کار کردن پروژه خودتون اطمینان حاصل کنید.

 
آخرین ویرایش توسط مدیر:

Alidesign

تازه وارد
تست کردم اچ تی ام ال مشکلی نداشت ولی وقتی میخوام با وردپرس مچ بشه و اخرین ارسال هارو بیاره این مشکلو داره

اینم نسخه اچ تی ام ال



مشکلش از کجاس؟

 

Alidesign

تازه وارد
چرا تو کد ها هستش اینم کد اچ تی ام ال


کد:
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 5.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fa" lang="fa-IR" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Language" content="fa"/>
<meta http-equiv="Cache-Control" content="PUBLIC"/>
<meta http-equiv="expires" content="never"/>
<meta name="robots" content="index, follow"/>
<META name=author content="http://Ali-Design.ir"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="revisit-after" content="1 days"/>
<meta name="geography" content="Iran"/>
<meta name="language" content="Farsi">
<meta name="distribution" content="Global"/>
<meta name="country" content="Iran"/>
<META name=copyright content="Copyright http://Ali-Design.ir"/>
<meta name="resource-type" content="document"/>
<meta name="designer" content="Designed Ali-Design.ir - Alireza Dabiri - 09397402753"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>

<meta name="keywords" content="کلمات کلیدی">
<meta name="description" content="کلمات کلیدی">

 <head>

<style type="text/css" media="screen"> [MENTION=3103]IMP[/MENTION]ort url(style1.css); [MENTION=3103]IMP[/MENTION]ort url([url]http://choobarkheiriyeh.ir/wp-content/themes/Choobar-M-E.v1/slide/style.css);[/url]
</style>
<script type="text/javascript" src="http://choobarkheiriyeh.ir/wp-content/themes/Choobar-M-E.v1/jss/jquery.js"></script>
<script src="http://choobarkheiriyeh.ir/wp-content/themes/Choobar-M-E.v1/jss/jquery.simple_slider.js" type="text/javascript"></script>

<script type="text/javascript">
$(function () {
$('#js-news').ticker();
});
</script>

</head>
 <body>
<!-- End header -->

<!-- Start Wp-Designer.ir BODY section -->
	<div id="wp-designer-container1">
	<div class="ws_images"><ul>



<li><img src="http://choobarkheiriyeh.ir/wp-content/uploads/2014/12/ll-300x160.jpg"/></li>
<li><img src="http://choobarkheiriyeh.ir/wp-content/uploads/2014/12/IMAGE635378620851208041.jpg"/></li>



</ul></div>
<div class="ws_bullets"><div>




</div></div>
	</div>
	<script type="text/javascript" src="http://choobarkheiriyeh.ir/wp-content/themes/Choobar-M-E.v1/jss/wp-designer.js"></script>
	<script type="text/javascript" src="http://choobarkheiriyeh.ir/wp-content/themes/Choobar-M-E.v1/jss/script.js"></script>
	<!-- End Wp-Designer.ir BODY section -->




<!-- start footer -->

</div>
</body>
</html>
 
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
بالا