News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Display none image in menu

Started by maulik 1intl, August 05, 2019, 06:52:28 AM

Previous topic - Next topic

maulik 1intl

Hello sir

            Nice to use abantecart.
            Nice see website in laptop and mobile but i need to stop load image menu in mobile view because it's to take load time in mobile.
            In menu ul.categorymenu > li ul > li img where is image load is good with laptop but in mobile view it's not need to load but it's load in background and make website load in mobile.i was attach image this image is also load in mobile but it's not need to load.
also try to remove it in css
@media only screen and (max-width: 800px)
ul.categorymenu > li ul > li img {
    display: none !important;
}

there after it's load here is website url http://1intl.com/
:D :)

Basara


maulik 1intl

in image where u see image in sub menu when hove it's display image in laptop or desktop but this image not need in mobile view website i was try to use css change " ul.categorymenu > li ul > li img {display:none !important;} "  it when in mobile view.but it's steel load in background that i don't need to load.

Sam_78

Try

@media only screen and (max-width: 800px)
.root_cat_image{
display:none!important;
}

maulik 1intl

Thanks to replay i already do it but not working because of inline css overwrite it style="display:none" of
storefront\view\default\template\blocks\category_top.tpl .if i do change in it's change in desktop view display first image of sub-menu. 

Sam_78

look at this line  https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/blocks/category_bottom.tpl#L46 you can edit it

There are other three files in this storefront/view/default/template/blocks/category* if that doesn't work try in these files



maulik 1intl

Thanks  :) :) :)
to replay but i can't give media query there or i was change there line it's change in desktop view.And show me first image in desktop so i could change that.

Forum Rules Code of conduct
AbanteCart.com 2010 -