ThemeShaper Forums » ThemeShaper WordPress Themes

Editable Feature Site Home Page

(3 posts)
  • Started 4 years ago by gregf
  • Latest reply from gregf
  • This topic is resolved
  1. Hello,

    I would like to make the text block to the right of the main image editable from the WordPress editor. I only need to have a single front page loaded; I won't be using the randomized include files. Can someone point me in the right direction?

    Thanks.

    Posted 4 years ago #
  2. Caramboo
    Member

    I've just done this quite easily.

    Firstly, install the Improved Include Page Plugin:

    http://wordpress.org/extend/plugins/improved-include-page/

    Create a new page in your Wordpress install that's going to contain your content. You're probably going to want to hide the page from your site navigatuion so perhaps install something like the Page Link Manager plugin:

    http://wordpress.org/extend/plugins/page-link-manager/

    Once you've done that, copy one of the default feature-front-*.php files from:

    wp-content/themes/thematicfeaturesite/includes/

    Perhaps call it feature-front-3.php

    Open it in an editor and find these lines:


    <h2>Lorem ipsum dolor sit amet consectetur elit adipiscing nunc</h2>
    <p>Cras tristique consectetur dui....</p>

    Replace the title between the H2 tags with your own wording and replace the <p>Cras tristique...</p> line with this:


    <?php iinclude_page(202); ?>

    Obviously you'd have to swap the 202 in brackets with the number of your new page.

    Then edit wp-content/themes/thematicfeaturesite/functions.php

    Find this part:


    $rand = mt_rand(1, 2);
    include "includes/feature-front-$rand.php";

    Remove the first line completely and edit the second to read:


    include "includes/feature-front-3.php";

    Once all that's done, I think it'll work as you wish. It does here anyway :)

    Posted 4 years ago #
  3. That works a treat. Thanks so much!

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.