13naam Posted May 24, 2014 Share Posted May 24, 2014 When I open my website www.13naam.com I want the home button to be activated i.e; to be colored red... how do i do it? Link to comment Share on other sites More sharing options...
vekia Posted May 24, 2014 Share Posted May 24, 2014 this button contains link to homepage, or it's a category ? Link to comment Share on other sites More sharing options...
13naam Posted May 24, 2014 Author Share Posted May 24, 2014 Its a link to home page and its a drop down of categories also. Link to comment Share on other sites More sharing options...
vekia Posted May 24, 2014 Share Posted May 24, 2014 you can do it in two ways, with modification of php file: blocktopmenu.php but it will be a little hard to achieve, or with css and js script if(window.location.href == "http://localhost/1606a/en/"){ $(".sf-menu li").first().addClass("sfHover"); } Link to comment Share on other sites More sharing options...
13naam Posted May 25, 2014 Author Share Posted May 25, 2014 (edited) I found blocktopmenu.php but where do i paste the code? I have attached the code. blocktopmenu.php Edited May 25, 2014 by 13naam (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 25, 2014 Share Posted May 25, 2014 i just mean that there are two possibilities, modificaiton of menu .php file or simple js script so, we have two possibilities: 1) modification of module .php file 2) script that i attached above use this script for example in global theme .js file, in $(document).ready(function(){}); Link to comment Share on other sites More sharing options...
13naam Posted May 26, 2014 Author Share Posted May 26, 2014 can you explain in brief with the exact file name.... bcause i'm not an expert at this.... Link to comment Share on other sites More sharing options...
Recommended Posts