Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rpdubose

    (@rpdubose)

    Though painful, I was able to answer my own question which is always best. Should someone ever want to remove the header img & move the h1 up into the banner space, here’s how you would do it.

    • header.php – In the <div id="header"> you can stop wp from rendering the banner image & insert an h1. Assuming you still want to use the page name as the h1 you just need to <h1><?php echo get_the_title() ?></h1>.
    • loop-page.php – This is where you will find what I am referring to as the ‘lower h1’. This is where graphene will put your h1 by default. If you’re moving it up you’ll want to comment out this code so you don’t have duplicate h1’s. Blog posts are handled in a different page.
    • loop-single.php – This is where blog posts get there h1’s. Again, if you’re talking care of this in header.php you’ll want to remove the h1 so you don’t end up w/ duplicates.
    • loop.php – Don’t really need to do anything here but throwing it in for good measure. Graphene, by default, does appear to have an h1 on /blogs. Just h2’s that are used to list the individual blog posts. If you do want to tap into those h2’s you can do that here.

    There may be a better way of accomplishing my goal in wp but I couldn’t find it. Hope this helps.

    Thread Starter rpdubose

    (@rpdubose)

    Thanks for the tips, Craig. Sorry for some of my wp ignorance but are get_the_title() & the_title() global methods in wp? In other words, can I call those methods from any other php file or class they’ve been inherited?

    Thanks!

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