- Posts: 2
- Thank you received: 0
Renaming the "top panel"
-
laurent
Inactive member - Topic Author
- New Member
Less
More
13 years 8 months ago #7293
by laurent
Renaming the "top panel" was created by laurent
Hello,
How can i change the "open" and "close" words in the top panel?
Thanks
How can i change the "open" and "close" words in the top panel?
Thanks
Please Log in to join the conversation.
-
pirossi
Inactive member - Member
Less
More
- Posts: 146
- Thank you received: 11
13 years 8 months ago - 13 years 8 months ago #7295
by pirossi
Replied by pirossi on topic Re: Renaming the "top panel"
First open templates\hot_designnow\index.php and change line 241:
Instead of 'Open' enter desired caption.
After that edit templates\hot_designnow\js\toppanel.js:
And there change both appearances of word 'Close' and one instance of word 'Open' with desired words. Save & that is that.
Code:
<div id="sub-panel"><a href="#" id="toggle"><span id="shText">Open</span></a></div>
After that edit templates\hot_designnow\js\toppanel.js:
Code:
jQuery(document).ready(function(){
jQuery("#sub-panel").click(function(){
jQuery("#top-panel").slideToggle();
var el = jQuery("#shText");
var state = jQuery("#shText").html();
state = (state == 'Close' ? '<span id="shText">Open</span>' : '<span id="shText">Close</span>');
el.replaceWith(state);
});
});
Last edit: 13 years 8 months ago by pirossi.
The following user(s) said Thank You: laurent
Please Log in to join the conversation.
Time to create page: 0.150 seconds