- This topic has 11 replies, 3 voices, and was last updated 5 years, 2 months ago by
Tom.
-
AuthorPosts
-
December 29, 2019 at 8:42 pm #1117143
Vuong
Hello guys,i want to make entry title overlay on post thumbnail,like this screenshot ( i did it on my old theme)
but when i do,its not fit with my post thumbnail
and here my css on my old theme.entry-title { line-height: 1; position: absolute; padding: 10px; background: url(https://asdmovies.com/wp-content/themes/frontier/images/title-bg.png) top repeat-x; z-index: 5; bottom: 0; width: 100%; text-align: center; }
So what should i do,pls help..thanks very much !
December 30, 2019 at 5:01 am #1117323David
StaffCustomer SupportHi there,
can you provide a link to your new site so i can provide the CSS if it is possible.
December 30, 2019 at 7:48 am #1117588Vuong
im still testing on localhost,but here my site using old theme : https://asdmovies.com
on my old theme ( frontier ) they put post-image div to content.php so i can easily add any div to this ( see this ss below )
https://i.imgur.com/EaTk6D5.jpg
in this screenshot,i can just add “quality” div and put entry-title inside entry-thumbnail so they can display without problem
but on Generatepress,i can’t find any post-thumbnail div in content.php (ss below)
https://i.imgur.com/mH6tmo3.jpg
hope you get what i said,im not really good in english.December 30, 2019 at 11:50 am #1117786David
StaffCustomer SupportSo I would do the following:
1. Customizer > Layout > Blog –> Featured Images Archive – sets its position above title.
2. Create a New Hook Element:Hook Content:
<div class="post-wrap"><!-- Open Post wrap -->
Make sure to remove the closing</div>
the editor will add.
Select thebefore_content
hook
Set the Display Rules to Blog & All Archives3. Create another new Hook Element:
Hook Content:
</div>
Select the beforeafter_entry_title
hook
Set the the Priority to5
Set the Display Rules to Blog & All ArchivesWe should now have the
post-image
and theentry-header
within our div wrap.So this CSS will help for the overlay:
.post-wrap { position: relative; } .post-wrap .post-image { margin-bottom: 0 !important; } .post-wrap .post-image img { vertical-align: middle; } .post-wrap .entry-header { position: absolute; bottom: 10px; left: 10px; }
In the last CSS RULE adjust the bottom, left properties to suit.
December 30, 2019 at 5:26 pm #1117970Vuong
Tks David,its working well on pc now,but in tablet and mobile mode,its not..”quality” and title not display correctly
https://i.imgur.com/kVJ9OBI.jpg
https://i.imgur.com/OrZddw1.jpg
i uploaded new theme to my site,you can check it : https://asdmovies.com
Do you need admin / password to check it easy ?December 30, 2019 at 5:54 pm #1117973Vuong
And another problem,tag clod widget not display full,here screenshot
December 30, 2019 at 9:41 pm #1118064Vuong
Tested on iphone :
December 31, 2019 at 4:11 am #1118190David
StaffCustomer SupportI really need to see a link to the site to tell what the issue is. Are you able to push it to a live domain so i can see?
December 31, 2019 at 4:45 am #1118210Vuong
Yes,here my site now : https://asdmovies.com
and btw,how can i display post grid on mobile too ?.tksDecember 31, 2019 at 6:53 am #1118440David
StaffCustomer SupportYou can try forcing the image to fill the column by changing this CSS:
.post-wrap .post-image img { vertical-align: middle; }
to:
.post-wrap .post-image img { vertical-align: middle; width: 100%; }
December 31, 2019 at 7:45 am #1118492Vuong
Tks David,i get it,could you help me solve my sidebar widget problem ? you can check it on my site (genre widget and year widget )
Sorry for disturb.December 31, 2019 at 7:10 pm #1118724Tom
Lead DeveloperLead DeveloperHi there,
It looks like you’re just using regular links now?
Let me know 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.