August 19, 2015 at 9:42 pm #10067
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.
AJAugust 19, 2015 at 10:01 pm #45277Syahir HakimKeymaster
Currently, you can achieve this by inserting the “Mini about” and “Services” content directly into the static front page.
We are currently developing custom page builder feature for the theme, but this won’t be available for a few more weeks.August 19, 2015 at 10:21 pm #45278
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! 🙂August 19, 2015 at 10:43 pm #45279Syahir HakimKeymaster
You mentioned that you don’t want the pages to be accessible from anywhere except the front page, so why not just forgo creating those pages at all? Just add the content directly into the page that you selected to be the static front page.August 19, 2015 at 11:04 pm #45280
That’s a good point, I suppose that’s what I’ll do.
Thank you so much for your time and help.
You must be logged in to reply to this topic.