• Resolved csmaderer

    (@csmaderer)


    On both the Lifestyle and Tapestry theme title toggle seems to have no effect. Regardless of how I set the plugin the title remains on my pages and subpages (not the home page but all other static pages). When I change to a theme that does not support post types like Focus the title toggle works fine exactly as advertised. I’m assuming that the post awhile back was about a similar issue, but I’m unsure if adding the code you suggested is the fix, or if there is something further that should be done since your answer seemed to imply that it should work as is “out of the box”.

    Thanks
    Scott

    https://www.ads-software.com/extend/plugins/genesis-title-toggle/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    I figured out the issue. In those themes with post formats, StudioPress is doing something similar to me but later down the page. It’s overriding the Genesis Title toggle plugin.

    At the very top of the page ( on the ‘genesis_before’ hook) I’m running my code to see if a title should be removed.

    Right before a post is loaded (on the ‘genesis_before_post’ hook), Tapestry removes all post titles, then checks to see if the current post is in a post format, and if it isn’t it adds back the post titles. This adding back is what overrides our original selection.

    I have a fix which works in Tapestry (and I assume all the other ones too), but I want to do more testing before I add this to the plugin.

    If you’d like to use it on your copy, here’s the two lines of code to add at the top (inside the init() function): https://gist.github.com/1391552

    Plugin Author Bill Erickson

    (@billerickson)

    Actually, add this to your theme’s functions.php file: https://gist.github.com/1391569

    This way you don’t have to modify the plugin.

    Thread Starter csmaderer

    (@csmaderer)

    Thanks I’ll give it a shot….Have a great weekend, and Thanksgiving if you celebrate it.

    Scott

    Thread Starter csmaderer

    (@csmaderer)

    Just as an FYI I added the second set of code to the functions.php and it worked like a charm in the lifestyle theme.
    Thanks so much. (when or if you add a permanent fix to the plugin, will I need to remove that code from functions.php? Obviously if the theme files are ever updated I’ll have to add the code back as well so I saved it.)
    Scott

    Plugin Author Bill Erickson

    (@billerickson)

    If/when this is added to the plugin, having that code in your theme won’t cause any issues. It will simply be telling WordPress to remove the title twice (the second time nothing will happen). But it won’t be necessary.

    I probably won’t include this in the plugin. If the plugin in its current form doesn’t work, it means that your theme is also doing some title removal. While the code I gave you will work for the two studiopress themes I’ve tested it on, there’s no guarantee it will work for every theme that changes the titles (it depends on them using the exact same hook as lifestyle).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Genesis Title Toggle] Title Toggle – Title remains’ is closed to new replies.