Home Forums Theme Support Dokan Change default Homa Page

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Simon Chabrier 3 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #56256

    Simon Chabrier
    Member
    Post count: 166

    Hello I need to change the default home page link. Because I want to display an other page I'll create in wordpress with visual composer to display articles- pictures….. How to do that please ? Thank you

    #56286

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Please navigate to WP admin->Settings->Reading and set your Front page.

    Thanks.

    #56323

    Simon Chabrier
    Member
    Post count: 166

    Hello. Of course I have do this first. Bit this don't work for the Dokan theme – just allow is own pages to be set as first page. So I make a child theme and put a new front-page.php with this code. And it works. But impossible to do without doing this.

    <?php
    /**
     * The Template for displaying all single posts.
     *
     * @package _bootstraps
     * @package _bootstraps - 2013 1.0
     */
    get_header();
    ?>
    
    <div id="primary" class="content-area col-md-9">
        <div id="content" class="site-content" role="main">
    
            <?php while (have_posts()) : the_post(); ?>
    
                <?php get_template_part( 'content', 'page' ); ?>
    
                <?php
                // If comments are open or we have at least one comment, load up the comment template
                if ( comments_open() || '0' != get_comments_number() )
                    comments_template( '', true );
                ?>
    
            <?php endwhile; // end of the loop. ?>
    
        </div><!-- #content .site-content -->
    </div><!-- #primary .content-area -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Change default Homa Page’ is closed to new replies.