Как добавить бегущую строку со статьями на сайт WordPress с темой Newsxo

Если вы случайно удалили код бегущей строки Breaking, после неудачной попытки его отключить, то его можно заново добавить в файл (можно открыть через админ панель сайта)
public_html/wp-content/themes/newsxo/inc/ansar/hooks/hook-header-logo-section.php

Код:

<div class="bs-latest-news">
    <?php $category = newsxo_get_option('select_flash_news_category');
    $slider_post_order_by = newsxo_get_option('slider_post_order_by');
    $breaking_news_title = newsxo_get_option('breaking_news_title');
    $all_posts = newsxo_get_posts(5, $category, $slider_post_order_by);
    $count = 1;
    if ((!empty($breaking_news_title))){ ?>
      <div class="bn_title">
        <h5 class="title"><i class="fas fa-bolt"></i><?php if (!empty($breaking_news_title)){ echo '<span>'.$breaking_news_title.'</span>'; } ?></h5>
      </div>
    <?php } ?>
    <!-- bs-latest-news_slider -->
    <div class="bs-latest-news-slider swipe bs swiper-container"<?php if(is_rtl()){ echo ' dir="rtl"';} ?>>
      <div class="swiper-wrapper">
        <?php if ($all_posts->have_posts()) :
          while ($all_posts->have_posts()) : $all_posts->the_post(); ?>
            <div class="swiper-slide">
              <a href="<?php the_permalink(); ?>">
                <span><?php the_title(); ?></span>
              </a>
            </div> 
            <?php $count++;
          endwhile;
        endif;
        wp_reset_postdata(); ?> 
      </div>
      <div class="bs-latest-news-nav">
        <div class="swiper-button-next"></div>
        <div class="swiper-button-prev"></div>
      </div>
    </div>
    <!-- // bs-latest-news_slider -->
  </div>

 

 

guest
Закрыть меню
ZAPLATA.RU | Магазин готовых блогов Wordpress с автонаполнением
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.