Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.ww.wp.xz.cn/Conditional_Tags

    • This reply was modified 8 years, 3 months ago by pvar.
    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 8 years, 3 months ago by pvar.
Viewing 2 replies - 1 through 2 (of 2 total)