Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ssacrew

    (@ssacrew)

    I was able to figure it out. The code is slightly different than other ones out there, so if anyone else is using Onetake theme and needs it full page, here it is:

    <?php
     /*
     Template Name: Working Full Width
     */
     ?>
    
    <?php
    /**
    * The page template file.
    *
    */
    
      get_header(); 
    
    ?>
    
    }
    
    <div id="page-<?php the_ID(); ?>" <?php post_class("clear"); ?>>
    <?php if (have_posts()) :?>
    <?php	while ( have_posts() ) : the_post();?>
    <div id="main" class="clearfix container">
    <body bgcolor="#efefef" !important>
    <div class="row">
    
    <div class="breadcrumb-box">
     <?php breadcrumb_trail(array("before"=>"","show_browse"=>false));?>
            </div>
    
    <div class="col-md-16">
    <section class="blog-main text-center" role="main">
                                <article class="post-entry text-left">
                                    <div class="entry-main no-img">
                                        <div class="entry-header">
                                        </div>
                                        <div class="entry-content-fullwidth">
                                           <?php the_content();?>
                                           <?php  wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'onetake' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );?>
                                        </div>
                                    </div>
                                </article>
                                <div class="comments-area text-left">
                                 <?php
    									echo '<div class="comment-wrapper">';
    									comments_template();
    									echo '</div>';
                                      ?>
                                </div>
                            </section>
    </div>
    
    </div>
    </div>
    <?php endwhile;?>
    <?php endif;?>
    </div>
    <?php get_footer(); ?>
    Thread Starter ssacrew

    (@ssacrew)

    I do have a child theme set up. The steps I am following are this and similar ones:http://premium.wpmudev.org/blog/create-a-full-width-page-for-wordpress-in-5-simple-steps/

    Step one and two are no issue. Getting to step three is a PITA. There only instance of div ID in the content is
    <div id="page<?php the_ID(); ?>" <?php post_class("clear"); ?>>

    which I have changed to
    <div id="page-fullwidth<?php the_ID(); ?>" <?php post_class("clear"); ?>>

    The style.css sheet doesn’t have a #content. The closest I can find would be media, common, or main. I don’t see anything remotely similar to the sample codes though. There’s no options for changing the width that I see, even after searching the code. I feel like I’m taking crazy pills here!

    Thread Starter ssacrew

    (@ssacrew)

    On a side note, I only got this to post after creating a test post, watching it post successfully, and then editing it afterwards. I’m hoping that’s a one time deal.

    deleted

    deleted

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