StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Multiple "post" pages. But can't customize the front page (http://www.studiopress.com/support/showthread.php?t=97419)

kimwhite 03-26-2012 08:21 AM

Multiple "post" pages. But can't customize the front page
 
I have created my own child theme and made my own front page.
For the Front Page I made a home.php template.
I only want 3 categories on my home page. Inside I have other pages pulling post, but I was able to make custom post types, so I can pull in just the categories I want.

The "Theme Settings" option to exude pages appears to only work for pages that are using the "blog" template.

So my question is... how can I control the categories on my home.php page?

thank you,
Kim White

andrea_r 03-26-2012 08:43 AM

Put widget areas on the home.php. Use the Featured posts widget and restrict it to categories using the widget settings. :)

kimwhite 03-26-2012 02:28 PM

ok. I do have widgets on.
So how do I make the features post NOT in the sidebar then but where I want them?
right now my home page just looks like this:
the main thing i'm doing is adding special wrap div only for the index page to format mypost.
I'm guessing i"m going about this is the wrong way?

<?php get_header(); ?>
<div id="index-wrap">
<?php genesis_before_content_sidebar_wrap(); ?>

<?php genesis_before_content(); ?>

<?php genesis(); ?>

<?php genesis_after_content(); ?>


</div>
<?php get_footer(); ?>

andrea_r 03-26-2012 02:40 PM

You need to make a home.php that has widget areas - much like we did in some of our other themes.

kimwhite 03-26-2012 03:13 PM

I have some themes so I will look.
A large part of my problem is there is a full width image that separate the page. I have not seen a way to handle this with the widgets. I would REALLY like to fix this, as I'm making it the background image and forcing a "space" between the widgets to accommodate. but I can't link it, and I know it will come back to bite me. here is the layout... if you can point me in the right direction I would be VERY grateful. The site is done, but behind a wall till we go live on Wed. I need to solve the post problem by then.
http://mrscrw.com/layout.jpg

andrea_r 03-26-2012 04:58 PM

You'd need two sidebar areas to start - the top right and the bottom right.

I;d do a top left and right, then a middle fill width area and THEN the left side post area and the regular sidebar.

kimwhite 03-26-2012 06:22 PM

I did not think I could add two sidebar areas that call separate sidebar widgets on one page.
That might be over my head. Could you point me to a tutorial or example?
I know just enough to be dangerous at this point.

andrea_r 03-26-2012 06:36 PM

Sidebars and widget areas are the same thing. :)

http://www.studiopress.com/tutorials...er-widget-area

kimwhite 03-27-2012 06:08 AM

Ok. I'm getting the hang of it. One last question. how do I get rid of the primary sidebar from the homepage. I would prefer just to have my 3.

andrea_r 03-27-2012 01:58 PM

If you don;t call the genesis() function in home.php you won;t get it or the post area.


In your example above, you can use it in the bottom half of the page if you wanted. It;s either /or.

kimwhite 03-27-2012 06:45 PM

strange. I'm not calling the genesis() functions... and it's there...
you can see the page here: http://davidfreedforag.com/new/
login... Viewer
Test145


<?php get_header(); ?>
<div id="index-wrap">

<?php if( function_exists('dynamic_content_gallery') ) : ?>
<div class="dcg">
<?php dynamic_content_gallery(); ?>
</div><!-- end .dcg -->
<?php endif; ?>


<div id="home-endorse-widget">
<?php if (!dynamic_sidebar('Home Endorse Form')) : ?>
<div class="widget">
<h4><?php _e("Home Endorse Form", 'genesis'); ?></h4>
<div class="wrap">
<p><?php _e("Post Here.", 'genesis'); ?></p>
</div><!-- end .wrap -->
</div><!-- end .widget -->
<?php endif; ?>
</div>

<div id="freedfeed">
<img src="http://davidfreedforag.com/img/freedfeed.jpg" width="940" height="56" alt="Freed Feed">
</div>
<div id="home-post-widget">
<?php if (!dynamic_sidebar('Home Post Area')) : ?>
<div class="widget">
<h4><?php _e("Home Post Area", 'genesis'); ?></h4>
<div class="wrap">
<p><?php _e("Post Here.", 'genesis'); ?></p>
</div><!-- end .wrap -->
</div><!-- end .widget -->
<?php endif; ?>
</div>
<div id="bottom-widget">
<?php if (!dynamic_sidebar('Home Bottom Side')) : ?>
<div class="widget">
<h4><?php _e("Home Bottom Side", 'genesis'); ?></h4>
<div class="wrap">
<p><?php _e("Post Here.", 'genesis'); ?></p>
</div><!-- end .wrap -->
</div><!-- end .widget -->
<?php endif; ?>
</div>
<?php genesis_after_content(); ?>
</div>
<?php get_footer(); ?>

kimwhite 03-27-2012 09:09 PM

found it....
<?php genesis_after_content(); ?>

I'm still pretty dangerous ... but it's working.
thanks for the help.
Kim

andrea_r 03-28-2012 07:32 AM

Great since the issue is resolved, I'll close the thread. If you have more questions, please open a new thread.


All times are GMT -5. The time now is 01:13 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.