The archives.php in my theme does not show the category title
-
The archives template of my theme latte pro does not include a page heading to show the category name. The default category for the them is the blog for which I created a category called News and Events.
It’s a one-page theme where a certain amount of posts appear on the front page and the older ones appear on the archive page. Because not having a page header was confusing, I manually added the code below.
<div class="row"><h1 style="text-align:center;font-weight:bold; font-color:#4b2acc;front-family:EB Garamond; ">News and Events Archive</h1></div>
However, I am adding a two new categories that we plan to use heavily and so the above hard-wired coding doesn’t do the job.
I looked on the web and got a lot of articles,but all had a differnt frame of reference and I found it
confusing.All I need is the proper code in place of the
News and Event
so that the page heading will reflect the category of the listing.
Much appreciated for any help
- This topic was modified 5 years, 3 months ago by . Reason: Moved to Fixing WordPress, this is not a Developing with WordPress topic
The page I need help with: [log in to see the link]
- The topic ‘The archives.php in my theme does not show the category title’ is closed to new replies.