Meta titles when blog is not your home page
-
- Ssr. Bludit
- Posts: 26
- Joined: Mon Sep 30, 2019 12:43 pm
Hi there!
I'm still exploring Bludit, and have found solutions for the most important things I want to do, except one thing.
I have set my home page to "home" with a custom template that shows image links (and would love to have the latest posts show up but have no idea how) and some info.
Then I have another page "blog" with the blog post list template.
So the home page is mydomain.com and the blog page is mydomain.com/blog.
BUT when I'm on the home/index page the meta title shows "Page title - Site title"
And when I'm on the blog page which is not the index page, it shows "Site title - Site description/slogan".
Ideally, if you set a certain page as your index page, that would adopt the homepage meta tag "Site title - Site description" that I've set in the SEO settings?
Am I missing something?
I'm using v4 Beta 3 but the same problem occurs in v3.
I'm still exploring Bludit, and have found solutions for the most important things I want to do, except one thing.
I have set my home page to "home" with a custom template that shows image links (and would love to have the latest posts show up but have no idea how) and some info.
Then I have another page "blog" with the blog post list template.
So the home page is mydomain.com and the blog page is mydomain.com/blog.
BUT when I'm on the home/index page the meta title shows "Page title - Site title"
And when I'm on the blog page which is not the index page, it shows "Site title - Site description/slogan".
Ideally, if you set a certain page as your index page, that would adopt the homepage meta tag "Site title - Site description" that I've set in the SEO settings?
Am I missing something?
I'm using v4 Beta 3 but the same problem occurs in v3.
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
Can you please PM me your theme.
At the moment I would not recommend to use Bludit 4. It's still under development.
At the moment I would not recommend to use Bludit 4. It's still under development.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
-
- Ssr. Bludit
- Posts: 26
- Joined: Mon Sep 30, 2019 12:43 pm
Thanks, but the problem is the same in every theme.
I'm fully aware that v4 is in development - I only use it locally to test it and see what I can do with it, and don't plan to publish anything online until the final version is ready. v3 has the same meta title issue, by the way.
I'm fully aware that v4 is in development - I only use it locally to test it and see what I can do with it, and don't plan to publish anything online until the final version is ready. v3 has the same meta title issue, by the way.
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
What is the difference between the custom template and home.php?susannemcom wrote: ↑Thu Jan 20, 2022 10:46 am I have set my home page to "home" with a custom template that shows image links (and would love to have the latest posts show up but have no idea how) and some info.
Then I have another page "blog" with the blog post list template.
So the home page is mydomain.com and the blog page is mydomain.com/blog.
Or you can PM me the two templates.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
-
- Ssr. Bludit
- Posts: 26
- Joined: Mon Sep 30, 2019 12:43 pm
The only difference is in the content area - the custom shows some text and then a grid of image links, while the home template shows the blog posts.
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
I think I have misunderstood your question.
Are you talking abou the meta tags, and not what's displayed on the pages?
Are you talking abou the meta tags, and not what's displayed on the pages?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
-
- Ssr. Bludit
- Posts: 26
- Joined: Mon Sep 30, 2019 12:43 pm
Sorry that I disappeared from the discussion for a while.
Exactly, the meta tags! What is displayed as title on the browser tab (NOT on the actual page) and in search results.
Here's my dev site on MAMP, my SEO settings are as follows:
This is the front page, a static page with a custom template, showing Page title » Site title as meta title. I'd think this would change to Site title » Description if that's what I've set in the SEO settings for the home page.
This is the blog page, should be Blog » Site title as I see it.
This example is in Bludit 3, the same problem occurs in Bludit 4 (beta 3). If this can be fixed, I'd love to use Bludit for this blog.
Is this something I can fix within the theme?
Exactly, the meta tags! What is displayed as title on the browser tab (NOT on the actual page) and in search results.
Here's my dev site on MAMP, my SEO settings are as follows:
This is the front page, a static page with a custom template, showing Page title » Site title as meta title. I'd think this would change to Site title » Description if that's what I've set in the SEO settings for the home page.
This is the blog page, should be Blog » Site title as I see it.
This example is in Bludit 3, the same problem occurs in Bludit 4 (beta 3). If this can be fixed, I'd love to use Bludit for this blog.
Is this something I can fix within the theme?
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
By default the following is used:
But you can use the following in the header section of your theme:
- If the homepage contains posts it uses the settings of "Homepage".
- If the homepage is a page it uses the settings of "Pages".
But you can use the following in the header section of your theme:
Code: Select all
<?php
if ($_SERVER['REQUEST_URI'] == '/') {
echo '<title>'.$site->title().' | '.$site->description().'</title>';
echo '<meta name="description" content="'.$site->description().'">';
} else {
echo Theme::metaTags('title');
echo Theme::metaTags('description');
}
?>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets