Tagged: captions, CSS, featured, image size
-
AuthorPosts
-
August 31, 2020 at 10:51 pm #1242306September 1, 2020 at 12:18 am #1242310
Hey Rafael,
Please refer to the following:
https://kriesi.at/support/topic/adding-captions-underneath-featured-images-on-posts/
Best regards,
Jordan ShannonSeptember 1, 2020 at 12:38 am #1242323I try this, but didn’t work.
September 1, 2020 at 5:40 am #1242358Hi emanar,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( to be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
NikkoSeptember 2, 2020 at 1:42 pm #1242802Hi Nikko, how are you?
Here are the credentials. This is a cloned version of my site, so you can modify it as you see fit.
Another thing I was going to ask is if you have any suggestions for improving Largest Contentful Paint (LCP) on our site.Tks
- This reply was modified 4 years, 2 months ago by emanar.
September 4, 2020 at 10:15 am #1243253Hi emanar,
I have added this CSS code in Quick CSS which showed the caption below the featured image.
small.avia-copyright { display: block !important; }
As for LCP, you can check this article: https://web.dev/optimize-lcp/
Optimizing your image and also lazy loading images should help.Best regards,
NikkoSeptember 8, 2020 at 3:15 pm #1244314Hi nikko,
Thanks for the answer.
However this shows the copyright,
I had asked about it in another ticket. so I really appreciate
Is there any function like this to show the caption?tks
September 10, 2020 at 10:27 am #1244833Hi emanar,
I apologize for that, there’s one requirement in order to add the caption and that’s using a child theme, you can download it and find instructions on how to use it here: https://kriesi.at/documentation/enfold/child-theme/
Then go to the files wp-content > themes > enfold > includes folder, then copy loop-index.php.
Go to the child theme, create a folder called includes and paste inside loop-index.php and edit it and find this code (line 350-353 in Enfold 4.7.6.3):if( $slider ) { echo '<div class="big-preview ' . $blog_style . '" ' . avia_markup_helper( array( 'context' => 'image', 'echo' => false ) ) . '>' . $slider . '</div>'; }
and replace it with:
if (get_post(get_post_thumbnail_id())->post_excerpt) { $slider_caption .= '<span class="featured-image-caption">'; $slider_caption .= wp_kses_post(get_post(get_post_thumbnail_id())->post_excerpt); $slider_caption .= '</span>'; } if( $slider ) { echo '<div class="big-preview ' . $blog_style . '" ' . avia_markup_helper( array( 'context' => 'image', 'echo' => false ) ) . '>' . $slider . $slider_caption . '</div>'; }
And that should add a caption.
Best regards,
NikkoSeptember 11, 2020 at 3:55 pm #1245168Thanks! That works.
One other think, there’s way to remove the link from the title? Im trying to improve our layout shift.
TksSeptember 11, 2020 at 5:06 pm #1245194I get this to work with Guenni007 instructions: https://kriesi.at/support/topic/remove-permanent-link-from-the-post-h1-title/
but, the layout shift continues, any ideia how to make the font dont change?
ex: https://bebemamae.com/famosos/leticia-colin-mostra-o-rosto-do-filho-de-9-meses-que-bebe-lindoour title is with system font
#top #wrap_all .all_colors h1 {
font-size: 36px;
line-height: 1.1em;
font-family: helvetica-neue,helveticaneue,helvetica neue,Helvetica,Arial,sans-serif;
font-weight: 700;
text-transform: none;
}tks
September 12, 2020 at 9:47 am #1245297Hi emanar,
Seems like your CSS is loaded a bit later which causes this issue, please try to go to Appearance > Customize > Additional CSS, then add this CSS code:
#top #wrap_all .all_colors h1 { font-size: 36px; line-height: 1.1em; font-weight: 700; text-transform: none; }
CSS codes that run here are internal and loaded at the head (not recommending to put a lot of code here).
Best regards,
NikkoSeptember 17, 2020 at 5:42 pm #1246582Thank you! that works nice!
September 17, 2020 at 5:46 pm #1246583One last think, :)
we are getting this msg on pagespeed:
Properly size images 0.27 s – 09/imagename-1030×575.jpg,
There’s something we can do? we change the default image size of the feature image to 1200x670px,
That could be the reason?Ps: This msg show up just in the mobile version.
tks again
BestSeptember 17, 2020 at 8:19 pm #1246593Another issue we have that you may have an idea of what’s going on. We are trying to improve our webVitals – Largest Contentful Paint (LCP), but no matter what I do, it doesn’t decrease.
It seems that there is something about the theme that makes the feature image appear slowly just in mobile. Could you take a look if you have any possible idea?
September 21, 2020 at 5:24 am #1247250Hi,
Thank you for the update.
There’s something we can do? we change the default image size of the feature image to 1200x670px,
Aside from resizing the images, we could install an image optimization or compression plugin to further decrease the size of the images and increase the overall speed of the site. We could use one of the following plugins to do the image optimization.
// https://wordpress.org/plugins/shortpixel-image-optimiser/
// https://wordpress.org/plugins/imagify/
// https://wordpress.org/plugins/wp-smushit/
// https://wordpress.org/plugins/tiny-compress-images/If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.