- This topic has 7 replies, 3 voices, and was last updated 4 years, 8 months ago by
Elvin.
-
AuthorPosts
-
July 8, 2021 at 8:59 am #1849091
Sufia
Hi, I want to create an ATF like Backlinko – https://backlinko.com/on-page-seo. The idea is to give the reader what they came looking for, right away. I don’t want my readers to have to scroll down to get their burning questions answered.
Like Backlinko I want to show the feature image on the right. And the introduction on the left. The background color would be the site’s primary color (#F1873B). Link Backlinko, the ATF will have the post title but not the category. Instead, I would like to have the author’s name and date of publication or update.
Any idea how we can achieve this? And can we automate this on all posts on my site?
You can take a look at how my posts appear now. URL in the private information section.
July 8, 2021 at 9:11 am #1849105Leo
StaffCustomer SupportHi there,
The closest solution is to create a dynamic page hero using a block element.
Take a look the video and the documentation here:
https://docs.generatepress.com/article/block-element-page-hero/July 8, 2021 at 9:31 pm #1849498Sufia
Excellent suggestion Leo. I tried it out on my staging site. I’m facing 2 issues.
1. After I disable the title, feature image, I can still see them in my post (see private info section).
2. I want to add a shadow on the feature image on the ATF. In this blog post – https://mikeoliver.me/styling-the-wordpress-image-block/, I like the ‘Solid color offset drop shadow’ and ‘Opaque drop shadow.’ I tried the CSS that the author suggested but it’s not working. How can I achieve the ‘Solid color offset drop shadow’ and ‘Opaque drop shadow?’
3. Before the date, I want to add the word ‘Updated.’ How can I achieve this?
July 8, 2021 at 9:50 pm #1849512Elvin
StaffCustomer Support1. After I disable the title, feature image, I can still see them in my post (see private info section).
Those options disable the default title element and the featured image element of the theme within the content.
You can just remove the heading block that holds the title if you want it removed on the page hero. You can remove the dynamic background image of the Container block if you wish to remove the background featured image.
2. I want to add a shadow on the feature image on the ATF. In this blog post – https://mikeoliver.me/styling-the-wordpress-image-block/, I like the ‘Solid color offset drop shadow’ and ‘Opaque drop shadow.’ I tried the CSS that the author suggested but it’s not working. How can I achieve the ‘Solid color offset drop shadow’ and ‘Opaque drop shadow?’
You likely have the wrong selector.
By the way, I’m not sure I’m seeing the right page. Are you now using a Block element for your page hero like Leo suggested instead of a Header element? I still see a Header Element being used on the page provided on the private information.
The one you want to replicate will be easier done in Block Element as Leo mentioned as Header element is pretty limited in styling options. It’ll be significantly harder to do the layout there because you’ll have to manually code everything as opposed to using a Block element where you can just use GenrateBlocks for layout.
July 8, 2021 at 10:55 pm #1849563Sufia
1. This is fixed, Thanks.
2. I am using the Block element as Leo suggested. The hook that I’m using is ‘after header’ because that’s where I want the hero image to appear – https://i.imgur.com/kBFUh49.png
I am using generateblock as you can see from here – https://i.imgur.com/G3uw2dg.png. I want to add a shadow in the image that I have highlighted in the picture. As for the CSS, I tried adding them in the container – https://i.imgur.com/xkSRXYe.png
Would it be easier if I shared the staging site with you?
July 8, 2021 at 11:00 pm #1849565Elvin
StaffCustomer SupportWould it be easier if I shared the staging site with you?
Ah right. I think what I checked was the live site. Yes please. So I can inspect and suggest the correct selectors to apply shadow.
3. Before the date, I want to add the word ‘Updated.’ How can I achieve this?
The dynamic date has an option to add a “before text”. See this – https://share.getcloudapp.com/v1uY9nJr
July 9, 2021 at 12:03 am #1849605Sufia
Check the private info section. If you need access to the WordPress admin, I’ll create a temporary profile. Let me know.
July 9, 2021 at 12:10 am #1849608Elvin
StaffCustomer SupportCheck the private info section. If you need access to the WordPress admin, I’ll create a temporary profile. Let me know.
Ah no need for that.
Here’s what you can do:
Open the block editor and add
box-shadowto the Image Block’s Additional CSS Class(es) field like this – https://share.getcloudapp.com/YEuZwJ00And then use this CSS:
.wp-block-image.box-shadow img { box-shadow: 15px 15px 0px #d3dce5; border: 1px solid #d3dce5; } -
AuthorPosts
- You must be logged in to reply to this topic.