WordPress.org

Ready to get started?Download WordPress

Forums

Hide Title
Plugin wraps nav item instead of actual page title, even with tweak (4 posts)

  1. kstarcher
    Member
    Posted 1 year ago #

    Hey there -

    I installed the plugin and followed your instructions on putting the title selector in the functions.php file (in my case it's .page-banner-heading).

    However, when I set the page to hide the title, it puts the dojodigital_toggle_title wrapper on the instance of the title text as it appears in the navigation, rather than the actual title using .page-banner-heading further down the page. After looking at the code, I suppose this is because it IS technically after the header, but the nav appears before the title on the page, so the plugin must just see the title text in the navigation and says "found it! okay done!"

    Any ideas on how to fix this? I'm willing to make PHP changes, just don't know what to do about it exactly.

    Thanks!

    k*

    http://wordpress.org/extend/plugins/hide-title/

  2. Dojo Digital
    Member
    Plugin Author

    Posted 1 year ago #

    Hi kstarcher,

    Because the wp_title hook doesn't have any way to determine where the title is being output it ends up wrapping it around all instances of the title after the wp_head has run, therefore it SHOULD also be found wrapped around the page title.

    If you could send us a link to the page you're having trouble with we may be able to see why that isn't happening in your case.

    Thanks,
    -Randy

  3. kstarcher
    Member
    Posted 1 year ago #

    Sure thing. Is there a way I can email it to you or something? It's for a client's site under development and I don't feel I should post it publicly yet (but happy to post the results after for anyone else running into the issue)...

  4. Dojo Digital
    Member
    Plugin Author

    Posted 1 year ago #

    No problem, you can email us at ninjas@dojodigital.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.