-
AuthorPosts
-
January 21, 2020 at 11:06 pm #1176962
How can you hide / remove the portfolio Entry title on hover?
Also with keeping the SEO benefits.
<script async src=”//s.imgur.com/min/embed.js” charset=”utf-8″></script>
- This topic was modified 4 years, 10 months ago by mmsdev.
January 23, 2020 at 5:23 am #1177386Hey mmsdev,
Try adding this CSS code in Quick CSS, located in Enfold > General Styling:
(This removes the image overlay)#top .grid-image:hover .image-overlay { display: none !important; }
(This removes the title)
#top .grid-sort-container article:hover .grid-content { display: none !important; }
Hope it helps.
Best regards,
NikkoJanuary 23, 2020 at 2:14 pm #1177602This works but not required;
#top .grid-image:hover .image-overlay {
display: none !important;
}This removes the Title and excerpt on hover all together, so thats not what we are talking about.
#top .grid-sort-container article:hover .grid-content {
display: none !important;
}Its just the title that appears on hover that we want to hide/ remove from hover, please see link below.
January 23, 2020 at 2:29 pm #1177614Hey,
Please refer to this post – https://kriesi.at/documentation/enfold/image/#remove-image-alt-title-on-hover
Best regards,
YigitJanuary 23, 2020 at 2:41 pm #1177626I had already tried that, i always refer to the main guides before recaching out for support..
Tried this from the guide:
function remove_title_attr(){
?>
<script>
jQuery(window).load(function(){
jQuery(‘#wrap_all a’).removeAttr(‘title’);
jQuery(‘#wrap_all img’).removeAttr(‘title’);
});
</script>
<?php
}
add_action(‘wp_footer’, ‘remove_title_attr’);Has no effect
January 23, 2020 at 2:45 pm #1177628Hey,
I see however it should have worked. Could you please create temporary admin logins and post them here privately so we can check why it is not working?
Regards,
YigitJanuary 23, 2020 at 2:58 pm #1177639Sure here you go
- This reply was modified 4 years, 10 months ago by mmsdev.
January 23, 2020 at 3:07 pm #1177642Hi,
I am getting “Scrape nonce check failed. Please try again.” error and cannot update Functions.php file. Could you please add the code via FTP and then let us know so we can check? If you do not mind sharing FTP logins, we can add the code to functions.php file as well.
Best regards,
YigitJanuary 23, 2020 at 3:15 pm #1177644I have added it by FTP
But also see private text
January 23, 2020 at 3:33 pm #1177656Hey,
Thanks for the info. I found out that code was not working when Enfold theme options > Performance > “Load jQuery in your footer” enabled. I disabled it and it works :)
Best regards,
YigitJanuary 23, 2020 at 5:22 pm #1177757Thats done it!, it’s now working.. Many thanks
January 23, 2020 at 5:25 pm #1177761 -
AuthorPosts
- The topic ‘Remove portfolio Entry title on hover’ is closed to new replies.