Add meta tags for system pages opencart
Add keywords and meta description for stock pages, manufacturers, contacts, and others ...
πŸ’Ό Creation of modern websites of any complexity. | πŸ‘Œ WEB-UKRAINE.COM

Add meta tags for system pages opencart

5/53 ratings

When developing an online store on the opencart engine, you sometimes need to add meta tags for standard store pages, such as for example : contact page, stock page, site map, manufacturers ...

By default, the meta description and keywords are not displayed in opencart on these pages, and in order to fix it we need to correct just two files.

You can certainly buy a module for opencart which adds the ability to edit these pages from the admin panel, but I think this is superfluous, because you just need to add two lines to the page controllers files and to the language files.

The common thing is how to add Meta Description and Meta Keywords for some pages in opencart:

Let's add meta tags to the example of the contacts page, for all other pages we add everything by analogy.

1. Open the controllerΒ /catalog/controller/information/contact.php

And after:

Add two lines:

All the controller can be closed. Then open the language fileΒ /catalog/language/russian/information/contact.php

And after the line:

Add:

That's basically all, now on the contacts page if you look at the source code will appear meta tags.

Good luck, try it.

You may also like

No Comment

You can post first response comment.

Leave a Reply

Π’ΠΈΠ±Π΅Ρ€Ρ–Ρ‚ΡŒ спосіб спілкування
Звязатися Π· Π½Π°ΠΌΠΈ!
Ми Π³ΠΎΡ‚ΠΎΠ²Ρ– Π΄ΠΎ Π΄Ρ–Π°Π»ΠΎΠ³Ρƒ.