- This topic has 3 replies, 2 voices, and was last updated 3 years ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Need help, I am unable to find any solution
When I open a blog post on my website, I want the blog post title to come on the featured image. Currently its below the image. So when you view the screen, the 1st scroll goes away just with the featured image. I want the title to also be seen in the first scroll.
The solution may depend on which theme you are using however you can try :
1. using PHP code to reposition the entry title. Basically you remove and then add back the title to a different hook position.
2. and using CSS to display your title over the image https://www.w3schools.com/howto/howto_css_image_text.asp
So your image container uses position relative and your text uses position absolute.
Thanks Brad for the help, I really appreciate it. I am using the theme Ambiance Pro.
Although I understood your step but I am still not sure how to implement them, I can remove the text using the link you gave, but how do I add back with a different hook position?
Here's the list of Genesis hooks which you can change in the code.
Change remove_action to add_action and change the genesis_entry_header hook to any other.
Something like this
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); add_action( 'add you new hook here', 'genesis_do_post_title' );
This will need to be done in a single.php template file or in your child themes functions file with a conditional tag
That should get be enough resources to get you started.
© 2023 WPEngine, Inc.