Add Category Title to Blog Page

Community Forums Forums General Discussion Add Category Title to Blog Page

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  ramseyp 1 year, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5934

    mountash
    Participant
    Post count: 47

    I would like to add the category title to the top of a blog:

    http://morganfamilyfarm.info/category/farm-news/


    Janet Morrow | Mountain Ash Website Design | http://www.mountainash.org
    Visit Our Site for more information and pricing.

    #6857

    ramseyp
    Participant
    Post count: 99

    You can use a function to get the name of the category, then add it to the top of the content area. I’ve used this code before when doing it. It will add a heading 1 before the content area and it will be styled like the entry headings. The code in that Gist would go into your theme’s functions.php file. If that file ends with a question mark and a greater-than symbol ( &> ), make sure the code in placed before them.


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

You must be logged in to reply to this topic.