WordPress.org

Ready to get started?Download WordPress

Forums

Page Template (6 posts)

  1. sdjayhawk
    Member
    Posted 1 year ago #

    I'm new to the WordPress platform and I'm trying to add some stuff to a clients webpage but the code pasted below is not working correctly. I need help re-writting it so it generates a full page template with no sidebar. Can anyone help?

    Example of the broken code on published page: http://ksgop.org/kansas-senate-candidates

    get_header(); ?>
    
    		<div id="container" class="one-column">
    			<div id="content" role="main">
    
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    					<h1 class="entry-title"><?php the_title(); ?></h1>
    					<div class="entry-content">
    						<?php the_content(); ?>
    						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    						<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    					</div><!-- .entry-content -->
    				</div><!-- #post-## -->
    
    				<?php comments_template( '', true ); ?>
    
    <?php endwhile; ?>
    
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_footer(); ?>
  2. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    I need help re-writting it so it generates a full page template with no sidebar

    It looks as though that code already has no sidebar.

    Is your question for the full page width a CSS issue?

  3. sdjayhawk
    Member
    Posted 1 year ago #

    Possibly! Like I said I'm new to HTML and CSS and I was trying to follow some online tutorials but my guess is it doesn't matchup since this is a custom theme. I reverted the page http://ksgop.org/kansas-senate-candidates back to its original look but it is still broken. Is this a CSS or HTML problem?

  4. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    Can you provide imagery of how the website should look?

  5. sdjayhawk
    Member
    Posted 1 year ago #

    Here is a page with the side bar
    http://ksgop.org/about/

    And this is the page with the code pasted above activated
    http://ksgop.org/kansas-senate-candidates

    I want to be able to stretch out the container on the the left side of the page template with the sidebar if thats possible.

  6. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

    It is already stretched 100%, you have just your content in a <table> so you're using <tr> which breaks the content into a new line.

    For the sidebar, add it first otherwise I can't see what you mean.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.