How do i have the top page dropdown showing by default ?
I would like the black bar with the links in to be active by default rather than having to click the arrow at the top right.
thank you.
11 answers
How do i have the top page dropdown showing by default ?
I would like the black bar with the links in to be active by default rather than having to click the arrow at the top right.
thank you.
could you give screenshot for these questions?
Hi, not sure why you would need a screenshot.
Do you not have access to the demo’s ?
http://www.joomlart.com/magento/themes/jm-oganis
I have included the link above.
As i mentioned previuosly there is a black bar containing links at the top of the page --
Default welcome msg! My AccountMy WishlistMy CartCheckoutLog In
I presume the switch for this on the top right is controlled by javascript.
Default is closed / how do i switch it to defualt open ?
Thank you.
We ask for a screenshot so we do not waste time understanding the exact part you would like modified. Very often a screenshot saves both us and you a lot of time trying to work out exactly the part you are talking about. A picture speack a thousand words so to speak.
The code that controls this is found in \skin\frontend\default\jm_organis\js\ja.script.js around line 91 to 124
Change to
Code:
jQuery.noConflict(); jQuery("#ja-cpanel-top").ready(function($){ var cookieName = 'ja-bottom-sliding'; var mainSlider = $('#ja-cpanel-top .main'); var _height = mainSlider.height(); if($.cookie(cookieName) != null){ if($.cookie(cookieName) == 'hide'){ mainSlider.slideDown('fast', function(){ $('.jm-open').removeClass('show').addClass('hide').html('Close'); }); } else { mainSlider.slideUp(0, function(){ $('.jm-open').removeClass('hide').addClass('show').html('Open'); }); } } $('.jm-open').click( function() { mainSlider.slideToggle("slow", function () { if($(this).is(':visible')){ jQuery.cookie(cookieName, 'show', { expires: 100 }); $('.jm-open').removeClass('hide').addClass('show').html('Close'); } else { jQuery.cookie(cookieName, 'hide', { expires: 100 }); $('.jm-open').removeClass('show').addClass('hide').html('Open'); } } ); }); });
Hi Phil, point taken -- will do in future.
thanks for the info -- my code looked identical but i swapped anyway and this has the ja-cpanel closed by default which was how it was already.
i flushed all the caches in the admin but still closed by default and ive cleared the browser cache as well.
is there something ive missed ?
thank you
Sorry, I was completely on the wrong track with the above. Just learning Magento, today is my first play.
It is a lot simpler than I first thought to change this bit. Simply open skin/frontend/defauls/jm_organis/css/theme.css and around line 289 change
Code:
#ja-cpanel-top .main{ display: none; }
to
Code:
#ja-cpanel-top .main{ display: block; }
Thanks Phil -- that seems to have done the trick.
Except in ie8 where it -- when hitting f5 to refresh it pops down then retracts.
Do you think it needs an extra instruction for this browser ?
Actually does it in Chrome as well
Please clear the cookies in those browsers. If this is working how I think it is working we have adjusted the default setting. When the page is loading the cookie is then read which is closing the menu. If the cookie is cleared then the box should remain open unless the user decides otherwise. At that point a cookie will be set on their system setting the default.
Chrome ok now -- i guess it was slow because it doesnt hold the cookies locally if im correct.
Still doing the same in ie8 though.
http://www.lifestyle-impex.co.uk/
I cannot see that link as it requires authorization.
Cookies are held on your machine. So try clearing the cookies for IE8.
Thanks for your PM. No need to say sorry to me by the way, my favourite trick is to forget passwords or worse still, attachmnets. I have just tested on my IE8 box and the menu remains open.
cheers for that
this may just be 1 of those ie8 black magic things then
somedays it will show you a favicon / somedays not etc
i think it seems now that new visitors will see it open anyway and thats what i was after so thanks again for your help with another issue
This question is now closed