Salam.
Mən bu saytda Xəbər Lenti hissəsinə düzəliş edirəm.
Orada xəbər başlıqları gedir, onun sağ hissəsinə xəbərin şəklini
1 | <?php the_post_thumbnail( 'thumbnail' ); ?> |
ilə əlavə eləmək istəyirəm, əlavə olunur. Sadəcə problem ondadır ki, ikisi də müxtəlif sətirlərdə hərəkət edir (bunu şəkilin ölçüsünü azaltmaqla gördüm) Yəni yuxarıda olan nə qədər böyük ölçüdədirsə, aşağıdakı o qədər itir.
“Xəbər lenti hissəsini təqdim edirəm:
3 | * The template for displaying the scrolling posts. |
4 | * Gets the category for the posts from the theme options. |
5 | * If no category is selected, displays the latest posts. |
10 | * @link http://wellthemes.com |
14 | <div class="ticker-section"> |
16 | jQuery(document).ready(function($) { |
19 | $("#ticker-posts").simplyScroll(); |
24 | <div class="inner-wrap"> |
28 | <i class="fa fa-angle-right"></i> |
29 | <?php printf(__( '%sXəbər%s lenti', 'wellthemes' ), '<span class="main-color">', '</span>' ); ?> |
32 | <ul id="ticker-posts"> |
34 | $cat_id = wt_get_option('wt_ticker_cat'); |
38 | 'post_status' => 'publish', |
39 | 'ignore_sticky_posts' => 1, |
40 | 'posts_per_page' => 10 |
45 | <?php $query = new WP_Query( $args ); ?> |
46 | <?php if ( $query -> have_posts() ) : ?> |
48 | <?php while ( $query -> have_posts() ) : $query -> the_post(); ?> |
49 | <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li> |
52 | <?php wp_reset_query();?> |
57 | </div><!-- /ticker-section --> |
”
Burada
1 | <?php the_post_thumbnail( 'thumbnail' ); ?> |
əlavə eləsək, belə olar:
1 | <li> <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_post_thumbnail( 'thumbnail' ); the_title(); ?></a></li> |
Skrinşotda görünür ki, ikisi də müxtəlif sətirlərdədir. Birinci thumbnail kiçikdir, çünki ölçüsünü kiçik ayarlamışam. İkinci isə böyük, və onun ölçüsü başlığın itməsinə gətirib çıxardır.
https://postimg.org/image/8mqp1mmlt/
Bir çox kod və atributları yoxlamışam, lakin heç nə dəyişməyib.
Verilmiş cavablar və yazılan şərhlər (1 cavab var)
0
Section olcusu balaca oldugu ucun wekil sigmir.gerek cssda section olcusunu boyudub wekilin de olcusun ona uygun tenzimleyesen.Onda da saytin gorunuwu yaxsi olmayacaq.Ona gore mence hec ehtiyac yoxdur o hissede wekile.
Sual verin
Cavab verin