Version 2 Page Title

Community Forums Forums Design Tips and Tricks Version 2 Page Title

This topic is: not resolved

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  claretnblue 1 year ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #56268

    claretnblue
    Participant
    Post count: 3

    Hi,

    I just started working with v2 and the sample theme.

    I want to remove the page titles but keep post titles and having used several snippets for the functions file that are online I cannot find one that works.

    Anyone help with this one?

    Many Thanks

    #56568

    David Chu
    Participant
    Post count: 1355

    Hi,
    I have one client that likes to pull the title off Home, so I use a bit of code like that all the time. I adapted it to pages:

    Genesis 2:
    [php]
    add_action( ‘get_header’, ‘dc_remove_page_titles’ );
    function dc_remove_page_titles() {
    if ( is_page() )
    remove_action( ‘genesis_entry_header’, ‘genesis_do_post_title’ );
    }
    [/php]

    Genesis 1.9:
    [php]
    add_action( ‘get_header’, ‘dc_remove_page_titles’ );
    function dc_remove_page_titles() {
    if ( is_page() )
    remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );
    }
    [/php]

    Cheers, Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #56630

    claretnblue
    Participant
    Post count: 3

    Dave,

    Fantastic, thanks very much – worked perfectly.

    Cheers

    #56640

    David Chu
    Participant
    Post count: 1355

    Great! I think I’ll have a claret of wine now!


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #56643

    claretnblue
    Participant
    Post count: 3

    Dave – You earnt it, enjoy.

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

You must be logged in to reply to this topic.