Giter Club home page Giter Club logo

storeseo's Introduction

Store Seo

Manage translation for your store SEO meta.

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is StoreSeo.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/store-seo-module:~1.2.0

Usage

Once activated, click on the configuration button of the module.

Then, select one of your store available language and fill inputs with your store title, description and keywords. Save and do it for each of your language.

They will be used on pages with no SEO meta configured.

Integration

Open the layout.tpl file of your template.

Check the Define some stuff for Smarty section at the top of the file, and be sur that you have this assignation:

{assign var="lang_locale" value={lang attr="locale"}}

Add this line in the <head> section, before the <title> tag :

{store_seo_meta locale=$lang_locale}

Also add this in the {block name="meta"}, after the <meta name="description"> tag :

{if $page_keywords}
    <meta name="keywords" content="{$page_keywords}">
{else}
    <meta name="keywords" content="{$default_keywords}">
{/if}

Finally, be sure that you have no {$page_title = {config key="store_name"}} declaration in your other template files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.