WebSite X5Help Center

 
John W.
John W.
User

HTML written for the main menu  en

Autor: John W.
Visitado 167, Followers 1, Compartido 0  

My pages were HTML heavy until I trimed down what is being allowed in the main drop down menu.
I did create sub menus pertaining to the section of the website that you are currently in.
So many HTML files reduced their size by close to 90KB. That was good.

But I am noticing this about the menu HTML. Here are a couple of HTML code entries that I see around lines 190+
in the source code. And then a repeat of them around lines 400+ in the source code with only TWO TINY
differences.

</div>
 </li><li class="imMnMnFirst imPage" data-link-paths=",/close-out-knobs-and-pulls.html">
<div class="label-wrapper">
<div class="label-inner-wrapper">
  <a class="label" href="../close-out-knobs-and-pulls.html">
Close Out Knobs and Pulls  </a>
</div>
</div>
 </li><li class=" imPage" data-link-paths=",/close-out-bathroom-hardware.html">
<div class="label-wrapper">
<div class="label-inner-wrapper">
  <a class="label" href="../close-out-bathroom-hardware.html">
Close Out Bathroom Hardware  </a>
</div>

---------------------------------------------
</div>
 </li><li class="imMnMnMiddle imPage" data-link-paths=",/close-out-knobs-and-pulls.html">
<div class="label-wrapper">
<div class="label-inner-wrapper">
  <a class="label" href="../close-out-knobs-and-pulls.html">
Close Out Knobs and Pulls  </a>
</div>
</div>
 </li><li class="imMnMnLast imPage" data-link-paths=",/close-out-bathroom-hardware.html">
<div class="label-wrapper">
<div class="label-inner-wrapper">
  <a class="label" href="../close-out-bathroom-hardware.html">
Close Out Bathroom Hardware  </a>
</div>

The difference is:

class="imMnMnFirst is in the first grouping, and then the word First changes to Middle, and then I see Last (in the second grouping). This is just one example. It seems to do it for all menu entries.

What is it doing? Is this repeated code? Or does First, 'nothing', Middle, and Last all have different jobs
 to do?

Publicado en
2 RESPUESTAS
Incomedia
Stefano G.
Incomedia

Hello John

It might be separated code for the desktop version of the menu and the other version per each breakpoint respectively.

It would perhaps be helpful if you could share here with me the online page where you noticed this so that I might investigate this as well

If this is okay with you, please let me know the URL here so that I might proceed with that

Thank you

Stefano

Leer más
Publicado en de Stefano G.
John W.
John W.
User
Autor

Hi Stefano,

Pretty much every URL on the site: https://www.eclectic-ware.com

After I thought about it a bit more, it does seem to relate to a desktop menu and probably the hamburger menu
for the smaller viewports.

Leer más
Publicado en de John W.