Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Add custom php/js menu below header (http://forum.bytesforall.com/showthread.php?t=2137)

dmtompki Jun 21, 2009 09:04 PM

Add custom php/js menu below header
 
Is there a way to add a dynamic menu (php,js) below the header so that it doesn't get overwritten with any updates? I've added to header.php, but I have a feeling its not the best solution.

<?php bfa_header_config($bfa_ata_configure_header); ?>
<?php require_once("../CSSMenuWriter/cssmw_content/menu.php"); ?>

Thanks to all, especially Flynn for the great customizable theme!

Flynn Jun 22, 2009 07:18 AM

That'll be possible in 3.3.4

dmtompki Jun 22, 2009 02:59 PM

Thanks for the response. Donated to help the cause!!

dmtompki Jun 22, 2009 03:16 PM

Quote:

Originally Posted by Flynn (Post 8926)
That'll be possible in 3.3.4

Too good to be true...I thought I was fine. All new pages are created with the php/js menu fine and display and work correctly. However when I select a "Continue reading"... I receive the errors:

cssmw_content is not defined
(?)()()8#more-8 (line 875)
[Break on this error] <script type="text/javascript">if(window...tation: 1}); }, true); }</script> </td>

Detail of line 875
<script type="text/javascript">if(window.attachEvent) { window.attachEvent("onload", function() { cssmw_content.intializeMenu('cssmw_content',{selec t_current: 0, orientation: 1}); }); } else if(window.addEventListener) { window.addEventListener("load", function() { cssmw_content.intializeMenu('cssmw_content',{selec t_current: 0, orientation: 1}); }, true); }</script> </td>
876

Any help is much appreciated.

Flynn Jun 22, 2009 05:47 PM

Looks like you didn't include a file of the script (i.e. by referencing it in the header with
<script type="text/javascript" src="http://yoursite.com/path/to/menu.js"></script>
in the header), or that file, i.e. menu.js is not (on your web hosting account) where it is supposed to be.

dmtompki Jun 22, 2009 06:18 PM

Well that was worth a donation......it's working fine now! I honestly did not change the menu/location or entry in header.php. I was working with the styles waiting for a response and about to upload the url.

Works for me....sorry to waste your time.

When posting a time sensitive request, is it more efficient to post in the private donor forums. Or just as well to post in the main area so others can view them?

Flynn Jun 23, 2009 10:03 AM

Post in the regular forum. I read all new posts and answer all donor posts if they aren't already answered. Non-donor posts I only answer if it is easy or appears to be a theme bug.


All times are GMT -6. The time now is 08:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.