Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter filzer

    (@filzer)

    Is there any Idea in what i can look to resolve this problem?

    I would consider going pro if this would be the definitve solution!

    Thread Starter filzer

    (@filzer)

    YES Sampression! Thank you very much, this did it! Very cool! (and so nice there are still people who try and help without wanting money…!)

    Thread Starter filzer

    (@filzer)

    Okay, i have a <a href="#">paint</a> link now. but i don’t know where to add the above jQuery code. I added it in the functions.js (which is copied from the original fifteen theme into my child theme folder) but there happens nothing.

    i really appreciate your help! as i understand it is your idea to add another toggle to the link, so there will be one toggle with the button and another with the link. will they sync as well?

    Thread Starter filzer

    (@filzer)

    thank you for that @sampression! but it won’t work, the problem is that the menu item “paint” is not part of the toggle button.

    the .js code obviously inserts it’s <button> tag after the <a> (for the menu item).

    if i could remove the <a>paint</a> and replace it with <button>paint</button> i think this should work.

    here the HTML output:

    <li id="menu-item-152" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-152">
    <a>art</a>
    <button class="dropdown-toggle toggle-on" aria-expanded="true"><span class="screen-reader-text">Untermenü verbergen</span></button>
    <ul class="sub-menu toggled-on">
    	<li id="menu-item-137" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-137"><a>paint</a><button class="dropdown-toggle toggle-on" aria-expanded="true"><span class="screen-reader-text">Untermenü verbergen</span></button>
    	<ul class="sub-menu toggled-on">
    		<li id="menu-item-129" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-129"><a href="http://tstaudt.net/portfolio/paint-1/">paint 1</a></li>
    		<li id="menu-item-144" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-144"><a href="http://tstaudt.net/portfolio/paint-2/">paint 2</a></li>
    		<li id="menu-item-143" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-143"><a href="http://tstaudt.net/portfolio/paint-3/">paint 3</a></li>
    	</ul>
    </li>
    	<li id="menu-item-125" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-125"><a href="http://tstaudt.net/portfolio/kunst/print-2/">print</a></li>
    	<li id="menu-item-124" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-124"><a href="http://tstaudt.net/portfolio/kunst/photo/">photo</a></li>
    	<li id="menu-item-123" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-123"><a href="http://tstaudt.net/portfolio/kunst/paper/">paper</a></li>
    </ul>
    </li>

    what part of code of the menu do you need? it is the standard fifteen theme menu.

    the site i am working on (only the menu atm) is http://tstaudt.net/portfolio/

    thanks in advance!

    Thread Starter filzer

    (@filzer)

    thank you for your answer, but i don’t understand: do you want to sell me a solution?

Viewing 5 replies - 1 through 5 (of 5 total)