How to remove page title on home only?

Homepage Community Forums Epik Theme Support How to remove page title on home only?

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #14656
    designkombinat
    Customer

      I set up a page with the portfolio template as home page.

      I found this topic, but I only want to remove the page title for the home page and not for all pages. And the Genesis Title Toggle plugin doesn’t work with Epik.

      #14659
      designkombinat
      Customer

        I’ve tried this

        add_action( 'get_header', 'child_remove_page_titles' );
        function child_remove_page_titles() {
        if ( is_home() && ! is_page_template( 'page_portfolio.php' ) )
        remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
        }

        but doesn’t work.

        Can anyone help?

        #14679
        designkombinat
        Customer

          Can someone pls help with this?

          #14681
          designkombinat
          Customer

            I try to explain a bit: I set up a page with the portfolio template from genesis epik theme. I tried all possible snippets I found for that use case with the epik theme, but it simply won’t work. I just want no title only on home.

            If I comment this line out in the template file page_portfolio.php, the page title for home is gone:
            add_action( 'genesis_before_content', 'genesis_do_post_title' );

            But how to achieve this via functions snippet?

            I tried

            remove_action( 'genesis_before_content', 'genesis_do_post_title' );

            but that does not work…

            #14698
            Eric
            Customer

              Are you ok with removing the title via CSS? If so I can help you with that. Do you have a link to your site? i can tell you exactly which part will need to be adjusted.

              The above suggestion will work, but you can also try some of the code from here – http://wpsites.net/web-design/remove-titles-specific-conditions/

              and this specifically –

              add_action( 'get_header', 'remove_titles_home_page' );
              function remove_titles_home_page() {
                  if ( is_home() ) {
                      remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
                  }
              }

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

              #14725
              designkombinat
              Customer

                Unfortunately that snippet doesn’t work with epik 🙁
                But thanks for sharing.

                #14735
                Eric
                Customer

                  That code above works for me using the Epik theme. The title toggle plugin also works when I test it. Do you have a link to your site? You could just remove it with CSS, but I’d need a link to your site to know the exact part that will need to be adjusted.


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

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.