Reply To: Dynamic Page Title

Home Forums Support Dynamic Page Title Reply To: Dynamic Page Title

#227095
Tom
Lead Developer
Lead Developer

You need to make sure this option is return “on” as you’re asking it to:

ot_get_option( 'enable_custom_titles' ) === 'on'

You can test it like this:

add_action( 'generate_after_header','test_my_option' );
function test_my_option()
{
    if ( ! function_exists( 'ot_get_option' ) )
        return;

    if ( ot_get_option( 'enable_custom_titles' ) === 'on' ) {
        echo 'Im working!';
    }
}

If it’s working, that text should appear below your header.

If it’s not working, you’ll need to tweak the conditional and use the documentation provided by the plugin that created the function (ot_get_option).

Hope this helps 🙂