Questions tagged [page-title]
263 questions
183
votes
19 answers
How can I get the current page name in WordPress?
What PHP code can be used to retrieve the current page name in a WordPress theme?
All the solutions I have seen so far:
the_title()
get_page()->post_name
get_post()
etc.
But these don't work for a page that contains post entries. They will all…

Bernard
- 16,149
- 12
- 63
- 66
90
votes
12 answers
Is there a way to modify the page title with React-Router v4+?
I'm looking for a way to modify the page title when React-Router v4+ changes locations. I used to listen for a location change action in Redux and check that route against a metaData object.
When using React-Router v4+, there's no fixed routes list.…

Kevin Ghadyani
- 6,829
- 6
- 44
- 62
43
votes
10 answers
Get title of website via link
Notice how Google News has sources on the bottom of each article excerpt.
The Guardian - ABC News - Reuters -
Bloomberg
I'm trying to imitate that.
For example, upon submitting the URL…

Noob
- 541
- 1
- 8
- 12
28
votes
10 answers
Setting Page title doesn't work
I've got a strange problem that setting the Title property of my ASP.NET page does not have any effect, in code level. It doesn't throw an exception either. My class is a derived class of Page class but I am not overriding anything about title.
In…

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389
24
votes
4 answers
Change Title With Javascript
How can I modify the existing title to the document with Jquery as mouseover title change like that on facebook title link.

ukung
- 411
- 1
- 5
- 13
22
votes
3 answers
seaborn FacetGrid: How to leave proper space on top for suptitle
Could someone show me how to leave extra space on top of a FacetGrid? I try to put a super title to the top of a FacetGrid plot but end up with the super-title overlapping with the subplot titles due to very limited margin on top in the default…

user3287545
- 1,911
- 5
- 20
- 19
21
votes
6 answers
How to get page title in wordpress
Well, I have tried
But the code is not working. I am using wordpress 4.1. This should work but it isn't. Has wordpress updated the functions?

HalfWebDev
- 7,022
- 12
- 65
- 103
16
votes
5 answers
Backbone and document.title
I'm creating a single page application with backbone.js and would like to know the best way to handle changing the title. I was thinking of having a 'title' option in the view and have the router (somehow) get set the document.title. Has anyone…

Xerri
- 4,916
- 6
- 45
- 54
11
votes
6 answers
how to change title of aspx page dynamically on page load
I had set of ASPX pages in which each page had different titles, but I want to put default title for pages which don't have a title. The default title must be configurable.

Randhi Rupesh
- 14,650
- 9
- 27
- 46
9
votes
1 answer
Website title is wrong when sharing link on facebook, or liking website
Ever since adding the code for facebook like buttons and the meta tags, my website now has a problem when being shared on facebook. If you put the link "http://podawful.com" into facebook it comes up with the title being "Derp" instead of "Pod…

Jesse P-S
- 91
- 1
- 1
- 2
9
votes
2 answers
Python selenium get page title
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.firefox.options import…

αԋɱҽԃ αмєяιcαη
- 11,825
- 3
- 17
- 50
8
votes
5 answers
UpdatePanel seems to re-encode characters in the page title?
I have pages with special characters in the title for proper typography, for example it says Exchange ‘07 Groups" with a proper apostrophe, not a single quote. The HTML entity for the apostrophe is ‘
So, I've found that if I set the page…

Chris Barr
- 29,851
- 23
- 95
- 135
6
votes
0 answers
Set Page Title for a PDF inside the Action
I have an action that displays a pdf
public ActionResult MyPdf()
{
var response = pdfService.MyPdf(new PdfRequest() { SiteId = siteSession.ActiveSiteId });
return File(response.Pdf, "application/pdf");
}
The service opens a PDF, fills out…

Josh
- 16,286
- 25
- 113
- 158
4
votes
1 answer
I'd like my page titles to automatically scale to fill the available space (horizontally)
I'm creating a blog (via tumblr) and I'd like my page titles to automatically scale to fill the available space horizontally, and perhaps to push the content down a little at the same time.
(by scale, I mean the changing the font size, and perhaps…

Rhys Mills
- 43
- 3
4
votes
4 answers
Dynamic route data in angular
I'd like to know if it's possible to dynamically change the current route's data (using angular 6)
I've got the following route config
{
path: 'collections', component: CollectionListComponent, data: {title: "List of collections"},
…

David
- 33,444
- 11
- 80
- 118