How to display the page title on category pages

Homepage Community Forums Epik Theme Support How to display the page title on category pages

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6150

    I’m using the Epik theme with few modifications. My site applies the blog page template to 2 category pages; however, the page titles do not appear above the post content. (The page title should be the category name.)

    Note that blog posts do NOT appear on the home page.

    What is the easiest way to make this change?

    #6155
    scooby
    Customer

      Do you have a link so I can see what’s going on?

      #6158

      Here are two examples. This page should display “Testimonial” as the title: http://one2edit2013.wpengine.com/?cat=8

      This page should show “Case Study” as the page title: http://one2edit2013.wpengine.com/?page_id=44

      #6202
      Eric
      Customer

        I did a quick Google Search and came across this –

        add_action('genesis_before_loop', 'add_title');
        function add_title() {
        if(is_page_template( 'page_blog.php' )) {
        the_title( '<h1>', '</h1>');
        } }

        Try and add that to your functions.php file and it should add the titles on the Blog pages. Just so you know, this is the way Genesis (the framework) is setup. So the same thing would happen on any Genesis Child theme…..but the above code should add it. Let me know if that works.


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

        #6217

        Yes, adding this function to the child theme functions page worked just fine — as long as I also created a custom field called “query_args” and then used “cat=8” in the value field (where “8” refers to the category’s ID number).

        Thanks for the help.

        #6219
        Eric
        Customer

          You’re Welcome


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

        Viewing 6 posts - 1 through 6 (of 6 total)
        • The topic ‘How to display the page title on category pages’ is closed to new replies.