Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Page titles when on Wordpress pages

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-03-2014, 03:38 AM
 
JannieB JannieB is offline
 

Senior Member
  
Join Date: Sep 2004
Posts: 117
 

Default Page titles when on Wordpress pages

I am using the Wordpress plugin in XC5.

I have noticed that when viewing any of the pages the meta title attribute just says "blog" ... this is obviously useless for SEO purposes .... is there any way to use the title generated via Wordpress (plus any other meta data) instead ....

Thanks,

Jan
__________________
Jan Beesley
(Currently Xcart 5
Previously XCart Gold from 3.5....)
Reply With Quote
  #2  
Old 11-04-2014, 10:17 PM
  soldatov's Avatar 
soldatov soldatov is offline
Moderator
 

X-Cart team
  
Join Date: Apr 2011
Posts: 163
 

Default Re: Page titles when on Wordpress pages

For now this is possible by changing the getPageTitle() method in the "classes/XLite/Module/QSL/WordPress/Controller/Customer/Blog.php" in appropriate way.

We have took this suggestion into account and will implement this feature to the further versions of module.

Thank you for noticed this.
Reply With Quote

The following user thanks soldatov for this useful post:
JannieB (11-05-2014)
  #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

The following user thanks JannieB for this useful post:
tony_sologubov (11-12-2014)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:11 AM.

   

 
X-Cart forums © 2001-2020