Remove Page Header

Homepage Community Forums Epik Theme Support Remove Page Header

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7569
    weborization
    Customer

      I’ve used the code below in the functions.php successfully for quite some time and am finding it isn’t working on this site with Epik 1.3 installed. Does something in the code need to be changed specifically for Epik or all around for WordPress 3.6.1 / Genesis 2.0.1?

      http://192.185.225.20/~everly/series/

      //Remove page titles

      add_action( ‘get_header’, ‘child_remove_page_titles’ );
      /**
      * Remove page titles from all pages except blog page template.
      *
      * @author John Wright
      * @link http://dev.studiopress.com/remove-page-titles.htm
      */
      function child_remove_page_titles() {
      if ( is_page() && ! is_page_template( ‘page_blog.php’ ) )
      remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );
      }

      #7623
      Eric
      Customer

        Have you seen this plugin? – http://wordpress.org/plugins/genesis-title-toggle/


        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #7643
        weborization
        Customer

          Thanks Eric – This morning I took this over to Studiopress and here is what they gave me – it works:

          The Epik theme is HTML5 and the hooks have changed.

          You would need to change
          remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );

          to
          remove_action( ‘genesis_entry_header’, ‘genesis_do_post_title’ );

          #7659
          Eric
          Customer

            Oh that’s right, I forgot all about that. Thanks for posting it here, now I can link to this thread if someone else has a similar question in the future.


            I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Remove Page Header’ is closed to new replies.