Community Forums › Forums › Archived Forums › Design Tips and Tricks › Move Archive Page Title
Tagged: archive, archive page, hooks, page title heading
- This topic has 7 replies, 3 voices, and was last updated 10 years, 8 months ago by
Erik D. Slater.
-
AuthorPosts
-
September 10, 2015 at 8:49 am #165113
studionoobly
MemberDoes anyone know how to unhook and move the archive page title?
At the top of the archive page (date.php) I have a page heading like "Archives for September 2015". That appears in "genesis_before_loop" I'd like it to go into "genesis_before_content".
Thanks,
http://localSeptember 10, 2015 at 10:44 am #165122Christoph
MemberHi,
sounds like you have a page template (dash.php).
If so you can add the following to it:remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); add_action( 'genesis_before_content', 'genesis_do_post_title' );
September 11, 2015 at 2:01 am #165193studionoobly
MemberThanks Christoph,
I tried that but it doesn't budge, it might because I added something odd in the functions ages ago and I just haven't found it yet?
Eventually I found this by Bill Erickson
And used CSS to hide the offending title... bit hacky but can't find another way.
September 11, 2015 at 2:36 am #165194Erik D. Slater
MemberTry the following:
remove_action('genesis_before_loop', 'genesis_do_date_archive_title'); add_action('genesis_before_content', 'genesis_do_date_archive_title');Function genesis_do_date_archive_title() is new with version 2.2.0 ...
Erik D. Slater: Digital Platform Consultant • LinkedInSeptember 11, 2015 at 2:55 am #165195studionoobly
MemberAh, cool that did the trick!
Glad someone isn't a lazy bum (like me) and read through the new version documents.
Thanks!
September 11, 2015 at 3:11 am #165196Erik D. Slater
MemberGlad someone isn’t a lazy bum (like me) and read through the new version documents.
I'd love to seem that conscientious 🙂
But actually, I have my own archive title ... and when I checked it earlier, I noticed I had two of them on those pages. I'm using the following:
// Add intro text for date archives remove_action('genesis_before_loop', 'genesis_do_date_archive_title'); add_action('genesis_before_loop', 'eds_genesis_before_loop_date_archives', 10, 0);so you can see the similarity 🙂
Erik D. Slater: Digital Platform Consultant • LinkedInSeptember 11, 2015 at 3:16 am #165197studionoobly
MemberYou could have left me with my delusions of grandeur and now your Genesis rep in tatters 😉
In any case I'm glad we had the same problem and one of us figured it out, the two titles thing was really starting to grate my nerves.
September 11, 2015 at 3:20 am #165199Erik D. Slater
MemberYou could have left me with my delusions of grandeur and now your Genesis rep in tatters 😉
Hahahaha ... we'll just keep that one between us ... our little secret ... nobody ever needs to know 🙂
Erik D. Slater: Digital Platform Consultant • LinkedIn -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.