How to move the Archive Title

Community Forums Forums General Discussion How to move the Archive Title

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  GabeVelez 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23083

    GabeVelez
    Participant
    Post count: 2

    Working on this site: <a href=”http://dev4.designoncue.com”>dev4.designoncue.com</a>

    Need to move ARCHIVE-TITLE to genesis_before_content_sidebar_wrap on all archive pages, but can’t find the EXACT hook for this

    for Archive page see here: <a href=”http://dev4.designoncue.com/category/programs/”>dev4.designoncue.com/category/programs/</a>

    My goal is to make the category pages archive title uniform with the other pages entry titles.

    Currently am using this in the functions.php file to move the entry-title up on the other pages:

    // Moving Page & Post Title
    add_action(‘get_header’,’child_remove_page_titles’);
    function child_remove_page_titles() {
    if ( is_singular() ) {
    remove_action(‘genesis_post_title’, ‘genesis_do_post_title’ );
    add_action(‘genesis_before_content’, ‘genesis_do_post_title’ );
    }
    }

    Please advise!

     

    Gabe

    #23149

    David Chu
    Participant
    Post count: 1371

    Hi,
    Wow, that link went crazy, but I found your site anyway. :-)

    If I’m following you, I don’t think is_singular is going to help you in that context. Try is_archive and/or is_category for those. You may end up needing them all. I’ve had some pretty long lists of those in IF statements at times.

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #23237

    GabeVelez
    Participant
    Post count: 2

    Thanks Dave, but I’m looking specifically for the function for the archive title so I can move it

    Once I have that I’ll be golden. Any ideas?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.