1

I'm wondering how to go about moving the 'quick-access' div into the nav-container below it? When in the Chrome dev tools, I can drag the quick-access div into the nav container and it moves just as I want it to (admittedly it doesn't look great).

However, when I move the quick-access div from the header.phtml into the topmenu.phtml, the quick-access div just doesn't show up.

Anyone know how I can get it to show up?

1 Answer 1

0

The quick-access div look like this

    <div class="quick-access">
        <?php echo $this->getChildHtml('topSearch') ?>
        <p class="welcome-msg"><?php echo $this->getChildHtml('welcome') ?> <?php echo $this->getAdditionalHtml() ?></p>
        <?php echo $this->getChildHtml('topLinks') ?>
        <?php echo $this->getChildHtml('store_language') ?>
    </div>

You moved it to topmenu.phtml which is a template of page/html_topmenu

As you can see it calls child blocks like

  • topSearch
  • welcome
  • topLinks
  • store_language

So you need to move theirs definition to page/html_topmenu block.

1
  • Thanks for replying, I ended up using this line in topmenu.html and it worked: <?php echo $this->getLayout()->getBlock('top.links')->toHtml()?>
    – user5440
    Commented Feb 26, 2014 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.