Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

2 column page layout template

  1. Justin I noticed today on http://themehybrid.com/themes/hybrid you have two columns setup where you give some background information on hybrid and all its features etc. I was wondering if you knew of a good way I could set this up for a page template. Does one already exist? Thanks so much

  2. Justin talks about custom page templates here.
    As far as changing the layout style from "no columns" to "2 columns" to "3 columns", etc.. I would have thought you could insert a style ie:

    /* Get layout CSS */
    @import url('library/css/2c-l-fixed.css');

    However, looking at no-widgets.php, for example, there is no mention of a style. So I'm confused as to how that particular page template, "no-widgets.php" intrinsicly knows which style sheets to use?

    I'm preparing to do this myself, so I'd like to know too.

  3. you can use the classes to control the width of the page

    .content, .no-widgets .content, .no-default-widgets .content  {
    	width: 960px;
    	}
  4. You must be a logged-in exclusive member to view this reply.

  5. Gotcha. Styling purely from id and class names. Thanks!

  6. Yeah thats wonderful thank you very much!

  7. I usually try to avoid having divs in the post editor, it can easily break if the client deletes a tag

    you can include a subpage like this:
    <?php query_posts('pagename=about'); // retrieves the about page only ?>

  8. You must be a logged-in exclusive member to view this reply.

  9. that sound great, is there a tutorial?

    what I'm trying to do is add that second column with widgets in it, (5 query_posts widgets)
    I nearly got it but there wasn't a hook to add my closing div tag.
    I added the opening div in the after_container area of hybrid hook plugin, then the 5 widgets in the after_container widget area. But how do I add the closing div tag after that?

    I resorted to an action hook function in functions.php, but I like to have the control in the admin so that the client can change it himself if needed.

    add_action('hybrid_after_container', 'add_featured');
    function add_featured(){
    	if(is_front_page()){
    		print '<div id="featured">';
    		$posts = query_posts('cat=3,5');
    		if (have_posts()) : while (have_posts()) : the_post();
    		the_content();
    		endwhile;
    		posts_nav_link();
    		 else :
    		 endif;
    		print '</div>';
    	}
    }
  10. You must be a logged-in exclusive member to view this reply.

  11. after the widgets? ok, but where? in the hybrid hook plugin areas? or in a widget?

    thanks

  12. You must be a logged-in exclusive member to view this reply.

  13. You must be a logged-in exclusive member to view this reply.

  14. that looks good, I'll try it
    yes! it's awesome, just what I needed.
    I was in the wrong mindset completely. Now I know how to add widgetized areas in the content, it will be a huge advantage for future projects.

    thanks

Reply

You must log in to post.

Limited Access

If you have an account, please take a moment to log in.

Non-exclusive members have limited access to the support forums.

To enjoy the full range of support, sign up for an exclusive membership in the theme club.

Support Forums

  • Bliss Theme (199 posts)
  • Hybrid Theme (17,011 posts)
  • Options Theme (10,322 posts)
  • Structure Theme (2,624 posts)
  • Visionary Theme (767 posts)
  • bbPress Themes (293 posts)
  • WordPress Plugins (1,617 posts)
  • General Discussion (3,976 posts)