How To Achieve Stationary 'Welcome' On Front Page? (2 posts)

  1. VinceL
    Posted 9 years ago #


    I'm presently using the Asterik theme on my blog, CapitolAnnex.com. Asterik includes a feature I like very much but have only seen on one other template. Therefore, I'm trying to figure out what I need to do to include it in any template.

    It's called a "welcome," and there is a welcome.php file for the template, and, inside the main index template, there is the following code to allow it to be activated:

    <!-- WELCOME-->
    <?php /* If this is the frontpage */ if ( is_home() ) { ?>
    <?php include (TEMPLATEPATH . '/welcome.php');// *If you do not want this to show the welcome text, put two forward slashes before the word "include"* ?>
    			<?php } ?>
    <!-- END OF WELCOME-->

    The welcome php file (when viewed in the theme editor) literally includes only this (save what I've got in there customizing it right now):

    Template Name: Welcome

    I'm wondering: can I just add the first part to any theme's main index template and then just copy the welcome.php file to make all this happen or is there something else I need to do? I'm kind of stupid about all things "code" so I'm not sure at all. Any help would be appreciated.

  2. MichaelH
    Posted 9 years ago #

    Should work--give it a try, what can you hurt?

Topic Closed

This topic has been closed to new replies.

About this Topic