Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to move genesis article title out of wrap?
- This topic has 5 replies, 2 voices, and was last updated 7 years, 1 month ago by SRD.
-
AuthorPosts
-
February 12, 2017 at 9:38 pm #201029SRDMember
Hi,
How do I move header.entry-header out of the wrap, and above div.site-inner?
Thanks,
SteveFebruary 13, 2017 at 7:38 am #201038Victor FontModeratorYou have a custom div on your site (gch_header), so I have no idea if this will work in your particular instance. In a standard Genesis child theme, without custom elements, you would add this to functions.php:
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); add_action( 'genesis_after_header', 'genesis_entry_header_markup_open', 11 ); add_action( 'genesis_after_header', 'genesis_do_post_title', 12 ); add_action( 'genesis_after_header', 'genesis_entry_header_markup_close', 13 );
Your custom element may interfere with this working properly. You may have to adjust the priorities in the add_actions.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?February 14, 2017 at 12:30 am #201109SRDMemberThank you Victor, it worked perfectly.
I have access to a visual hooks guide, but is there also a genesis functions guide?
I understand
genesis_after_header
is a genesis hook, andgenesis_do_post_title
is a genesis function. Is that right?Regards,
SteveFebruary 14, 2017 at 8:02 am #201125Victor FontModeratorYes. That's correct. As for function guides, there are a couple on the net, but I find them to be outdated or too sparse when it comes to understanding what a function does. I keep a copy of Genesis locally. Almost everything you need to start understanding Genesis functions is in its lib/structure directory. The real key is to gain an understanding of WordPress actions and filters. Tonya Mork at https://knowthecode.io/ has put together some of the best WordPress and Genesis tutorials I've seen. She really gets into the heart of the matter and not only explains how code works, but why it works as it does. Many of her classes are free, but the price for full access is worth it if you want to be a better developer.
BTW, I've also started a series of tutorials on Genesis Dynamic filters. As time permits, I'll be adding to the content. Here's part 1: https://victorfont.com/understanding-genesis-dynamic-apply_filters-part-1/
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?February 14, 2017 at 8:14 am #201127SRDMemberHi Victor,
I've been searching for something like knowthecode.io for about a year.
Thank you so much for the link, and for your support.
Regards,
SteveMarch 7, 2017 at 6:40 am #202627SRDMemberHi Victor,
The code
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); add_action( 'genesis_after_header', 'genesis_entry_header_markup_open', 11 ); add_action( 'genesis_after_header', 'genesis_do_post_title', 12 ); add_action( 'genesis_after_header', 'genesis_entry_header_markup_close', 13 );
works on post titles and page titles.
How do I make it only affect page titles, leaving post titles where they are?
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.