Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title and description tags are duplicated #31

Open
ghost opened this issue Apr 27, 2017 · 3 comments
Open

Title and description tags are duplicated #31

ghost opened this issue Apr 27, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 27, 2017

There are no visual difference between the fields

image

Can you just identify where is <meta name="description" ... and where if <meta name="og:description" ?

And separate the fields with a simple hr?

@raakesh
Copy link

raakesh commented Apr 27, 2017

@dunets
I've had same problem.
I've moved the fields ( added by seoextension plugin ) to new tab ( like SEO ).You can do it by yourself by making some changes in Plugin.php.
Change tab values to 'SEO' ( i.e 'tab' => 'cms::lang.editor.meta' to 'tab' => 'SEO') in Plugin.php.

@d-nightmare
Copy link

Or remove the fields that come from the pages plugin itself and only use the ones from this plugin.

Plugin.php

if(PluginManager::instance()->hasPlugin('RainLab.Pages') && $widget->model instanceof \RainLab\Pages\Classes\Page)
            {
                // remove title & description from pages plugin
                $widget->removeField('viewBag[meta_title]');
                $widget->removeField('viewBag[meta_description]');

                $widget->addFields([..........

@timvermaercke
Copy link

The fix provided works! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants