Before you ask please READ THIS

Link/Button for opening the "Show Info" part

edited April 2013 in Hypershot Posts: 40
Hi Air,
wow, I gotta say: My page looks awesome now! The last tweaks and additions within the current update dod a great job.

Now, I have a small question for usability:
Is it somehow posible to make a connection between opening the header info part and a link/button/menu entry?

As I watched several friends using my new layout I realized, that for some folks the small "Show Info" is not important enough :(
So, to emphasize the Info I keep up there, I'd like to add a menu item "Info" to my menu. For I am a really noob at JS/jQuery I have problems to find out, how to trigger the open/close event.

Maybe, after some recreation, you might find the time to point me to the line/file to solve my "problem".

Regards,
Max

Comments

  • AirAir
    Posts: 10,970
    Hello macmacs :-)

    If you will add your link to menu then you will have to add such JS to your site(I have tested it on my DEV version)

    (function($){
    $(document).ready(function(){
    $('li.menu-item-1037 a').click(function(e){
    e.preventDefault();
    $('#head-widgets').find('.handle').click();
    });
    });
    })(jQuery);
    Change menu-item-1037 to class of your menu item. If you need more help with this then ask :-)

    With regards.

  • Posts: 40
    Nice :) Thanks!!

    I added it to head_script_styles.php.

    Now it works, BUT I don't know, if this is the perfect place ;)
  • AirAir
    Posts: 10,970
    Yes it is nice place in a13_theme_head() function, right under Fonts JS :-)

    With regards.
  • Posts: 40
    That's where I put it ;)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion