How to specify sitetitle on start page
-
I do have the problem, that on my start page the title is not just the title of the site. There is also the title of my last blog entry. How can I avoid that? On my start page, I would like to have only the site title, which is Hundeerziehung und Kommandos.
This is my webseit: https://der-tut-nichts.info/
-
A mis-setting in your SEO?
In my SEO, the home title is Hundeerziehung und Kommandos. The problem is, that customizr adds the title of the last blog entry.
p.s. You don’t need to include the statement:
@import url('../customizr/inc/css/green.css');
in your child theme’s style.css. Customizr loads this automatically.You only need the one statement:
@import url("../customizr/style.css");
Done! Thank you for this hint. Any idea about the title of the start page?
No, I couldn’t think of anything. It’s not standard Customizr, which is why I thought it might be buried somewhere in your SEO settings.
I use a child theme, but did not make big changes. Only a bit CSS.
Normally you have to specify, wheter you want a static site or articles on the start page (under settings > read). With customizr, none of these radio buttons are active. Maybe the problem comes from there?
I played around a few hours now and do not get any other result. I really need only the title of the site on the start page. Actually, when you want to bookmark my homepage, you get this as title:
Hundebefehle in anderer Sprache | Hundeerziehung und Kommandos
That is wrong, because this title has nothing to do with my start page. On my start page I give an overview. I am not talking about Hundebefehle in anderer Sprache.
Does anyone else have the same problem? When you bookmark your start page, what title does it get?
Try to go back to basics:
deactivate plugins
deactivate child theme and activate the parent
reactivate one by one to see which is the problemI activated the original theme and deactivated all plugins. That’s how it looks: https://der-tut-nichts.info. But the startpages title is still the title of the last article.
That shouldn’t be. Please, can anyone help? Please, please.
In class-header-header_main.php, the code that generates the <title> is in tc_head_display. So there would need to be a function added to CT functions.php to change this code:
<title><?php wp_title( '|' , true, 'right' ); ?></title>
However, if you read the Codex then this looks correct to me (a php novice)
So this filter:
add_filter('tc_head_display', 'rdc_head_display'); function rdc_head_display($output) { return preg_replace('\<title><?php wp_title( '|' , true, 'right' ); ?></title>\', 'NEW CODE HERE', $output); }
will work if I/you can work out the new code to replace. Hopefully, someone else will bale me out here!
@ypanesa: As per www.remarpro.com requirements, the theme uses
wp_title
to display the title. As explained in the codex, this displays:– For a single post: the title of the post
– For a date-based archive: the date (e.g., “2006”, “2006 – January”)
– For a category: the name of the category
– For a author page: the public name of the userThis is then filtered by the Customizr theme so that instead it displays the name of the site (the “Site Title” set in Settings > General) and it also adds a page number if you’re on, for example, the second page of something. In the specific case where you’re on the main blog page, it displays the name of the site followed by a separator “|” and then the tagline (also set in Settings > General).
WordPress SEO-type plugins of course then get to work and change it all over again.
I don’t know what is changing things in your case. It could be a plugin filtering the page title before Customizr gets to it (you would need to search your wp-content folder for files with
wp_title
in them), or a stray SEO setting you cannot find.But I’m pretty certain it’s not Customizr.
@rdellconsulting: I don’t think that would work.
tc_head_display
sets the initial<title>
text that is displayed in the window’s title bar (through a call towp_title
). But then it is filtered by the functiontc_wp_title
. There is no hook in there.I think that if I wanted to change the page title, I would probably start by writing my own
tc_wp_title
function (based on the theme’s, which is in class-fire-utils.php) and loading it before the theme’s; that is, with higher priority. Not sure if that would work, but that’s how I’d try ??tl;dr / Bottom line on this issue: I don’t know what’s causing it; I’m pretty sure it’s not the theme; SEO settings will probably fix it (and may have caused it); you can change it by rewriting the
tc_wp_title
function.Thank you for your explications. Because I deactivated all plugins and went also back to the original customizr theme (not a child theme), the problem must somewhere else than a plugin or SEO, which is also a plugin.
I could not find a soloution. That’s why I now show blog articles on the main page. In settings > reading I activated the radio button for showing the last entries. When I started from scratch with no setting changes in WP, none of the two radio buttons was activ. That is probably due to customizr settings for the frontpage.
Anyway, from the SEO point of view, the front page should now be OK. From the designers point of view… it is not what I wanted.
Thanks for giving more info Ypanesa.
I only have one more idea: is your home page a separate WP page called “home” or is it only defined in Customiz’it?
Sorry but I don’t understand your question.
Customizr creates a home page for you, with the menu, slider, three features and a footer. You then customize it with Customiz’it. You can, for example
- Leave it at that, by selecting
Don't show any posts or page
; - Select another specific WordPress page; or
- Add your blog posts to it by selecting
Your latest posts
In option 2, you create a specific WordPress page, call it what you want (“home”, for example), put text in it and make it your home page (or choose an existing page). You tell Customiz’it that this is your static front page and put your blog posts in another page. In this scenario, Customizr again creates a home page for you, with the menu, slider, three features, adds your page’s text, and a footer.
Using Yoast WordPress SEO, the options are different.
– If you use option 1 above in Customiz’it, Yoast gives you a “Title template” and a “Meta description template”
– If you use a static front page that you created yourself, Yoast WordPress SEO tells you to change the title inside the page itself.
– If you show your blog posts, then again Yoast gives you a “Title template” and a “Meta description template”My last remaining idea for fixing your problem was to see if having—or not having—a static “home” page that you created yourself would help you with your titles. Specifically, to make sure you had tried option 2 above.
Hope it’s clearer this time ??
- Leave it at that, by selecting
- The topic ‘How to specify sitetitle on start page’ is closed to new replies.