Home>Support>Creating a full width no title post page

Creating a full width no title post page

Hi there – I need a full width with no title post page for streaming live online video classrooms and have created a new post template that I have called live-classroom.php and removed the sidebars but cannot work out how to add some CSS to reference that post template to make it full width when I use it (Im using WP post template plugin to allow me to choose the template)

Please help have spent hours trying to work out what I need to either add to the post template php file or into the css file to reference my template (Im not a coder or anything)

Carol

ps – I have also tried to copy the full page no width template as a new custom post template (and renamed it to live-classroom-full-page.php) but when I select that as the template for the post it shows with no side bar but doesn’t go full width either

URL: http://link4skills.com/lessons/live-classroom-2/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 1 month ago Carol Dodsley

    Forgot to share the .php code for you to see:


  2. 9 years, 1 month ago Carol Dodsley

    Ooh that didnt seem to work – lets try again:

    <?php
    /**
    * WP Post Template: live-classroom.php
    *
    * @package vantage
    * @since vantage 1.0
    * @license GPL 2.0
    */
    
    get_header(); ?>
    
    <div id="primary" class="content-area">
    <div id="content" class="site-content" role="main">
    
    <?php while ( have_posts() ) : the_post(); ?>
    
    <?php get_template_part( 'content', 'single' ); ?>
    
    <?php if( siteorigin_setting('navigation_post_nav') ) vantage_content_nav( 'nav-below' ); ?>
    
    <?php if ( comments_open() || '0' != get_comments_number() ) : ?>
    <?php comments_template( '', true ); ?>
    <?php endif; ?>
    
    
    
    <?php endwhile; // end of the loop. ?>
    
    </div><!-- #content .site-content -->
    </div><!-- #primary .content-area -->
    
    
    
    <?php get_footer(); ?>
  3. 9 years, 1 month ago Carol Dodsley

    Can anyone help me with this – really need to get our website sent live very soon and without being able to create this full page post template that works we are stuck :(

  4. 9 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Hi Carol

    So sorry for the delay in replying.

    Please, try adding the following file to your /vantage folder in wp-content/themes.

    https://siteorigin.com/wp-content/uploads/2015/08/full-width-post.php_.zip

    Un-zip it before uploading.

    I can’t seem to make this plugin work with a child theme which is what we need to make the change update safe. I’ll see I can reach out to the developers to find out more about that.

  5. 9 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Looking into the best way to adjust the primary container now.

  6. 9 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Rather use this template:

    https://siteorigin.com/wp-content/uploads/2015/08/full-width-post.php_1.zip

    Then add the following to Appearance > Custom CSS:

    /* Custom Post Templates */
    
    #primary.full-width-post {
    	width: 100%;
    }
    
  7. 9 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Here is another, better option in that it’s update safe:

    https://wordpress.org/plugins/custom-post-type-page-template/screenshots/

    Once installed and activated, go to Settings > Custom Post Type Page Template and enable posts.

    Next install this child theme:

    https://siteorigin.com/wp-content/uploads/2015/08/vantage-child-full-width-post.zip

    Download the ZIP to your desktop.
    Install from Appearance > Themes > Add New: Upload Theme.
    It’s normal for a child theme to reset your Customizer and menu location settings.

    Next, go to Appearance > Custom CSS and add:

    /* Custom Post Template */
    
    #primary.full-width-post {
    	width: 100%;
    }
    

    Next, go to the post in question and at the top of the right column, select the Full Width Post template.

    You should now have an update safe way of setting the post template.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More