-
AuthorPosts
-
October 20, 2023 at 1:47 pm #1423123
Hi,
I have two issues with my images.
1. On my home page, I have a series of six images setup in a masonry gallery and stretched fullwidth in one horizontal row. When the site is seen in a smaller screen (tablet or laptop?), the images appear unbalanced. For instance, four images appear in one horizontal row and two in a row underneath with a big grey space next to it. It looks odd. Is there a way to have three images on one row and three on another row underneath so they are evenly distributed?
2. When my cursor is hovering over my images I now see the image titles (in most of my images, including my logo, but not on my photos on my voice over page or my headshot on my about page). I just installed the Yoast SEO plugin, could this be the problem? Please advise. Speaking of Yoast, I deactivated my maintenance plugin. But in Google search, it keeps showing the text from my maintenance page rather than the text from my site, which is now live. Could it be an issue with Yoast? And is this something you can help me with?
I have put my login and other information in the private link.
Many thanks!
- This topic was modified 1 year, 2 months ago by steveorrmedia.
- This topic was modified 1 year, 2 months ago by steveorrmedia.
October 22, 2023 at 11:18 pm #1423343Hey steveorrmedia,
Thank you for your patience and the link to your site, for your first issue I found that between 1340px & 1799px you were seeing the four images appear in one horizontal row and two in a row underneath with a big grey space next to it, try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field t correct:@media only screen and (min-width: 989px) and (max-width: 1799px) { .responsive .av-masonry-col-flexible .av-masonry-entry { width: 33.3%; } }
For your second issue, having good titles for your images is good for SEO, but I notice that your titles are not very good, for example see the first screenshot below: “Steve5 In Action – Copy” try going to your media library and check each image and make the titles something that you would want to see on google like: “Award winning broadcaster Steve teaches”
Ok, then I know you don’t want to see the titles when you mouse-over the images, so to correct try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function custom_remove_title_on_mouse_over_script() { ?> <script> (function($){ $('img').hover(function(e){ $(this).attr('data-title', $(this).attr('title')); $(this).removeAttr('title'); }, function(e){ $(this).attr('title', $(this).attr('data-title')); }); $('.av-masonry-image-container').hover(function(e){ $(this).attr('data-title', $(this).attr('title')); $(this).removeAttr('title'); }, function(e){ $(this).attr('title', $(this).attr('data-title')); }); $('a').hover(function(e){ $(this).attr('data-title', $(this).attr('title')); $(this).removeAttr('title'); }, function(e){ $(this).attr('title', $(this).attr('data-title')); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_remove_title_on_mouse_over_script', 99);
Then clear your browser cache and check.
Best regards,
MikeOctober 22, 2023 at 11:52 pm #1423350This reply has been marked as private.October 23, 2023 at 12:01 pm #1423395October 23, 2023 at 1:05 pm #1423401This reply has been marked as private.October 23, 2023 at 4:06 pm #1423425Hi,
Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardOctober 23, 2023 at 5:08 pm #1423446Rikard,
Yes, please close it.
And, for what it’s worth, Mike has been incredibly helpful and patient with me (a novice!) on several of my issues. He’s also been great showing me how he fixed my problems.
Best,
Steve Orr
October 23, 2023 at 7:13 pm #1423458Hi,
Glad we were able to help, and thank you for the kind words, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Image Issues’ is closed to new replies.