Override page title outside of theme folder (3 posts)

  1. bridgemanusa
    Posted 2 years ago #

    Hi All:

    First off, thanks to WPChinae for this post which shows how to call the both the header and footer of a theme from the root of the server:


    We have a site where we HAVE to have some files outside of WP that live in a folder in the root of the server and using WPChina's method works almost perfectly, in a sense that WordPress has no concept of "page title" so any links from within wordpress back to the pages display:

    MySite : Page Not Found

    as the page title in the browser even though the page loads just fine. Is there any way to change the text of "Page Not Found" to blank or even possibly assign a proper page title some other way?

    Any help/guidance is greatly appreciated.

    Thanks for looking!


  2. Edward R. Jenkins
    Posted 2 years ago #

    I ran into a similar problem. The solution I came up with for it is to create a custom header for the page outside of WordPress. It seems simpler than creating a custom title filter for one-time use.


  3. bridgemanusa
    Posted 2 years ago #

    Thanks for the reply Edward. I ended up with a workaround that basically uses "brute force" embed to add the page title manually (which basically overrides what WP assigns).

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic