Support » Plugin: Genesis Title Toggle » Doesn’t work with Genesis 2.5.3, and Academy Pro 1.0.3

  • Resolved pvar

    (@pvar)


    Does not remove page titles.

    Neither the global theme setting nor the specific page setting works. The page title is never removed.

    I am using:
    WordPress 4.9.4
    Genesis Framework 2.5.3
    Academy Pro Theme 1.0.3

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

    (@billerickson)

    It’s likely that the Academy Pro theme has moved the page titles, so when this plugin tries to remove them it doesn’t work.

    I’ve created an issue report for this, and will try to resolve this with the next release of the plugin.

    Thread Starter pvar

    (@pvar)

    Thank you for your reply.

    I also found that the following function doesn’t work correctly with the Academy Pro theme:

    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );

    (Source: https://my.studiopress.com/documentation/snippets/entry-header-html5/remove-entry-title/)

    It only removes titles from posts, not from pages.

    I didn’t look at the source code for this plugin, but I assume it’s probably using the same function to remove the titles.

    • This reply was modified 4 years, 4 months ago by pvar.
    Thread Starter pvar

    (@pvar)

    I contacted the Studiopress support. This is the main part of their reply:

    The Academy Pro theme is different than other child themes, because it includes the following code in the child themes “functions.php” file, to reposition titles on regular pages ( excluding pages with blog page template and static front page ):

    add_action( 'genesis_meta', 'academy_move_page_titles' );
    /**
     * Moves page title above content wrap.
     *
     * @since 1.0.0
     */
    function academy_move_page_titles() {
    
            if ( is_page() && ! is_page_template( 'page_blog.php' ) && ! is_front_page() ) {
                    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
                    add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_post_title' );
            }
    
    }

    To remove titles from those pages, you can simply remove the following line from the above code block:

    add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_post_title' );

    Note: you can tweak the conditions used in the mentioned code block as needed, using WordPress’ conditional tags:
    https://codex.wordpress.org/Conditional_Tags

    • This reply was modified 4 years, 4 months ago by pvar.
    Plugin Author Bill Erickson

    (@billerickson)

    The latest version of Genesis Title Toggle (1.8.0), now has full support for every StudioPress theme, including Academy Pro.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Doesn’t work with Genesis 2.5.3, and Academy Pro 1.0.3’ is closed to new replies.