How to override the default title (entry-title) of a page?

  • Author
    Posts
  • #128593

    It defaults to whatever is in the “add title” space in WordPress. How can I change that? In the add title space, I have, “Employer Support<br><br><i>Many of our services are designed for use by employers and their responsible fiduciaries.</i>” but I only want “Employer Support” to show on the page.

    Website: cofianalytics.com

    #129009
    Zed
    Cryout Creations mastermind

    Hi,

    The theme uses core WordPress function calls to retrieve the appropriate (page/post/section) title. You can make use of the available the_title filter to hook your own code, check for the section that’s being currently processed and override the text returned accordingly.

    Is there a specific reason you want to use a separate title in the dashboard from what’s displayed publicly on the site?


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to override the default title (entry-title) of a page?’ is closed to new replies.