Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – undoing autonav block integration


  1. Open header.php from your theme; it's located in the themes/c5book/elements directory.

  2. Since the following code snippet doesn't show the complete file, make sure you replace the correct lines. Everything is underneath the HTML tag with the ID header:

    <div id="wrapper">
    <div id="page">
    <div id="header_line_top"></div>
    <div id="header">
    <?php
    	$a = new Area('Header Nav');
    	$a->display($c);
    	?>
    </div>
    <div id="header_line_bottom"></div>
  3. Save header.php and go back to your page. Make sure the navigation is still there, if it isn't go back to edit the page and add a new autonav block in Header Nav. After you've added it, change the custom template to Header Menu.

What just happened?

We had to undo a modification done before this chapter. The code which printed the autonav block directly from the template would be fine if your navigation didn't change. However, since we're working on the autonav...