WordPress.org

Ready to get started?Download WordPress

Forums

Override page title outside of theme folder (3 posts)

  1. bridgemanusa
    Member
    Posted 11 months 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:

    http://wordpress.org/support/topic/adding-headerfooter-to-files-outside-wp?replies=7

    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!

    Eric

  2. Edward R. Jenkins
    Member
    Posted 7 months 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.

    http://www.edwardrjenkins.com/404-page-not-found-title-outside-wordpress/

  3. bridgemanusa
    Member
    Posted 7 months 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.

Reply

You must log in to post.

About this Topic