Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter two beers

    (@two-beers)

    Thank you, I’ll try it.

    Thread Starter two beers

    (@two-beers)

    There is a loop.php in the childtheme folder that is considerably longer than the one you linked to. I changed the h2s to h1s, but it’s not changing the tags. Any ideas why it might not be working?

    Thanks.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Copy the loop-page.php file from the parent theme, paste it into your Child Theme folder and edit it there. Do your changes to the loop-page.php file of your Child Theme work?

    Thread Starter two beers

    (@two-beers)

    There was already a loop.php in the child theme. My 2010 folder shows loop.php, loop-attachment,php, loop.single.php, and loop-page.php/

    I’ve copied loop.php to the child, and changed the h2 tags to h1. No change to the html output.

    I’ve also copied the loop.attachment.php from the parent to the child, changed the tags, and there’s still no change to the html output.

    Should I try this also with the loop-single.php and the loop-page.php files (i.e. copy them to the child, and change the h2 tags)?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Should I try this also with the loop-single.php and the loop-page.php files

    You should only try it with the loop-page.php file.

    Thread Starter two beers

    (@two-beers)

    Hmm. it’s not working.

    H1 tags are so critical to SEO. WordPress is great in so many ways. It’s frustrating that there doesn’t seem to be a way to change tags on attachments.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    There is a way, we just don’t know the answer to the problem.

    Thread Starter two beers

    (@two-beers)

    Ok, well, thanks for trying, I appreciate the effort.

    Also, I realized that no-following my site link above isn’t enough to keep this out of the search engines. Would no-indexing it work? Or if it’s not a hassle, to just bitly it: bit.ly/1DsVX2U ?

    Thanks.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘how to add an h1 tag to attachment page titles?’ is closed to new replies.