Wordpress overwriting title in customized theme - regex

I'm attempting to change the of the Lightword theme to show only the page title in the tag, and not the "Page Title | Blog Title" it normally does.
In the header template, I changed the title line to:
<title><?php wp_title(''); ?></title>
After refreshing the page on the server, it STILL showed up as "Page Title | Blog Title". I went on to delete the title entirely as a test, leaving only <title></title> - but it appears something overrode it within WP, and the same title format came out.
Finally, I added a space in the title tag like such (designed to break any regexps):
<title><?php wp_title(''); ?></ title>
And at long last, my title actually came out <title>Page Title</ title>. This behavior strikes me as extraordinarily odd, however - why does wordpress (or this theme) resist changing the title structure? Is there any less-hacky way to get around it?

Try this instead to show just the page title:
<?php the_title(); ?>
EDIT
Try this code to get just the page name in title:
<title><?php wp_title("",true); ?></title>

Related

Define site.title in a Jekyll template

My Problem
I am building a Jekyll static site using the jekyll-materialize-starter-template.
The home page contains an h1 title in the front center:
Which reads Your awesome title, and defined in _layouts/home.html:
<h1 class="header center orange-text">{{ site.title }}</h1>
How can I set the value of site.title?
What have I tried
Searched for site.title and title
Read the docs about variables
Hard-code my title. Works, but it feels like the wrong thing to do - variables should be properly set.
My question
How can I set the site.title variable used by a Jekyll template?
Edit _config.yml and locate the title key:
title: Starter Template
or
title: Your awesome title
and change that value.
If you are developing with a local server, restart the jekyll server to reflect changes to config.

Frozen Title Attribute in Opengraph Debugger

I'm receiving an error in the object debugger that states:
Attempted Frozen Title Change It appears that you are trying to change
the property og:title from Home to [the title] If so, you are not allowed to
for this object because too many actions have been published against
it.
It's scraping the tag:
<meta property="og:title" content="[the title]" />
The [the title] value is what I want the title to appear as - however, the title is simply populating as 'Home' in the debugger.
So two questions:
1) How can I 'unfreeze' this property/is this possible?
2) How can I prevent this happening in the future?
Thank you in advance.

Sitemap in Django - Titles don't show in google search

I have followed the steps in the documentation and it seems to be working as expected.
I have got an automated sitemap generated: https://duelify.com/sitemap.xml
Yet somehow there is no way to specify the title.
If I search in google for my site: site:duelify.com and scroll down I see the main site's title for every link:
Duelify | Duel Your Friends & Foes
https://duelify.com/topics/discuss/2/vegetarian-diet/
That doesn't look right.
If I try this with Stackoverflow:
site:stackoverflow.com django
Each entry has a proper title.
How could I achieve that? It is not clear from the given site map references.
The title displayed in Google search results has nothing to do with the sitemap.
Use meta (http://www.w3schools.com/tags/tag_meta.asp) and title tags:
<head>
<meta name="description" content="Your page description">
<title>Your page title</title>
</head>
And don't forget to set proper HTML heading tags.

Like Button (SEND) Shows the og:metadata info and not the href content (sometimes)

The site is: http://grantdeb.com
I want to be able to dynamically add meta properties to the Recommend(s) and Send(s). Right now, it's using the meta og: properties and that is totally NOT what I want.
The LIKE count is also showing incorrectly for each like even though I've pushed the data-href to it like:
<div class="fb-like" data-href="http://grantdeb.com/wedding-photographers-hampton-roads/[dynamic id]/Wedding-Photography" data-send="false" data-width="450" data-show-faces="false" data-action="recommend" ></div>
BUT - for some reason, once in a while the LIKE / SEND does NOT use the meta properties and correctly shows the correct count AND the correct picture / title I want for the Send.
If you go to our site at http://grantdeb.com look specifically at the "Jasmine Plantation Wedding Photography" (like the 5th post down) you'll see the number of Recommendations is correct, and if you hit the "Send" button at right bottom, it actually uses the correct title and picture we want.
That post is the way we want the Recommend / Send to display.
Why is that happening to some of them and to others it shows our og: metadata?
I can’t exactly see on your site what the problem is (or match your problem description with your site’s content) – but looking at the URL for the post you mentioned in Facebook debug tool, it seems that you have
<meta property="og:url" content="http://grantdeb.com" />
set for all of your detail pages – so that is what Facebook considers the “real” URL for all of your actual posts marked with this tag.
(Can’t tell if this is what you explicitly wanted or not, because your problem description is kinda fuzzy to me.)

Componentheading and contentpagetitle joomla

If have a problem with the componentheading and the contentpagetitle.
I got a sectionblog for my articles. The title of the page is a componentheading. The title of the articles (intro) is a contentpagetitle.
If I click on the title of a article, I can see the entire article. The title of the page is now the title of the article (contentpagetitle), and that is good.
The problem is, this title now needs the same layout as the componentheading. But if I do this, the titles of the articles also get this layout in the sectionblog
How can I make sure I got 2 different styles, or the contentpagetitle changes in a componentheading while looking at the full article?
I you don't uderstand what I'm saying just go to http://csm.infowebpreview.be/nl/realisaties, and click on the first title 'Realisatie'. The full article opens and the title 'Realisatie' should be underlined now.
Or this is also correct: if an article is the only article on a page the title should get another layout
Thanks
You can do this by being more specific with the CSS selector -
This one will apply to all of the titles, make this one the one for the main heading with the underline -
h2.contentheadingrealisaties{border-bottom: 1px solid #333}
Then use this to single out the article titles in a listing:
.leadingrealisaties h2.contentheadingrealisaties{border:0;}
Obviously you will need to add in the rest of the CSS, but this will get you started.