X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   NEW xMenus - The Ultimate Menu Manager for X-Cart (https://forum.x-cart.com/showthread.php?t=62805)

Will Hayes 06-06-2013 05:28 AM

Re: NEW xMenus - The Ultimate Menu Manager for X-Cart
 
HI Stizerg,

To achieve this, just leave the URL value blank and maybe set a different class on this menu item.
Then within your stores master css file, style the class to be different (like how you want your headers to look). That should do it.

regards
W.

Stizerg 06-06-2013 08:42 AM

Re: NEW xMenus - The Ultimate Menu Manager for X-Cart
 
Quote:

Originally Posted by Will Hayes
HI Stizerg,

To achieve this, just leave the URL value blank and maybe set a different class on this menu item.
Then within your stores master css file, style the class to be different (like how you want your headers to look). That should do it.

regards
W.

no, it's clickable with javascript:void(0); as URL

carpeperdiem 07-05-2013 06:05 AM

Re: NEW xMenus - The Ultimate Menu Manager for X-Cart
 
Quote:

Originally Posted by Stizerg

Quote:

Originally Posted by Will Hayes

To achieve this, just leave the URL value blank and maybe set a different class on this menu item.
Then within your stores master css file, style the class to be different (like how you want your headers to look). That should do it.

no, it's clickable with javascript:void(0); as URL


I am interested in this solution as well.

MENU-TITLE (not clickable, no link to anywhere or javascript:void(0);)
==========
Header item (clickable)
sub-item (clickable)
etc...

Is there a trick to accomplish this? Will, should I open a ticket?

PS -- I AM L-O-V-I-N-G this mod!!!! It is beyond brilliant. Of course, I need to see what this does to page load time and SEO, but first impressions are beyond thrilled. xMenus allows merchandising that looks like the most expensive sites out there today. And the code is clean. At the menus are reliable. I have not put this into production yet, but all my testing has this mod at 11-stars (out of 5).

philrisk 07-05-2013 06:11 AM

Re: NEW xMenus - The Ultimate Menu Manager for X-Cart
 
Free URL thats blank is void but doesnt reload the page. Thats the solution we used.

carpeperdiem 07-05-2013 06:16 AM

Re: NEW xMenus - The Ultimate Menu Manager for X-Cart
 
Quote:

Originally Posted by philrisk
Free URL thats blank is void but doesnt reload the page. Thats the solution we used.


yes, of course... but in the browser, the user sees the link to javascript:void(0) - can that be avoided?

philrisk 07-05-2013 06:17 AM

Re: NEW xMenus - The Ultimate Menu Manager for X-Cart
 
Afraid not. But we havent found it an issue yet and been doing it like that for at least 6 months now.

carpeperdiem 07-05-2013 06:32 AM

Re: NEW xMenus - The Ultimate Menu Manager for X-Cart
 
While we are all sharing xMenus tips:
I have a ticket in with TXS, but in case anyone knows this...
This may be useful to others, so Will, please excuse the duplicate post here as well as the support ticket...

I'm trying to edit the "width" of a top menu title.
It appears that the "width" of each main Menu Title is set in the js

<li class="xm-top xm-full" style="width: 183px;">

the css is:

Code:

element.style {width: 183px;}

but the width is set by the js (element.style) --- and not by the css.

It is a calculation in the js, based on the text/content in the menu title... but can I "tighten up" or reduce the margin/padding between the elements? I don't really know js or where to look...
guessing:
/skin/common_files/modules/TXS_XMenus/js/xm-main.js

in the /*Headers Auto justify*/ section?

I simply don't understand js to make this edit.

I'd like slightly less space between the main titles.

Anyone know the secret handshake to accomplish this?

Thx
J

philrisk 07-05-2013 06:35 AM

Re: NEW xMenus - The Ultimate Menu Manager for X-Cart
 
You can tighten the padding in the css files. Here is mine for the skin I use:
.xm-menu.xm-modern-living li.xm-top > a {
height: 31px;
line-height: 31px;
padding: 0 12px;

Adjust the padding upload and refresh.

carpeperdiem 07-05-2013 06:41 AM

Re: NEW xMenus - The Ultimate Menu Manager for X-Cart
 
BRILLIANT!
As I continued to read the javascript, it appears that the js does a calculation based on the css setting. SO editing the css does change the calculation the js makes...

If anyone is looking for this in the future (could be me), the search string will be:
li.xm-top > a {

and yes, padding:

Thanks for this.
Will, I will close the ticket.

Thanks!
J

Freakmode 07-05-2013 11:19 PM

Re: NEW xMenus - The Ultimate Menu Manager for X-Cart
 
Is there any chance this may become responsive in the near future?


All times are GMT -8. The time now is 08:35 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.