Your cart is currently empty!
Here’s the solution…
add_filter( 'genesis_post_title_output', 'ac_post_title_output', 15 );
function ac_post_title_output( $title ) {
if ( is_singular() )
$title = sprintf( '<h1 class="entry-title" id="content">%s</h1>', apply_filters( 'genesis_post_title_text', get_the_title() ) );
return $title;
}
No problem. My bad if I could’ve been more clear.
I’ll ask the SP crew about this, as your findings are pretty much in line with mine.
See what I mean about Genesis making this more complicated than it needs to be? Haha.
Thanks Wes!
Scott
Thanks Wes, though I need an id on the page title, not the site title.
I know this should be directed to the SP team, but since we’re here… what about these? http://my.studiopress.com/snippets/entry-header/
I just need to change…
<h1 class="entry-title">Page Title</h1>
to…
<h1 class="entry-title" id="content">Page Title</h1>
Thanks Wes. Skip links for accessibility aren’t anything special. It’s just a “skip to content” link before everything else (which is hidden unless it receives keyboard focus), which then allows a user to skip over nav menus. Keyboard navigation is done by hitting Tab to move from link to link. Tabbing through menus can get cumbersome.
Anyway…
What you did in functions.php w/ the .head-wrap
stuff works by adding the id to the div, but I need to figure out how to do that with the post/page title instead of the site header. I don’t see what snippet even references the page title: http://my.studiopress.com/snippets/ – Any ideas?
I like Genesis, but it sure makes some things more complicated than necessary.
Yup, that did it! Many thanks Wes.
I have it redirecting to a subdomain via an under construction plugin while the main site is being worked on. Can I send you an email w/ access, or is this private reply feature okay for sharing login info?
Update: editing the page template file works now. I’m not sure what happened, but relaunching the FTP client (Yummy FTP, mac) and the text editor (TextWrangler, which loads/edits/saves through Yummy FTP) seemed to fix the problem. I was editing function.php through the dashboard and thecustom page template through FTP.
#frustrating
Alrighty… turns out it works by adding the snippet in functions.php, not the custom page template.
This affects the blog too, which isn’t ideal, but at least it fixes the problem for now.
Thanks Wes.
Thanks Wes. I actually have a template name in it & it still doesn’t work – the template itself does, but I can’t get the dang post info to disappear. Here’s the full code in the template file, which is in the epik folder:
<?php
/* Template Name: Team Showcase */
remove_action( 'genesis_entry_header', 'genesis_post_info', 5 );
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
genesis();
?>
The first action was recommended by a guy on the Studiopress forum: http://www.studiopress.com/forums/topic/custom-page-template-struggles/
It’s still not doing the trick. I’m a little perplexed. Any other thoughts are welcome!
Scott
Potentially relevant conversation w/ the plugin developer:
Perfect, thanks!