Support » Plugin: Custom Content Type Manager » Template Sidebar is showing below the content instead of to the right.

  • This a great plugin.. the only problem I am having is getting the template provided here: to format to my regular single.php.

    I am testing the plugin on a site i am not using right now….

    the file i created in my theme.php is called single-myposts.php

    here is the code in the:

     * Sample template for displaying single mypost posts.
     * Save this file as as single-mypost.php in your current theme.
     * This sample code was based off of the Starkers Baseline theme:
    get_header(); ?>
    <!--Start Content Grid-->
            <div class="content-wrap">
                <div class="content-info">
    <!--Start Blog Post-->
                <div class="blog">
                    <ul class="single">
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    	<p><h1><?php the_title(); ?></h1>
                                            _x('Posted on %1$s by %2$s in %3$s.', 'Time, Author, Category', 'colorway'), get_the_time(get_option('date_format')), get_the_author(), get_the_category_list(', ')
    		<?php the_content(); ?>
    		<h2>Custom Fields</h2>	
    		<strong>Date:</strong> <?php print_custom_field('date'); ?>
    <div class="clear"></div>
                                    <div class="tags">
                                        <?php the_tags('Post Tagged with ', ', ', ''); ?>
                                    <div class="clear"></div>
                                    <?php wp_link_pages(array('before' => '<div class="page-link"><span>' . 'Pages:' . '</span>', 'after' => '</div>')); ?>
                                <?php endwhile; ?>
                            <nav id="nav-single"> <span class="nav-previous">
                                    <?php previous_post_link('%link', '<span class="meta-nav">←</span> Previous Post '); ?>
                                </span> <span class="nav-next">
                                    <?php next_post_link('%link', 'Next Post <span class="meta-nav">→</span>'); ?>
                                </span> </nav>
                        <!-- End the Loop. -->          
                <div class="hrline"></div>
                <!--End Blog Post-->
                <div class="clear"></div>
                <div class="social_link">
                    <p><?php _e('If you enjoyed this article please consider sharing it!', 'colorway'); ?></p>
                <div class="social_logo"> <a title="Tweet this!"> : <?php the_permalink(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter-share.png" alt="twitter" title="twitter"/></a> <a title="Share on StumbleUpon!">&title=<?php the_title(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/stumbleupon.png" alt="upon" title="upon"/></a> <a title="Share on Facebook">&t=<?php the_title(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/facebook-share.png" alt="facebook" title="facebook"/></a> <a title="Digg This!">&title=<?php the_title(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/digg-share.png" alt="digg" title="digg"/></a> </div>
                <div class="clear"></div>
                <!--Start Comment Section-->
                <div class="comment_section">
                    <!--Start Comment list-->
                    <?php comments_template('', true); ?>
                    <!--End Comment Form-->
                <!--End comment Section-->
        	<?php get_sidebar(); ?>
    <div class="clear"></div>
    <!--End Content Grid-->
    <!--End Container Div-->
    <?php get_footer(); ?>

    Everything comes out great EXCEPT the sidebar is positioned below the content and there is a small white space under the footer i can not remove. Any ideas how to fix this? Thanks so much.

Viewing 1 replies (of 1 total)
  • Plugin Contributor fireproofsocks


    One thing I tried very hard to do with the CCTM is to keep it out of the way of the front-end templates. It helps you organize your back-end data model, it does not try to help or hurt your front-end formatting in any way. So if you’re having a layout problem, you should check your HTML and CSS. There’s nothing inherent in the CCTM that should be affecting your format/layout.

Viewing 1 replies (of 1 total)
  • The topic ‘Template Sidebar is showing below the content instead of to the right.’ is closed to new replies.