new page with ads in display mode List
Hi,
I create a new page name PRO.
When i displays ads, they are in grid mode :
code display with firefox (F12) :
class="listing-item listing-map-data content-wrap display-grid
But i want to have all ads PRO in list mode
When i replace in firefox the code by display-list it's OK.
Now i want "display-list" for all ads PRO for only the page PRO.
Can you help me ?
Thank you very much
For my page PRO, i use a template :
<?php
/**
* Template Name: Ads Home Template Pro
*
* @package ClassiPress\Templates
* @author AppThemes
* @since ClassiPress 3.3
*/
?>
<div class"row small-up-1 medium-up-12 list-view listing-wrap">
<?php
$ads_args = array(
'post_type' => APP_POST_TYPE,
'posts_per_page' => $number,
'post_status' => 'publish',
'meta_query' => array(
array(
'key' => 'cp_vous_tes',
'value' => 'professionnel',
'compare' => 'like',
),
),
'no_found_rows' => true,
);
$pro_ads = new WP_Query( $ads_args );
$result = '';
?>
<div id="primary" class="content-area row">
<div class="columns">
<?php get_template_part( 'parts/breadcrumbs', app_template_base() ); ?>
</div>
<?php if ( 'left' == get_theme_mod( 'listing_archive_sidebar_position', 'right' ) ) { get_sidebar(); } ?>
<main id="main" class="site-main m-large-8 columns" role="main">
<section>
<?php
if ( $pro_ads->have_posts() ) : ?>
<div class="row small-up-1 medium-up-12 list-view listing-wrap">
<?php while ( $pro_ads->have_posts() ): $pro_ads->the_post(); ?>
<div class="column">
<?php get_template_part( 'parts/content-item', APP_POST_TYPE ); ?>
</div> <!-- .column -->
<?php endwhile; ?>
</div> <!-- .row -->
<?php cp_do_pagination();
endif;
appthemes_after_loop( get_post_type() ); ?>
</section>
</main>
<?php if ( 'right' == get_theme_mod( 'listing_archive_sidebar_position', 'right' ) ) { get_sidebar(); } ?>
</div> <!-- #primary -->