We used nop-electronics theme (2.50 version) for our website. We replaced the images to suit our needs.
We have couple of issues in customizing the design. When we replace the Menu strip with our image it fit in to 1000px but we needed it 100%.
What we need:
We want the Menu (Categories Header Menu) strip and Footer to be 100%. We tried several ways but we could not get it done. Please help us in this regard.
I see what you mean. It will be a little tricky to implement as the main content in nopCommerce has a fixed width.
Except changes in css there is a little html reorganization that needs to be done in order to pull the header out of the main content so that it can have width 100%.
So the idea is to pull out the elements that you want to have width 100% out of the <div class="master-wrapper-page"> <div class="master-wrapper-content"> </div> </div>
elements and set the necessary styles.
We will give you the example for the header menu:
1. Open the ~\Themes\Electronics\Views\Shared\_Root.cshtml view and edit it in the following way:
Hi, Thanks for the reply. It was very helpful. I was successful in getting the header menu to 100% width but i am facing a problem with aligning the <ul> inside the header menu to center. It always aligns to the left. Please help me in this regard.
Hi, Thanks for the reply. It was very helpful. I was successful in getting the header menu to 100% width but i am facing a problem with aligning the <ul> inside the header menu to center. It always aligns to the left. Please help me in this regard.
Thanks in advance
Hi,
Could you send us a link to your store, so that we can see if we can help with centering the menu?
Hi, Following is the link to our website: http://ec2-46-137-198-91.ap-southeast-1.compute.amazonaws.com/
Thanks in advance
Hi,
You need to set the background image to the div and to remove it from the ul element. You need to set margin auto for the left and right margin and to specify a width of 960px for the ul. Here is how it should look like after the changes:
Thanks for the quick response.It was very helpful. I was able to set the width to 100% by the styles that you have suggested me. But I have a small problem. To the left side of the page there is a small gap maybe a 10px width gap. I could not find any left padding or left margin which is causing this. Can you please suggest me what can be done to remove the the small gap at the left of the page. For your reference following is the url: http://ec2-46-137-198-91.ap-southeast-1.compute.amazonaws.com
it somehow looks bad on some screens, like older devices. they can't see a part of the page. is there any way I can make it responsive for all devices. Or at least can I change it back. I can't seem to find the css line for master wrapper page. Tnx