Community Forums › Forums › Archived Forums › Design Tips and Tricks › Static frontpage in Whitespace Pro
Tagged: Whitespace Pro
- This topic has 6 replies, 3 voices, and was last updated 10 years, 9 months ago by
Genesis Developer.
-
AuthorPosts
-
November 27, 2014 at 10:18 am #133003
squid74
ParticipantHi all,
I want to have the default look of the frontpage with the following changes:
- Instead of posts I want to display teaser to pages and without the date
- I want to add additional text before and after the teasers
When I look at the frontpage.php I don't understand how the page is constructed.
When I add the code manually (using a static page) the teasers are not in three columns.
Any ideas?
November 27, 2014 at 10:23 am #133005squid74
ParticipantDo I need to make changes in the Genesis theme in the function genesis() ?
November 27, 2014 at 10:23 am #133006Genesis Developer
MemberYou can do this by following steps:
1. Delete the frontpage.php file from theme folder
2. Create a Static Home page with teaser and content
3. For three columns you can use genesis columns classes or use this shortcodes tips
November 27, 2014 at 10:46 am #133021squid74
ParticipantFor some reason these column classes don't work. Not with shortcodes. Not with raw divs.
November 27, 2014 at 10:54 am #133022Genesis Developer
MemberOk. then you need to add the following CSS in your style.css file.
/* Column Classes Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css --------------------------------------------- */ .five-sixths, .four-sixths, .one-fourth, .one-half, .one-sixth, .one-third, .three-fourths, .three-sixths, .two-fourths, .two-sixths, .two-thirds { float: left; margin-left: 2.564102564102564%; } .one-half, .three-sixths, .two-fourths { width: 48.717948717948715%; } .one-third, .two-sixths { width: 31.623931623931625%; } .four-sixths, .two-thirds { width: 65.81196581196582%; } .one-fourth { width: 23.076923076923077%; } .three-fourths { width: 74.35897435897436%; } .one-sixth { width: 14.52991452991453%; } .five-sixths { width: 82.90598290598291%; } .first { clear: both; margin-left: 0; } @media only screen and (max-width: 767px) { .five-sixths, .four-sixths, .one-fourth, .one-half, .one-sixth, .one-third, .three-fourths, .three-sixths, .two-fourths, .two-sixths, .two-thirds { margin: 0; width: 100%; } }
February 2, 2015 at 2:13 pm #139440tiffanyb
Member@squid74 - Did you get your question answered? I'm trying to do the same thing with my front page.
February 4, 2015 at 11:10 pm #139758Genesis Developer
Member@squid74: Add the following code in your functions.php file
function show_pages_on_home( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'post_type', 'page' ); } } add_action( 'pre_get_posts', 'show_pages_on_home' );
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.