Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter evallad

    (@evallad)

    Many thanks for the code, it works perfectly!

    For the rest, I woukd like to create my own homepage. When I put this code in my homepage, thé page is empty:

    <div id="primary" class="content-area">
                    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
    
    		<main id="main" class="site-main <?php echo "page-".$paged;?>" role="main">
    
    		<?php if ( have_posts() ) : ?>
    
    			<div class="article-container">
    
    			<?php /* Start the Loop */ ?>
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php get_template_part( 'content', '' ); ?>
    
    			<?php endwhile; ?>
    
    			</div>
    
    			<?php activello_paging_nav(); ?>
    
    		<?php else : ?>
    
    			<?php get_template_part( 'content', 'none' ); ?>
    
    		<?php endif; ?>
    		</main><!-- #main -->
    	</div><!-- #primary -->

    I juste see the header, parts I’ve added and rhe slider.

    Hope it is clear now ??

    Thread Starter evallad

    (@evallad)

    HI, I’m fine thank you. Hope you are too.
    Yes I was but I changed my mind.

    I keep the last articles page as homepage, desactivate the right bar and add my own code in the template to have my own elements. I would prefer to create a static homepage but impossible to get the articles loop (as shown in the https://colorlib.com/activello/ homepage).

    Besides,
    – I would like to hide from the homepage the articles shown in the slider. Is that possible ?
    – I’d like to have the share this & related saw in this page https://colorlib.com/activello/template-featured-image-vertical/

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)