View Single Post
  #3  
Old 11-05-2014, 02:43 AM
 
JannieB JannieB is offline
 

Senior Member
  
Join Date: Sep 2004
Posts: 117
 

Default Re: Page titles when on Wordpress pages

Thanks ... I had already tried this but have refined it and now it works!!

I am posting the code below for the benefit of others:

Code:
class Blog extends XLite\Module\QSL\WordPress\Controller\Customer\Blog implements \XLite\Base\IDecorator { /** * Return the page title (for the <title> tag) *s * @return string */ public function getPageTitle() { if(!getInfoAboutWP('isWPNotInstalled')) { $title = get_the_title(); return $title; } else { return static::t('Blog'); } } }

Jan
__________________
Jan Beesley
(Currently Xcart 5
Previously XCart Gold from 3.5....)
Reply With Quote