Tagged: x
-
AuthorPosts
-
November 5, 2016 at 6:53 am #1244967
pablo102ParticipantHi
I,m trying to change the effect on my website according to this:
https://community.theme.co/forums/topic/change-portfolio-image-rollover-effect/
or this post:
https://community.theme.co/forums/topic/how-can-i-change-the-icon-and-the-rollover-hover-opacity-on-featured-images/#post-8897I have a child theme installed and I’m changing the global css settings (in customizing menu)
It doesn’t change anything for me.
Can I ask for some support on this issue, please?Wedding Photography Waterford Kilkenny Cork Dungarvan – ‘I do’ photography
November 5, 2016 at 6:55 am #1244968
pablo102ParticipantThis reply has been marked as private.November 5, 2016 at 9:09 am #1245040
ThaiModeratorHi There,
Please try with this CSS instead:
.entry-featured { overflow: hidden; } .entry-featured:hover { background-color: #FFF; } .entry-featured img { transform: scaleY(1); transition: all 0.7s ease-in-out; } .entry-featured:hover img { transform: scale(1.2); opacity: 1; }Hope it helps 🙂
November 5, 2016 at 11:47 am #1245127
pablo102Participantno, I can’t see any change in the preview…
November 5, 2016 at 11:54 am #1245137
pablo102ParticipantThis reply has been marked as private.November 5, 2016 at 12:51 pm #1245173
ThaiModeratorThis reply has been marked as private.November 5, 2016 at 1:24 pm #1245198
pablo102ParticipantYes, this one works!
But can I also replace the icon with text?
Also this effect affects the featured image in every portfolio entry, could we disable this, please?
And could we have the same effect on the recent posts shortcut on the main page?
Thank you!November 6, 2016 at 1:48 am #1245582
ChristopherModeratorHi there,
Update this part of code :
/* Rollover effect */ .entry-featured { overflow: hidden; } .entry-featured:hover { background-color: #FFF; } .entry-featured img { transform: scaleY(1); transition: all 0.7s ease-in-out; } .entry-featured:hover img { transform: scale(1.2); opacity: 1; }To :
/* Rollover effect */ .page-template-template-layout-portfolio .entry-featured { overflow: hidden; } .page-template-template-layout-portfolio .entry-featured:hover { background-color: #FFF; } .page-template-template-layout-portfolio .entry-featured img { transform: scaleY(1); transition: all 0.7s ease-in-out; } .page-template-template-layout-portfolio .entry-featured:hover img { transform: scale(1.2); opacity: 1; }Add this code :
.page-template-template-layout-portfolio .entry-thumb:before,.x-recent-posts .x-portfolio .x-recent-posts-img:before { content: "Text"; } .x-recent-posts-img:hover { transform: scale(1.2); opacity: 1; } .x-recent-posts-img { transform: scaleY(1); transition: all 0.7s ease-in-out; overflow: hidden; }Hope it helps.
November 7, 2016 at 5:53 am #1246934
pablo102ParticipantHi there,
Thank you for the code. Could we solve few more things:
1.Disable the effect on big featured image in the post articles?
2.Change the content: “Text” font to use the general website font and be smaller to fit “See more photos”
3.Change the blue overlay in ‘recent posts’ to just dim the image like it is now in portfolio here:
https://idophotographydungarvan.ie/portfolio/
4. Changes with ‘recent posts’ works only on main page. There are ‘recent posts’ sections in every portfolio article too. Could we make it work there too, please?Thank you!
November 7, 2016 at 8:52 am #1247140
RadModeratorHi there,
1. You mean the dark hover effect and icon on blog index page? If yes then please add this too
.blog a.entry-thumb:hover img { opacity: 1; } .blog a.entry-thumb:hover:before { opacity: 0; }2. What I can see is the icon and not some text, it’s the portfolio icon, right?
.page-template-template-layout-portfolio .entry-thumb:before, .x-recent-posts .x-portfolio .x-recent-posts-img:before { content: "\f030"; }Unfortunately, icons have only one font, and it’s the font_awesome, unless I misunderstand it. Please clarify.
3. Please add this too,
.x-recent-posts .x-recent-posts-img:after { -webkit-transition: opacity 0.75s ease; transition: opacity 0.75s ease; background-color: transparent; opacity: 0; } .x-recent-posts .x-recent-posts-img:hover:after { background-color: #000; opacity: 0.15; }4. Seems to be working fine, would you mind providing a video recording? I have a feeling that what I see are different when I compared it to what’s discussed on this thread.
Thanks!
November 7, 2016 at 9:47 am #1247215
pablo102ParticipantThank you,
All is great now but no 2.
It is currently an icon, because the text didn’t work for me so I didn’t want to publish it.
But I would prefer to replace every \f030 icon with text “See more photos”.
See the attachment for the idea about the problem.November 7, 2016 at 11:18 am #1247382
JoaoModeratorHi There,
Please place the code again in order that we can provide you a custom CSS to make your text look better.
Thanks
Joao
November 7, 2016 at 12:20 pm #1247475
pablo102ParticipantIt’s on now, ‘recent posts’ on the main page.
November 7, 2016 at 9:57 pm #1248107
FriechModeratorHi There,
I see you were able to replace the icon with “View”, please update the code that you’re using for that to this:
.page-template-template-layout-portfolio .entry-thumb:before, .x-recent-posts .x-portfolio .x-recent-posts-img:before { content: "See more photos"; line-height: 1; text-align: center; font-size: 1.25em; }Feel free to change the font-size value.
Hope it helps, Cheers!
November 8, 2016 at 5:57 am #1248536
pablo102ParticipantFantastic!
Is there any chance to change the font type to any similar to google lato? -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1244967 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
