Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Need to tweak bfa_header_config to add some javascipt.


  #1  
Old Nov 14, 2012, 05:59 AM
pegasus
 
2 posts · Oct 2012
Red face Need to tweak bfa_header_config to add some javascipt.

Hi Juggledad,

Found the new thread button!

I am new to this site and forum and have difficulty even finding the new thread.

Tried looking through to find a solution for my problem but to no avail. Could you please advise if I am looking at the wrong place.

This piece of code <?php echo bfa_header_config(); ?> is called from header.php. What I am not sure is if it is bfa_header_config.php or bfa_new_wp3_menus that churned out this piece of code
' <div id="menu1" class="menu-top-menu-container"> ' in Atahualpa 3.7.7.

I need to add javascript to change it from <div id="menu1" class="menu-top-menu-container"> to output as this <div id="menu1" class="menu-top-menu-container" onMouseOver="hideIFrame(true);" onMouseOut="hideIFrame(false);">. The javascript has been added to header.php and works fine when it is saved and tested as a stand alone page.

Been looking for a week but still could not find an answer. Could you please help?

Regards
Pegasus
  #2  
Old Nov 14, 2012, 10:02 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you are using an atahualpa menu, you can change it in bfa_config_header.php.
If you are uisng the new WordPress menu then the menu is built using the wordpress function 'has_nav_menu()'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 20, 2012, 03:10 AM
pegasus
 
2 posts · Oct 2012
Hi Juggledad,

I did look into what you pointed to me but still could not find which piece of code that forms <div id="menu1" class="menu-top-menu-container"> and I am using Atahulpha 3.4.2.

Regards
Pegasus
  #4  
Old Nov 20, 2012, 05:19 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That is an old release. I would suggest you upgrade to 3.7.9 the latest release.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiring - Improve site speed and tweak plugins jrmallory Customization, Design, Programming... 5 Sep 26, 2012 06:17 PM
How badly could I mess up my blog if I try to copy this css tweak? Hidden Driveways Page & Category Menu Bars 3 Jul 12, 2010 09:22 PM
[SOLVED] How to place Chitika Javascipt on individual posts maxhomebits Forum How-To 3 Nov 5, 2009 05:53 AM
How to Tweak Theme for FAQ-Tastic Paged Question Group cltaylor Header configuration & styling 1 Oct 20, 2009 06:30 PM
Image rotation PHP script needs a tweak paulae Sidebars & Widgets 9 Jun 14, 2009 12:41 PM


All times are GMT -6. The time now is 02:28 AM.


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