Multiple WP Pages or widgets on Static Home Page
I have spent the past hour searching here and on google and couldn’t find anyone who had the same problem & resolved it so I thought I’d ask.
I am running a child theme based on the Franz Josef 1.5 theme on WordPress 4.3 and I want the home page to look basically like this:
[full page width block “mini about”]
[full page width block “services”]
[Top few latest posts]
Similar to the Modality theme, which has several customizable sections on the front page: https://wordpress.org/themes/modality/
I can *almost* achieve this by setting a static front page however, I would like to add more than one – and possibly more in the future. I tried tinkering with the front-page.php file but could not figure out how/where it calls the pages in. If I could just get it to call in the pages (and note, I don’t want these pages on the main nav or accessible from anywhere but the main page) then the rest would be simple css.
I had the thought that this could possible as well via widgets, but couldn’t find any way to make any particular widgets appear on the front page.
Thanks for the quick reply! I look forward to that update. That’s what I figured I should do in the mean time.
Should I just insert the wordpress page ids into the code?
do_action( 'franz_front_page_top' );
if ( get_option( 'show_on_front' ) == 'page' ) : wp_reset_postdata();
<div class="highlights static-front-page">
<div class="<?php if ( ! $franz_settings['enable_frontpage_sidebar'] ) echo 'container'; ?>">
<h2 class="highlight-title"><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php do_action( 'franz_front_page_content' ); ?>
<?php endif; ?>
I’m guessing the “if ( get_option( ‘show_on_front’ ) == ‘page’ ) ” is specifically where I need to edit it, but I’m unsure of specifically what to put in there. Any advice (or if there is somewhere that explains it) is greatly appreciated. Thanks again for your help! 🙂Admin
You must be logged in to reply to this topic.