Use the Simple Module in a Theme Template

Now let's add the banner to every page in your site's theme.

  1. Open your theme's header.php and add the following code to the end of the file (assumes the end of the file is in HTML context, not PHP context):

    <?php LawPress::the_latest_news_html(); ?>
  2. You now should have a red "Latest News" header on every page of your website.

    • You now have something you can view on your site. Test it!

What Did We Just Do?

We added a white on red banner to be displayed at the top of every page on your site.


NEXT: More Coming Soon...

BACK: Create a Simple Module

UP: QuickStart