I'm working on a bootstrap magento theme. My intentions are to have a dropdown menu for the
Here is a jsFiddle of the exact code I am using to produce the dropdown: jsfiddle/BqKNV/9/ (Must add .net as im <10 rep)
It works, on click it will produce a dropdown menu, although the menu appears on the left side of the header, whilst the button is on the right.
Here is a shot of before click: https://i.sstatic.net/CRrcd.jpg after click:https://i.sstatic.net/jIRgU.jpg
My CSS is form bootstrap, with zero edits regarding dropdown menus.
$this->getChildHtml('topLinks')
<div class="header-container">
<div class="header">
<?php if ($this->getIsHomePage()):?>
<h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a></h1>
<?php else:?>
<a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a>
<?php endif?>
<div class="menulinks">
<?php echo $this->getChildHtml('topMenu'); ?>
</div>
<div class="dropdown btn-group">
<a href="#" class="btn dropdown-toggle" data-toggle="dropdown">
Action
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<?php echo $this->getChildHtml('topLinks'); ?>
</ul>
</div>
<?php echo $this->getChildHtml('topContainer'); ?>
</div>