<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>WordPress DK Forum Tag: mobil menu - Recent Posts</title>
		<link>http://wp-danmark.dk/forum/tags/mobil-menu</link>
		<description>WordPress DK Forum Tag: mobil menu - Recent Posts</description>
		<language>da-DK</language>
		<pubDate>Wed, 23 Sep 2026 10:04:01 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Søg]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wp-danmark.dk/forum/search.php</link>
		</textInput>
		<atom:link href="http://wp-danmark.dk/forum/rss/tags/mobil-menu" rel="self" type="application/rss+xml" />

		<item>
			<title>MortenMoeller om "Mobil menu"</title>
			<link>http://wp-danmark.dk/forum/topic/mobil-menu#post-68497</link>
			<pubDate>fre, 06 okt 2017 11:44:27 +0000</pubDate>
			<dc:creator>MortenMoeller</dc:creator>
			<guid isPermaLink="false">68497@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hej&#60;/p&#62;
&#60;p&#62;Er ved at lave så min mobilmenu virker i wordpress har sat det hele op med jquery har kilderne vist i vis kildekode i browseren så det skulle være på plads.&#60;/p&#62;
&#60;p&#62;Vil så høre om hvor det går galt, har før lavet en mobil menu men ikke til Wordpress.&#60;br /&#62;
Ved der er plugins til sådan noget, men det er altså sjovere at have i hænderne, selvom jeg ved jeg spørger om hjælp.&#60;br /&#62;
Men vil gerne lære det ;o)&#60;/p&#62;
&#60;p&#62;Her er min jquery:&#60;br /&#62;
$(function(){&#60;br /&#62;
    $('#menu-topmenu').prepend('&#38;lt;div id=&#34;menu-button&#34;&#38;gt;Menu&#38;lt;/div&#38;gt;');&#60;br /&#62;
  $( '#menu-button' ).click(function(event){&#60;br /&#62;
      event.preventDefault();&#60;br /&#62;
        $( &#34;ul&#34; ).toggleClass(&#34;open&#34;);&#60;br /&#62;
  });&#60;br /&#62;
});&#60;/p&#62;
&#60;p&#62;Her er min css:&#60;br /&#62;
@media all and (max-width: 800px){&#60;br /&#62;
#menu-button {&#60;br /&#62;
    padding:20px;&#60;br /&#62;
    font-weight:bold;&#60;br /&#62;
}&#60;br /&#62;
#menu-topmenu &#38;gt; ul {&#60;br /&#62;
    display:none;&#60;br /&#62;
}&#60;br /&#62;
#menu-topmenu &#38;gt; ul.open {&#60;br /&#62;
    display: block;&#60;br /&#62;
    border-top: 1px solid rgba(0, 0, 0, 0.1);&#60;br /&#62;
}&#60;br /&#62;
#menu-topmenu {&#60;br /&#62;
    background: #333;&#60;br /&#62;
    background: -moz-linear-gradient(top, #333 0%, #CCC 100%);&#60;br /&#62;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333), color-stop(100%, #CCC));&#60;br /&#62;
    background: -webkit-linear-gradient(top, #333 0%, #CCC 100%);&#60;br /&#62;
    background: -o-linear-gradient(top, #333 0%, #CCC 100%);&#60;br /&#62;
    background: -ms-linear-gradient(top, #333 0%, #CCC 100%);&#60;br /&#62;
    background: linear-gradient(to bottom, #333 0%, #CCC 100%);&#60;br /&#62;
    color:#FFF;&#60;br /&#62;
    cursor:pointer;&#60;br /&#62;
    width:100%;&#60;br /&#62;
}&#60;br /&#62;
#menu-topmenu &#38;gt; ul &#38;gt; li &#38;gt; ul {&#60;br /&#62;
    padding:0px 0px 0px 20px;&#60;br /&#62;
    background-color:#ff6600;&#60;br /&#62;
    font-weight:normal;&#60;br /&#62;
    list-style:none;&#60;br /&#62;
    display: block;&#60;br /&#62;
}&#60;br /&#62;
#menu-topmenu &#38;gt; ul &#38;gt; li {&#60;br /&#62;
    color:#FFF;&#60;br /&#62;
    font-weight:bold;&#60;br /&#62;
    list-style:none;&#60;br /&#62;
    font-family: 'Open Sans', Helvetica, sans-serif;&#60;br /&#62;
    background: #333;&#60;br /&#62;
    background: -moz-linear-gradient(top, #333 0%, #CCC 100%);&#60;br /&#62;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333), color-stop(100%, #CCC));&#60;br /&#62;
    background: -webkit-linear-gradient(top, #333 0%, #CCC 100%);&#60;br /&#62;
    background: -o-linear-gradient(top, #333 0%, #CCC 100%);&#60;br /&#62;
    background: -ms-linear-gradient(top, #333 0%, #CCC 100%);&#60;br /&#62;
    background: linear-gradient(to bottom, #333 0%, #CCC 100%);&#60;br /&#62;
    width:100%;&#60;br /&#62;
}&#60;br /&#62;
#menu-topmenu ul &#38;gt; li{&#60;br /&#62;
    padding:0px 0px 0px 0px;&#60;br /&#62;
    text-indent: 10px;&#60;br /&#62;
    line-height:46px;&#60;br /&#62;
}&#60;br /&#62;
#menu-topmenu #menu-button::after {&#60;br /&#62;
    display: block;&#60;br /&#62;
    content: '';&#60;br /&#62;
    position: absolute;&#60;br /&#62;
    height: 3px;&#60;br /&#62;
    width: 22px;&#60;br /&#62;
    border-top: 2px solid #FFF;&#60;br /&#62;
    border-bottom: 2px solid #FFF;&#60;br /&#62;
    right: 25px;&#60;br /&#62;
    top: 22px;&#60;br /&#62;
}&#60;br /&#62;
#menu-topmenu #menu-button::before {&#60;br /&#62;
    display: block;&#60;br /&#62;
    content: '';&#60;br /&#62;
    position: absolute;&#60;br /&#62;
    height: 3px;&#60;br /&#62;
    width: 22px;&#60;br /&#62;
    border-top: 2px solid #FFF;&#60;br /&#62;
    right: 25px;&#60;br /&#62;
    top: 32px;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;Og alt bliver vist igennem min function fil:&#60;br /&#62;
function kis_add_styles(){&#60;br /&#62;
  wp_enqueue_style('style', get_stylesheet_uri());&#60;br /&#62;
  wp_enqueue_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css');&#60;br /&#62;
  wp_enqueue_style('jquery', 'http://code.jquery.com/jquery.js');&#60;br /&#62;
  wp_enqueue_style('mobil_menu', get_template_directory_uri() . '/css/mobil_menu.js');&#60;br /&#62;
}&#60;br /&#62;
add_action('wp_enqueue_scripts', 'kis_add_styles');&#60;/p&#62;
&#60;p&#62;Håber der er en der kan hjælpe med at finde problemet.&#60;/p&#62;
&#60;p&#62;Med venlig hilsen&#60;br /&#62;
Morten
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
