1

Currently my template is using Mega Menu. /RWD/ If 'casting supplies' is clicked on an iPad it will go to the category page and not just drop down the menu.

enter image description here

How do I change it so that when 'Casting Supplies' is clicked, it does nothing.

I tried:

// COMMENT OUT THIS LINE
//$html .= '<a href="'. $child->getUrl() .'" class="'. $outermostClassCode .' '. $_hasChildren .'">'. $this->escapeHtml($this->__($child->getName())) .'</a>';

// ADD THESE LINES
if (!empty($_hasChildren)) {
    $html .= '<a onclick="return false" style="text-decoration:none; cursor: default;" href="javascript:;" class="'. $outermostClassCode .' '. $_hasChildren .'">'.
    $this->escapeHtml($this->__($child->getName())) .'</a>';
} else {
    $html .= '<a href="'. $child->getUrl() .'" class="'. $outermostClassCode .' '. $_hasChildren .'">'.
    $this->escapeHtml($this->__($child->getName())) .'</a>';
}

Not sure what else to change. Does anyone have a solution?

  • Which file did you edit? – simonthesorcerer Nov 12 '15 at 16:58
  • app/design/frontend/rwd/default/template/page/html/topmenu/renderer.phtml – user3760917 Nov 12 '15 at 17:18
  • anyone? have any ideas? – user3760917 Nov 13 '15 at 16:10
  • i'll check tomorrow, no time today sry – simonthesorcerer Nov 13 '15 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.