Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5085
    Robertf
    Participant

    Hi,

    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, Robertf

    #5094
    Sakin
    Keymaster

    @Robertf: So it’s solved right?

    #5095
    Robertf
    Participant

    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,  Robertf

    #5100
    Robertf
    Participant

    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, Robertf

    #5145
    Sakin
    Keymaster

    @Robertf: Just change content.php in your child theme.

    #5148
    Robertf
    Participant

    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:
    <h1 class=”entry-title”>
    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.

    Regards, Robertf
     

    #5150
    Sakin
    Keymaster

    @Robertf: It’s great that it worked for you.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘PHP file for front page blog posts listing’ is closed to new replies.