Community Forums › Forums › General Genesis Framework Discussions › Questions about the header and site title.
- This topic has 4 replies, 4 voices, and was last updated 1 year, 5 months ago by
trosclairsonjeffry.
-
AuthorPosts
-
January 19, 2023 at 1:35 pm #506599
trosclairsonjeffry
ParticipantHello,
A logo (header left) and an image (Custom HTML Header right) would be great in the Header section.
However, I can only have the 'Site Title' displayed alongside the custom HTML image. The logo image does not display when I upload it alongside the custom HTML image.
Is it possible to remove the H1 from the site title on the homepage? On all other pages, it IS removed and the H1 is the Page/Post Title and the Site Title is within <p></p> - but on the Homepage, the ‘Site Title’ or logo is H1 – I would like to add a separate H1 for the homepage.
I have found this code online (to be added to functions./PHP) but it doesn’t work
add_filter( ‘genesis_pre_get_option_home_h1_on’, ‘__return_true’ );
URL is https://medidordevelocidadtelmex.online/
Is anyone able to help?January 23, 2023 at 2:40 am #506624Muhammad Yousif
ParticipantThe header section would be ideal for a logo (header left) and an image (Custom HTML Header right).
However, I am only able to display the "Site Title" next to the unique HTML picture. When I upload the logo picture along with the customised HTML image, it does not show up.
Is it feasible to get rid of the H1 from the homepage's site title? The H1 is the Page/Post Title and the Site Title is within p>/p> on all other pages, where it has been removed. - I would like to add a distinct H1 for the homepage because the "Site Title" or logo is H1 on the site.
I found the following code online, but it doesn't function: add filter('genesis pre get option home h1 on', '__return true');September 2, 2023 at 1:30 am #507640khrysztov
ParticipantYou can change the H1 tag to a P tag using this
add_filter( 'genesis_pre_get_option_home_h1_on' ,'__return_false' );
You just needed to return false instead. Note that there is an underscore between return and false.
A more elegant solution is to use this:
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
You can remove the page H1 from everypage with this (there are checkboxes for this in the page editor to do individual pages):
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
For bonus points you can remove the site description.
remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
September 8, 2023 at 5:12 am #507648Jelly4567
BlockedCertainly! I'd be happy to help you with questions about headers and site titles. Please feel free to ask any specific questions for italy drone laws you have, and I'll provide you with information and guidance based on your inquiries.
September 9, 2023 at 3:31 am #507650 -
AuthorPosts
- You must be logged in to reply to this topic.