The following three steps should be enough of a start for anybody else trying to achieve source-ordered HTML code (or whatever this SEO-friendly source code content ordering method is called).
1. OPEN includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php
...INSTEAD OF opening: includes/templates/YOUR_TEMPLATE/common/tpl_header.php, see item 3 of "Step 1: Unzip and Prepare Package" in the mega menu readme file
FIND
Code:
<!--eof- banner #6 display -->
INSERT AFTER
Code:
<!--bof-mega menu display-->
<?php require($template->get_template_dir('tpl_mega_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_mega_menu.php');?>
<!--eof-mega menu display-->
<div class="clearBoth"></div>
2. OPEN includes/templates/YOUR_TEMPLATE/common/tpl_mega-menu.php
FIND
Code:
<div id="mega-wrapper" style="margin-bottom:-1em"><!-- bof mega-wrapper -->
INSERT BEFORE
Code:
<div id="dropMenuWrapper">
FIND
Code:
</div><!-- eof mega-wrapper -->
INSERT AFTER
Code:
</div><!-- eof dropMenuWrapper-->
3. OPEN includes/templates/YOUR_TEMPLATE/css/stylesheet.css
FIND
Code:
body {
margin: 0;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 62.5%;
color: #000000;
background-color: #e5edf5;
}
INSERT AFTER*
Code:
#dropMenuWrapper {
width:100%;
position:absolute;
top:0;
left:0;
}
*Obviously, your stylesheet varies significantly from mine. I did test this with Zen Cart's default stylesheet, swapping it for my stylesheet but within my test site including all of its mods and hacks, and this works. The drop menu is placed at the top of my HTML page (but it shuffles other DIVs around undesirably but that's without all 14k of my edits to Zen Cart's default stylesheet.css). To move it into the position you desire, I imagine all you will need to do is find the CSS tags in your stylesheet.css that you want your mega menu appearing before and/or after. IOW YMMV.
Bookmarks