PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, October 16, 2022

[FIXED] How to add Meta Tags to the Specials page

 October 16, 2022     meta-tags, opencart, opencart-3     No comments   

Issue

I would like to add a meta tag and meta description to the specials page ( .../index.php?route=product/special ). could anyone assist?

I'm using OpenCart 3.0.2.0

I did how ever figure out how to add a description to the page but not a meta description nor meta keywords like the categories and products.

Any info would be appreciated. Thanks in advance


Solution

Edit this file:

catalog\controller\product\special.php

Find:

$this->document->setTitle($this->language->get('heading_title'));

Add After:

$this->document->setDescription('My description...');
$this->document->setKeywords('my, keyword');


Answered By - DigitCart
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing