View Single Post
  #2  
Old 10-07-2014, 07:52 AM
 
JannieB JannieB is offline
 

Senior Member
  
Join Date: Sep 2004
Posts: 117
 

Default Re: Wordpress in XC 5 ... remove "Blog" from Top Menu

In answer to my own question I sorted it like this:

I added a new class in my custom skin as follows:
Code:
abstract class TopMenu extends \XLite\View\Menu\Customer\Top implements \XLite\Base\IDecorator { /** * Define items * * @return array */ protected function defineItems() { $items = parent::defineItems(); $aNew = array(); foreach ($items as $aItem) { if ($aItem['label'] != static::t('Blog') ) { $aNew[] = $aItem; } } return $aNew; } }

A slightly rubbish way of doing it, but it worked!
__________________
Jan Beesley
(Currently Xcart 5
Previously XCart Gold from 3.5....)
Reply With Quote