Creat a new page without comments permistion!

This topic contains 4 reply and 3 voices, and was last updated by Sekander Badsha 10 years, 2 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
August 3, 2014 at 9:03 pm 24453
Sekander Badsha dear! i am an newbie in Wordpress, everything is building from chaotic! Now i want to creat a new page using for : about, term & condition page... it's not permit for Comments! Please tell me, how have i to do? thanks you!
August 3, 2014 at 9:09 pm 24454
vu thap vu thap

i am waiting!

August 3, 2014 at 9:56 pm 24456
Anas Basalamah Anas Basalamah

do the following:

go to dokan folder --> templates --> add file called blank.php

inside the file write the following:

<?php
/**
 * A blank page template
 *
 * Template Name: Blank page
 *
 * @package dokan
 * @package dokan - 2013 1.0
 */
get_header();
?>

<div id="primary" class="content-area col-md-12">
    <div id="content" class="site-content" role="main">

        <?php while (have_posts()) : the_post(); ?>

            <?php get_template_part( 'content', 'page' ); ?>

           

        <?php endwhile; // end of the loop. ?>

    </div><!-- #content .site-content -->
</div><!-- #primary .content-area -->

<?php get_footer(); ?>

then when you create a page on wordpress (admin panel)
for example page called “about me”

from the page properties under model choose blank page

then write whatever you want in that page

August 4, 2014 at 8:02 am 24463
vu thap vu thap

it was created ! cool , special thank Anas.You are my light! (^_^)!!

August 9, 2014 at 11:27 am 24835
Sekander Badsha Sekander Badsha

Hello Vu Thap,
This can be done from WordPress Custom Fields. You’ll see something below the content area.
WordPress Discussion
If you can’t find it on the create new page dashboard, then you may open the screen options from the top right corner and check the “discussion” box. Then you’ll get the options to turn on or off the comments on the pages.

And thanks Anas, for being such kind heart.

Viewing 4 Posts - 1 through 4 (of 4 total)