We have customers who requested drop down menu support for SocratesIN VERSION 2.2 WE ADDED DROP DOWN SUPPORT AND THIS MOD IS NO LONGER NECESSARY
I've created a mod that will now allow you to use a drop down menu to replace your primary navbar.
I want to emphasize that this is for semi-advanced users, and I would like to request that you not ask us about customization..
The plugin you'll be installing has lots of info on this on their site.
Here's my drop down menu test installation.
http://socratestheme.com/dropdown/
Here's the exact process I used to install it.
Step 1: Install the PixoPoint Menu Plugin via the plugin dashboard.
Step 2: You need to edit the header.php file in Appearance > Editor
Replace
with<!-- Main Nav -->
<?php if (!$primaryNav['display']) { ?>
<div class="im-nav"><a href="<?php bloginfo('url') ?>/wp-admin/admin.php?page=functions.php">Please configure in Socrates Admin Panel</a></div><!-- /close im-nav -->
<?php } else if ($primaryNav['display'] == 'block' ){ ?>
<div class="im-nav">
<?php
socrates_generate_nav_links($primaryNav, '');
?>
</div><!-- /close im-nav -->
<?php } else {?>
<div class="im-nav" style="background:none"></div><!-- /close im-nav -->
<?php } ?>
<!-- Search Form -->
<div id="im-searchForm">
<form method="GET" action="<?php bloginfo('home'); ?>/">
<input type="text" name="s" class="searchBox" id="s"
onblur="this.value=(this.value=='') ? 'search' : this.value;"
onfocus="clearText(this);" value="" />
<input type="image" id="searchBtn" name="searchBtn"
src="<?php bloginfo('template_url'); ?>/images/search.png"
onmouseover="this.src='<?php bloginfo('template_url'); ?>/images/searchOv.png'"
onmouseout="this.src='<?php bloginfo('template_url'); ?>/images/search.png'" border="0" />
</form>
</div>
<?php } ?>
<!-- END HEADER SECTION -->
<!-- Main Nav --> <div class="ddnav">
<?php if (function_exists('pixopoint_menu')) {pixopoint_menu();} ?></div>
<!-- /close im-nav -->
<!-- Search Form -->
<div id="im-searchForm">
<form method="GET" action="<?php bloginfo('home'); ?>/">
<input type="text" name="s" class="searchBox" id="s"
onblur="this.value=(this.value=='') ? 'search' : this.value;"
onfocus="clearText(this);" value="" />
<input type="image" id="searchBtn" name="searchBtn"
src="<?php bloginfo('template_url'); ?>/images/search.png"
onmouseover="this.src='<?php bloginfo('template_url'); ?>/images/searchOv.png'"
onmouseout="this.src='<?php bloginfo('template_url'); ?>/images/search.png'" border="0" />
</form>
</div>
<?php } ?>
<!-- END HEADER SECTION -->
Step 3: Edit Style.css in Appearance > Editor
Find..
And change to.im-topAds { padding:0px 10px; margin:-15px 0px 10px; height:90px;}
Add to bottom of stylesheet...im-topAds { padding:0px 10px; margin:0px 0px 10px; height:90px;}
Once you've completed these 3 steps you can then use the PixoPoint Menu settings panel for the rest of setup..ddnav { top:-18px; position:relative; z-index:4; padding:5px 0px 0px 4px; width:973px;}
You can control all aspects of the font design, color, height, size, backgrounds etc, using their own CSS.
You can add pages, categories, links, posts, comments etc to the drop down.
I have to admit it's pretty sweet.



Reply With Quote

