Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
where is option to change Front Page Meta Tags and Decription ?
I can change meta in every content of my site, but i dont know whow to add meta in the first page..
Thanks
Comment | File | Size | Author |
---|---|---|---|
#63 | Front-Page-Metadescription.png | 153.34 KB | omzo |
#16 | 2012-02-29_10-43-43.png | 92.18 KB | Danny Englander |
#19 | metatag-front_page_meta_description-1259462-19.patch | 607 bytes | skruf |
#9 | metatag.jpg | 70.42 KB | minus |
Comments
Comment #1
SteX CreditAttribution: SteX commentedAnyone?
Comment #2
dolilmao CreditAttribution: dolilmao commentedThe admin page is not available just yet...
Comment #3
Dave ReidAdmin UIs are now available in unstable 3.
Comment #4
khan2ims CreditAttribution: khan2ims commentedI am not sure how to use this module. And how to set front page meta tags. There is no readme file in latest version.
Can you please write a quick writeup?
Comment #5
Dave Reid1. If you had a previous version of the module installed, disable, uninstall it, remove the old module directory, copy in the new unstable3 release and enable both the Meta tag and Meta tag UI modules.
2. Go to admin/config/search/metatags/config/global:frontpage/edit
3. Edit front page tags with the desired text and available tokens and press 'Save'.
4. Done!
Comment #6
khan2ims CreditAttribution: khan2ims commentedHi,
Yes, I tried that. But the meta tags don't show on the home page.
Comment #7
minus CreditAttribution: minus commentedsame goes for me, fresh install, using 7.x-1.0-unstable3 (Meta tag API, UI and Open Graph meta tags )
added configuration to front-page and content type
meta data shown:
maybe I have forgotten something?
Comment #8
Dave ReidPlease screenshot your metatag config for frontpage and also confirm what is the actual front page path on admin/config/system/site-information.
Comment #9
minus CreditAttribution: minus commentedThank you for such a quick respons!
I use page--front.tpl.php
On admin/config/system/site-information/ "Default front page" is blank
Comment #10
joydivfac10 CreditAttribution: joydivfac10 commentedThanks for the update, Dave.
Previously I had updated, but was not seeing metatags on my frontpage or blog container pages.
(Individual nodes were showing up fine.)
I went back and uninstalled previous module, then deleted existing metatags directory on server.
After reinstalling, I configured some automated metatags in the config UI.
Our new blog (www.shottotheheart.com) now has metatags on every page, blog, node, etc.
Keep up the great work, and thank you for all your time and effort.
Cheers!
Comment #11
Dave Reid@minus: Try setting your default front page to 'node'? If that field is blank, then that would mean the drupal_is_front_page() function fails which would prevent the front page meta tags from being displayed.
Comment #12
SteX CreditAttribution: SteX commentedThanks..
Comment #13
mgiffordThis seems to work for me:
admin/config/search/metatags/config/global:frontpage/edit
But how would I know to go here (other than by reading through this post)?
Also, is there somewhere that I can find what precedes what? Does the
admin/config/search/metatags/config/global
override or supplement the front or individual node pages?
Comment #14
Yuri CreditAttribution: Yuri commentedInstalled the latest dev version, and the front page title tag is not showing up at all. Front page settings show title: [site:name]
Also, i cant see where set page title for a views page. Hm..not ready for production, that's for sure, but does look very promising.
Oh, by the way: I don't use 'node' as front page, but a custom page 'home'
Comment #15
agoradesign CreditAttribution: agoradesign commentedHi,
I have a similar (the same?) problem: I don't use the generic /node front page as front page. Instead the front page is targeting a specific node (node/2 -> /home). I do have meta tags on my front page, but incorrect ones.
I've set [site:url] for OG url and canonical url for the front page and [current-page:url] for the node pages. The behaviour I expected, is, that the front page settings have precedence over the node settings, but as it seems, it is exactly the other way round. The node settings seem to override the front page settings.
As a consequence I now get "www.mydomain.com/home" as value for the two meta tags instead of "www.mydomain.com", which is a big problem because the Facebook linter detects a circular redirection (-> calls '/home', gets redirected to '/',...)
Dave mentioned the drupal_is_front_page() function. I debugged into the "if (drupal_is_front_page()) {" in line 663 of metatag.module and had a look into the results of the metatag_metatags_view('global:frontpage', array()) call. At this point everything's ok. The value of the url is correctly set to the site url. So it must be overwritten anywhere at a later stage by the node settings.
Is this the intented behaviour or is it a bug? If it's intented, it would be really, really nice having the possibility to change the priorities.
Thanks, Andi
Update
I solved my problem with a little hack by adding the following code after line 337 (-> $instance = "{$entity_type}:{$bundle}"; )
In other words, I force to override the instance type to "global:frontpage"
Comment #16
Danny EnglanderI am also having a similar problem with 7.x-1.0-alpha4 from December 22. I see the page title but no keywords or description within my home page. (Screen capture attached). Metatags work fine within nodes though.
Here is what I have tried so far:
-- this did not work, I save the Site information page and "node" is not saved in that field.
page--front.tpl.php
Comment #17
agoradesign CreditAttribution: agoradesign commentedHi, I don't want to disappoint you, but I don't believe that search engines will incorporate your jQuery-inserted meta tags.
Comment #18
claes nilsson CreditAttribution: claes nilsson commentedI have the same issue as #16 and am using bartik template.
Comment #19
skruf CreditAttribution: skruf commentedHere is a patch for #15
Comment #20
essenceofginger CreditAttribution: essenceofginger commentedJust to add some weight to this issue. We can't change meta tags on homepage either, using page--front.tpl.php.
Comment #21
a_drupalist CreditAttribution: a_drupalist commented#11 did it for me!
I am using D7 and page--front.tpl.php and had to do a two step process:
As Dave said above in #11, cheers dave!
Funny thing is that when I go to configuration/site information now the word 'node' doesnt appear in the Default Front Page but the meta tags show up!
anyway, thanx again
Comment #22
remkovdz CreditAttribution: remkovdz commentedSame problem: no Meta Description showing up here at the front page... Will this be fixed soon?
Comment #23
TCPIP6 CreditAttribution: TCPIP6 commentedIt worked before but after the update no Meta Description. hmph!
I'd really appreciate a fix for my site… It’s sliding down the rankings!
http://highperformance.net.au
Comment #24
remkovdz CreditAttribution: remkovdz commentedI would like this module to replace my other (several) modules for Meta Description, Open Graph tags etc.
However, when I seen the amount of issues concerning basic stuff, I'm not so sure..
Comment #25
agoradesign CreditAttribution: agoradesign commented@TCPIP6:
if you use alpha5, you're for sure also concerned by this very small bug here: http://drupal.org/node/1506676
@remkovdz:
it's not that bad. I'd give it a try in your next project or a test env. You don't lose much time if you decide to exchange it, if it doesn't suit you. Despite of these small and easy-to-fix issues, it really works good. Only disadvantage is the lacking Views support so far. But there's already a sandbox project to support Views also...
Comment #26
remkovdz CreditAttribution: remkovdz commented@agoradesign, I might.. Does anyone have any update on the front page bug?
Comment #27
FrancescoUK CreditAttribution: FrancescoUK commentedSame issue here, no meta in the front page and I cannot neither set node as home page.
However if I try Page Title I can set the correct page title for the front page.
Comment #28
FrancescoUK CreditAttribution: FrancescoUK commentedAs I have page--front.tpl.php, I've added
render($page['content'])
as first line and I now can see the meta tags rendered.However the page title is still not right, but I manually added a suffix in html.tpl.php. Not ideal but that will do, unless I use Page Title.That was due to the fact that override parent groups are not used by child, so I needed to override the child too.
Remember to do Clear All Cache in Home » Administration » Configuration » Development, otherwise you might not see anything.
Comment #29
Danny EnglanderI tried the patch in #19 against the latest alpha (metatag 7.x-1.0-alpha5) and it did not work. Note that I had previously tried some JQuery but as
@agoradesign
pointed out the search engine does not pick that up. However, this does work in html.tpl.php in my theme folder:... but it seems pretty hackish and I also have a multilingual site but at this point it would be nice to at least get something working. I am not sure if this is a good temporary solution. Also of note, I cannot see the rendered metatag description with Chrome web inspector, only if I view source whereas I can see interior page metatag descriptions with simply using web inspector.
Comment #30
Shaltay CreditAttribution: Shaltay commentedSame problem here.
Any suggestion here is useles for me.
Comment #31
beauz CreditAttribution: beauz commentedSame problem. Description not showing. Using alpha5 / Omega theme.
Comment #32
Danny EnglanderI am wondering if the status of this issue should be changed? I think there's enough info now to change it to "needs work" perhaps?
Comment #33
remkovdz CreditAttribution: remkovdz commentedI agree, still can't move forward with this one.
Which made me think: what if I need to uninstall this module later, to install the new version: would I lose all my data like Meta Descriptions?
Comment #34
markosaurus CreditAttribution: markosaurus commentedI've already tried this and this works fine for the forntpage when you are logged in. I then get to see the content I would expect for the meta data which is great.
When I log out and become an anonymouse user again, it vanishes.
I did some digging and found that because I had a views content block on the frontpage, I neededd to enable the standard "content" block for the front page in order for this to render. Probably specific to my setup as I have a complicated views setup running which precludes me from showing ths tandrd "content" block everywhere, but thought I'd share in case anyone else ran into this.
Comment #35
j_ten_man CreditAttribution: j_ten_man commentedSame issue here. Nothing new to add other than 19 doesn't fix the issue for me and I debugged several levels. Things are there in the page array to render but I can't seem to find anything that was causing the description to not show up.
Comment #36
remkovdz CreditAttribution: remkovdz commentedAre there any good alternatives to this module? It's taking to long to even get any feedback so I have to move on...
Comment #37
chris_h CreditAttribution: chris_h commentedConfirming #28 and #34 - the homepage meta tags don't appear if render($page['content']) is not in the homepage .tpl or if the main content block is set to not be visible. As not rendering the main content block is quite a common use case for the home page, is there a simple workaround to force meta tags to display?
Comment #38
j_ten_man CreditAttribution: j_ten_man commentedThanks to #37 I realized that I didn't have it in the front page either. Fixed it for me as well.
Comment #39
markosaurus CreditAttribution: markosaurus commented@chris_h yeah, I forced mine through my template php file by checking if it was the homepage or not and assigning it manually. It was a hacky fix, but since it's done through template.php per theme and not the core, at least it will persist when you enxt update :)
Comment #40
lordbucanero CreditAttribution: lordbucanero commented#28 worked for me
Thanks
Comment #41
red_eye CreditAttribution: red_eye commentedHate to add a me too with no other info but I am up to date on everything and cannot get meta to show on front page, the node trick in #11 doesnt work for me.
Any other thoughts or suggestions?
Comment #42
bzsim CreditAttribution: bzsim commentedWas having the same problem as well with page--front.tpl.php. Once I added the code from #28, the meta description tag showed up!
Setting the default home page to 'node' as suggested above, did not work for me. It didn't even stick in the settings.
I also noticed that leaving the default node: summary for the Nodes was not working. I had to override and type in my own description for the meta description tag to show up.
Comment #43
red_eye CreditAttribution: red_eye commentedTried the steps in #28 got content to show on my page at the very top but still no valid keyword or description meta tags.
Comment #44
chichio9000 CreditAttribution: chichio9000 commentedI success with #39
Thanks markosaurus
Comment #45
middlenewman CreditAttribution: middlenewman commented#28 worked for me also.
Comment #46
DamienMcKennaRather than hacking away trying to get this working, and ultimately building work-arounds for an existing work-around in Metatag, the output logic has been re-written thanks to jenlampton and I'm hoping it works better now. Please try the latest -dev release and please let me know if it works as-is, and re-open the issue if it's still not working.
That said, please be aware that right now it doesn't let you override tags for taxonomy term pages due to a core bug, please keep an eye on #1700160: Support taxonomy term pages until taxonomy supports hook_entity_view() for further updates.
Comment #47
DamienMcKennaRelated and honestly a higher priority: #1708718: Ensure Meta tags work OOTB with Drupal core
I'm going to fix that and then see how to resolve this issue.
Comment #48
mooey CreditAttribution: mooey commentedI've updated to the dev version but I still can't get it to put metatags on my front page.
Comment #49
DamienMcKenna@mooey: Please describe how your homepage is built - default 'node' page, custom node, custom Panels page, something else, etc.
Comment #50
mooey CreditAttribution: mooey commentedHi
The front page is built using Views blocks set to show only on <front>. I have a custom page.tpl.php with this:
I've tried changing this to
but this does nothing. I've tried setting the Default front page value to node, but it doesn't take (the field gets reverted to blank).
Mooey
Comment #51
mooey CreditAttribution: mooey commentedI've got it! I've created another node (hompage), set the meta tags there, and then set that as the Default front page value. I tried this before changing to dev, and it didn't work, but it does now, as long as I also have render($page['content']) in my page.tpl.php.
Comment #52
mlusher CreditAttribution: mlusher commentedSame issue. Not showing on front page. I have set a front page node and using a page--front.tpl.php.
Seems this should have been fixed long ago.
Any work arounds?
Comment #53
nyleve101 CreditAttribution: nyleve101 commentedI'm also experiencing this issue, any suggested workarounds?
Comment #54
couturier CreditAttribution: couturier commented@nyleve101 I am assuming you are using the most current 7.x-1.0-alpha8 release? All the comments preceding yours were for a much earlier version. Have you double-checked to make sure your Metatag module settings are correct for the front page, and have you cleared all the caches for both your site and your browser?
Also note this issue describing how many people have a front page that isn't a node, complicating Metatag support: http://drupal.org/node/1146018#comment-4446604
There is a discussion to use Context to help assign metatags to specific URLs here: http://drupal.org/node/1151926
Comment #55
Slown CreditAttribution: Slown commented#28 worked for me also. THX!
Comment #56
extrememanoj CreditAttribution: extrememanoj commented@FrancescoUK Thanx a lot... ur solution #28 helped me to get front page title tag. I was getting default title for home page also. I'm using a node- page template for home page. Now its fine.. Thanx again :)
Comment #57
DamienMcKennaThis should have been resolved by #1784896: Overriding meta tags fall back to parent default tag value. If you are still having the problem then it is a theming issue, please get involved with / follow #1800658: Front page settings don't work on some themes (e.g. TopHit).
Comment #58
DamienMcKennaComment #59
mustafa.ata CreditAttribution: mustafa.ata commentedSolution here:
http://drupal.org/node/1386320#comment-7087834
Comment #60
markosaurus CreditAttribution: markosaurus commentedYou're welcome!
Comment #61
quirogapj CreditAttribution: quirogapj commented#28 wokrs great! I am using Chique theme and had to add that piece of code in sites/all/themes/chique/page.tpl.php
Thanks,
Pablo.
Comment #62
berenddeboer CreditAttribution: berenddeboer commentedFor those using Omega (and not DS) and nothing working, here's my fix: in your templates/preprocess-html.inc.tpl put this:
You don't need to do anything with $metatag in your html.tpl.php, the process of rendering it here sets the meta tags already.
Comment #63
omzo CreditAttribution: omzo commentedI had the same problem but I resolved it by editing this following file: sites/all/themes/mytheme_name/template/page-front.tpl.php
And I added :<? print render($page['content']); ?>
All is going right now.
Comment #64
javedakhter CreditAttribution: javedakhter commentedUse the Meta Description & Meta Keywords for Front/Home Page if it doesn't come from Drupal NODE section:
For Drupal Version 7.52
Open file "page.tpl.php" and use this code in head section.
if (drupal_is_front_page()) {
}
It is tested and perfectly works at our end.
Comment #65
DamienMcKenna