Return to Support

Multiple WP Pages or widgets on Static Home Page

Home Forums Franz Josef Support Multiple WP Pages or widgets on Static Home Page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10067
    AnonJihen
    Member

    Hello,

    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:

    [header]

    [slider]

    [full page width block “mini about”]

    [full page width block “services”]

    [Top few latest posts]

    [footer]

    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,

    AJ

    #45277
    Syahir Hakim
    Keymaster

    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.

    #45278
    AnonJihen
    Member

    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?

    <?php
    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' ); ?>
    </div>
    </div>
    <?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! 🙂

    #45279
    Syahir Hakim
    Keymaster

    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.

    #45280
    AnonJihen
    Member

    That’s a good point, I suppose that’s what I’ll do.

    Thank you so much for your time and help.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.