Tagged: Home Page
- March 13, 2013 at 11:24 am #5085
Quick question to answer (I hope), which PHP file do I need to copy into & edit in my Child Theme to change the H1 tags in the blog post titles? I only want 1 * H1 tag in the front page, the Site Title.
BTW: I’ve managed to edit my Child Theme so that the H1 tag is only applied to the Site Title on the home page – thanks for your help 😉
Regards, RobertfMarch 13, 2013 at 12:21 pm #5094March 13, 2013 at 12:37 pm #5095
Sorry, Sakin, the “thanks” was for helping me with the Site Title H1 tag problem.
My “quick question” was about the summary listing of blog posts on the home page. The title for each of these posts is wrapped in an H1 tag and I want to change this. But I can’t find the right PHP file to edit (and believe me, I’ve spent a couple of hours tweaking different ones in the Catch Box Pro theme folder without success!).
Thanks again and sorry for confusing my earlier fixed problem with the current one.
Regards, RobertfMarch 13, 2013 at 5:55 pm #5100
So to recap, all I need to know is the name of the php file that contains the function that lists the extracts of the blog posts on the home page.
The title for each blog post is wrapped in an H1 tag and I simply want to change this so that there’s only one H1 tagged element on the home page.
Thanks in advance.
Regards, RobertfMarch 14, 2013 at 11:12 am #5145March 14, 2013 at 11:29 am #5148
Thanks, Sakin. I did look at content.php, but didn’t look deep enough!
I found the first code for entry-title, <h2 class=”entry-title”>, saw that it wasn’t an h1 as displayed for the blog entry title on the home page
listing, so I stopped looking.
Following your suggestion I searched further and found this code under the is_sticky() check:
I’ve changed this to h2 and now it’s working perfectly (that is, as I want it to).
Sorry for not looking hard enough in the first instance and thanks again for your help.
March 14, 2013 at 11:43 am #5150
The topic ‘PHP file for front page blog posts listing’ is closed to new replies.