• Resolved Hallofthemtking

    (@hallofthemtking)


    When creating a new page or post, in the dropdown for attributes, there are no templates. I want to create a full width page with no sidebars. I have checked the window options and attributes is checked. How can I remove the sidebars from pages?

    thanks, Brad

Viewing 1 replies (of 1 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello hallofthemtking,

    You can create your own custom template for it.Follow below steps:
    1. Go to your current theme folder and create a new file with .php extension.
    2. Put below code into the file and save it.
    3. Now create a new page from admin side there page attribute show Template section where you can select your custom template.
    You can modify below code by your requirement.

    <?php
    /**
    * Template Name: Custom Template
    */
    get_header();
    ?>

    <div id="primary" class="content-area">

    <main id="main" class="site-main athena-blog-page" role="main">

    <div class="row">

    <div class="athena-blog-content col-sm-<?php echo athena_main_width(); ?>">
    <?php
    $args=array(
    'post_type' => 'post', //or page or your custom post type
    'post_status' => 'publish',);
    query_posts( $args );
    ?>
    <?php if (have_posts()) : ?>

    <?php /* Start the Loop */ ?>
    <?php while (have_posts()) : the_post(); ?>

    <?php get_template_part('template-parts/content-blog', get_post_format()); ?>

    <?php endwhile; ?>

    <?php else : ?>

    <?php get_template_part('template-parts/content', 'none'); ?>

    <?php endif; ?>
    </div>

    </div>
    <div class="clear"></div>
    <div class="athena-pagination">
    <?php echo paginate_links(); ?>
    </div>
    </main><!-- #main -->
    </div><!-- #primary -->

    <?php get_footer(); ?>

    Hope this helps you.

Viewing 1 replies (of 1 total)
  • The topic ‘Template missing from attribute dropdown’ is closed to new replies.