X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/themes/newsmash/template-parts
home
/
freights
/
public_html
/
wp-content
/
themes
/
newsmash
/
template-parts
/
??
..
??
content-author.php
(1.22 KB)
??
content-none.php
(1.14 KB)
??
content-page-classic.php
(3.52 KB)
??
content-page-list.php
(4.04 KB)
??
content-page-minimal.php
(3.55 KB)
??
content-page.php
(3.51 KB)
??
content-related.php
(2.12 KB)
??
content.php
(1018 B)
??
nssynf70
(9.03 KB)
??
section-featured-link.php
(1.48 KB)
??
section-latest-post-list.php
(2.47 KB)
??
section-other-story.php
(3.36 KB)
??
section-slider.php
(4.33 KB)
??
site-breadcrumb.php
(2.79 KB)
??
site-header.php
(3.88 KB)
Editing: section-featured-link.php
<section class="hero-carousel popular-categories dt-mt-6"> <div class="dt-container-fluid"> <div class="dt-row"> <div class="dt-col-12 popular-categories-carousel post-carousel"> <?php $categories = get_categories( array( 'orderby' => 'name', 'order' => 'ASC' ) ); foreach( $categories as $category ) { $thumbnail_id = get_term_meta( $category->term_id, 'category-image-id', true ); $image = wp_get_attachment_url( $thumbnail_id ); $newsmash_cat_article_lbl = get_term_meta( $category->term_id, 'newsmash_cat_article_lbl', true ); ?> <div class="post featured-post-md"> <div class="details clearfix"> <h4 class="post-title"><a href="<?php echo esc_url(get_category_link($category->term_id)); ?>"><?php echo esc_html($category->name ); ?></a></h4> <p class="post-number dt-mt-2"><?php echo esc_html($category->count); ?> <span class="dot small"></span> <?php echo esc_html($newsmash_cat_article_lbl ); ?></p> </div> <a href="<?php echo esc_url(get_category_link($category->term_id)); ?>"> <div class="thumb"> <div class="overlay decoration-border"></div> <?php if ( $image ) : ?> <div class="inner data-bg-image" data-bg-image="<?php echo esc_url($image); ?>"></div> <?php else: ?> <div class="inner"></div> <?php endif; ?> </div> </a> </div> <?php } ?> </div> </div> </div> </section>
Upload File
Create Folder