<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[bar to separate menu elements]]></title><description><![CDATA[<p dir="auto">Hi ! Do you have an idea how I could add vertical bars to separate the elements of my menu as shown on the image ?<br />
I tried to add it before the words but as every element is independant the bar is never centered...</p>
<p dir="auto">Thank you vm</p>
<p dir="auto"><img src="/assets/uploads/files/1779440725678-capture-d%C3%A2-e%C3%AC-cran-2026-05-22-a%C3%AC-11.05.20-resized.png" alt="Capture d’écran 2026-05-22 à 11.05.20.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://laythemeforum.com/topic/11914/bar-to-separate-menu-elements</link><generator>RSS for Node</generator><lastBuildDate>Fri, 22 May 2026 20:23:25 GMT</lastBuildDate><atom:link href="https://laythemeforum.com/topic/11914.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 May 2026 09:07:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bar to separate menu elements on Fri, 22 May 2026 13:29:48 GMT]]></title><description><![CDATA[<p dir="auto">you're welcome! &lt;3</p>
]]></description><link>https://laythemeforum.com/post/47333</link><guid isPermaLink="true">https://laythemeforum.com/post/47333</guid><dc:creator><![CDATA[arminunruh]]></dc:creator><pubDate>Fri, 22 May 2026 13:29:48 GMT</pubDate></item><item><title><![CDATA[Reply to bar to separate menu elements on Fri, 22 May 2026 13:29:28 GMT]]></title><description><![CDATA[<p dir="auto">Thank you so much.</p>
]]></description><link>https://laythemeforum.com/post/47332</link><guid isPermaLink="true">https://laythemeforum.com/post/47332</guid><dc:creator><![CDATA[emmapasteur]]></dc:creator><pubDate>Fri, 22 May 2026 13:29:28 GMT</pubDate></item><item><title><![CDATA[Reply to bar to separate menu elements on Fri, 22 May 2026 13:26:56 GMT]]></title><description><![CDATA[<p dir="auto">I changed the code a little bit. I had one or two things that were not optimal yet. You can copy the code again from my post above.</p>
<p dir="auto">You will find it in Lay Options . Custom HTML and CSS, and I think it's the very last text box at the bottom.</p>
]]></description><link>https://laythemeforum.com/post/47331</link><guid isPermaLink="true">https://laythemeforum.com/post/47331</guid><dc:creator><![CDATA[arminunruh]]></dc:creator><pubDate>Fri, 22 May 2026 13:26:56 GMT</pubDate></item><item><title><![CDATA[Reply to bar to separate menu elements on Fri, 22 May 2026 13:23:49 GMT]]></title><description><![CDATA[<p dir="auto">I can't find the "html at bottom" window you are talking about... thank you very much for your help</p>
]]></description><link>https://laythemeforum.com/post/47330</link><guid isPermaLink="true">https://laythemeforum.com/post/47330</guid><dc:creator><![CDATA[emmapasteur]]></dc:creator><pubDate>Fri, 22 May 2026 13:23:49 GMT</pubDate></item><item><title><![CDATA[Reply to bar to separate menu elements on Fri, 22 May 2026 13:20:38 GMT]]></title><description><![CDATA[<p dir="auto">then you can adapt the CSS so the line has the right height and spacing.</p>
<p dir="auto"><img src="/assets/uploads/files/1779456015396-2d12601e-0f26-4256-bab1-ac5e9473281e-grafik.png" alt="grafik.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Try to adapt the CSS using maybe ChatGPT or Gemini or something if you need help with that</p>
]]></description><link>https://laythemeforum.com/post/47329</link><guid isPermaLink="true">https://laythemeforum.com/post/47329</guid><dc:creator><![CDATA[arminunruh]]></dc:creator><pubDate>Fri, 22 May 2026 13:20:38 GMT</pubDate></item><item><title><![CDATA[Reply to bar to separate menu elements on Fri, 22 May 2026 13:26:17 GMT]]></title><description><![CDATA[<pre><code>&lt;script&gt;
(function () {
	var lists = document.querySelectorAll('nav.laynav.primary &gt; ul');
	for (var i = 0; i &lt; lists.length; i++) {
		var ul = lists[i];
		// collect the real menu items (excluding dividers)
		var items = [];
		for (var c = 0; c &lt; ul.children.length; c++) {
			var child = ul.children[c];
			if (child.tagName === 'LI' &amp;&amp; !child.classList.contains('lay-menu-divider')) {
				items.push(child);
			}
		}
		// insert a divider before every menu item except the first
		for (var j = 1; j &lt; items.length; j++) {
			var prev = items[j].previousElementSibling;
			if (prev &amp;&amp; prev.classList.contains('lay-menu-divider')) {
				continue; // divider already there
			}
			var divider = document.createElement('li');
			divider.className = 'lay-menu-divider';
			divider.setAttribute('aria-hidden', 'true');
			ul.insertBefore(divider, items[j]);
		}
	}
})();
&lt;/script&gt;

&lt;style&gt;
/* Vertical divider line between menu items (JS-inserted &lt;li&gt;) */
nav.laynav.primary &gt; ul &gt; li.lay-menu-divider {
	display: inline-block;
	vertical-align: middle;   /* vertically centered on the menu line */
	width: 1px;               /* line thickness */
	height: 15px;             /* line height */
	margin: 0 2px;           /* space left/right → breathing room from the text */
	padding: 0;
margin-top: 5px;
	background-color: #000;   /* black */
}
&lt;/style&gt;
</code></pre>
<p dir="auto">copy this and put it into "html at bottom"</p>
]]></description><link>https://laythemeforum.com/post/47328</link><guid isPermaLink="true">https://laythemeforum.com/post/47328</guid><dc:creator><![CDATA[arminunruh]]></dc:creator><pubDate>Fri, 22 May 2026 13:26:17 GMT</pubDate></item><item><title><![CDATA[Reply to bar to separate menu elements on Fri, 22 May 2026 09:29:07 GMT]]></title><description><![CDATA[<p dir="auto">I tried yes... but as i said i can't manage to center it between the words</p>
]]></description><link>https://laythemeforum.com/post/47312</link><guid isPermaLink="true">https://laythemeforum.com/post/47312</guid><dc:creator><![CDATA[emmapasteur]]></dc:creator><pubDate>Fri, 22 May 2026 09:29:07 GMT</pubDate></item><item><title><![CDATA[Reply to bar to separate menu elements on Fri, 22 May 2026 09:27:00 GMT]]></title><description><![CDATA[<p dir="auto">Have you added it via css?</p>
]]></description><link>https://laythemeforum.com/post/47310</link><guid isPermaLink="true">https://laythemeforum.com/post/47310</guid><dc:creator><![CDATA[emgeoffice]]></dc:creator><pubDate>Fri, 22 May 2026 09:27:00 GMT</pubDate></item></channel></rss>