Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Is ruthsarian_utilities.js needed if I don't use drop-down menus? (http://forum.bytesforall.com/showthread.php?t=1063)

Glottis Apr 2, 2009 07:32 AM

Is ruthsarian_utilities.js needed if I don't use drop-down menus?
 
Is the file ruthsarian_utilities.js needed for something else besides drop-down menus?

I tried googling and searching the forum here but couldn't find any info...

Thank you in advance!

Flynn Apr 2, 2009 07:55 PM

Besides the drop down menu(s) it's also being used for the default recent-comments widget and the BFA recent comments widget, to provide li:hover for IE6. If you don't use those either, then you should remove this from header.php as well along with the js file:

PHP Code:

<script type="text/javascript">
    <!--
    if ( ( typeof( sfHover ) ).toLowerCase() != 'undefined' ) { event_attach( 'onload' , function () { 
    <?php if (strpos($bfa_ata['configure_header'],'pages')!==FALSE) { ?>sfHover( 'rmenu2' );<?php ?>
    <?php if (strpos($bfa_ata['configure_header'],'cats')!==FALSE) { ?>sfHover( 'rmenu' );<?php ?>    
    if (document.getElementById("recent-comments") != null) { sfHover( 'recent-comments' ); }
    if (document.getElementById("bfa-recent-comments") != null) {sfHover( 'bfa-recent-comments' ); }
        } ); }
    //-->
</script>


Glottis Apr 3, 2009 11:57 AM

Thank you Flynn!
I'm trying to minimize page load time, so that will definitely help.


All times are GMT -6. The time now is 06:31 PM.

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