fbpx
  Sunday, 09 July 2017
  2.8K Visits
  Subscribe
Hello. I am configuring SEO on my website. I have a suggestion of change in your code to improve SEO:

In components/com_sellacious/views/product/view.html.php, around line 162:

CURRENT CODE:


$this->document->setMetaData('description', $this->item->get('metadesc'));


SUGGESTION TO CHANGE FOR:


if($this->item->get('metadesc'))
{
$this->document->setMetaData('description', $this->item->get('metadesc'));
}
else
{
$this->document->setMetaData('description', $this->item->get('introtext'));
}


This way, the introtext - which can a vendor to edit easily - is set as meta description tag in the case that the admin not set anything there, making SEO better. Currently, nothing is set in metadescription if admin not write anything.

I tested the code and worked fine Emoticon Smile
6 years ago
·
#836
Ok. Many thanks for your great work Emoticon Smile
Hello adesh, hope you have checked the latest sellacious, your suggestions are implemented to the very comprehensive level.

Thanks for making sellacious better. Emoticon Smile
Hi Adesh,

Thanks for the kind suggestion. We will add this code to Sellacious in the next version.
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Sorry, the discussion is currently locked. You will not be able to post a reply or a comment at the moment.
  • +1 (408) 821-8283
  • Email hello@sellacious.com