Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1242306

    Hi, im try to add captions underneath featured images on posts, is that possible?
    i try this: https://kriesi.at/support/topic/adding-captions-underneath-featured-images-on-posts/
    but dint work, could you please help?
    tks

    #1242310

    Hey Rafael,

    Please refer to the following:

    https://kriesi.at/support/topic/adding-captions-underneath-featured-images-on-posts/

    Best regards,
    Jordan Shannon

    #1242323

    I try this, but didn’t work.

    #1242358

    Hi emanar,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Nikko

    #1242802

    Hi 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 9 months, 3 weeks ago by  emanar.
    #1243253

    Hi 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,
    Nikko

    #1244314

    Hi 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

    #1244833

    Hi 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,
    Nikko

    #1245168

    Thanks! That works.
    One other think, there’s way to remove the link from the title? Im trying to improve our layout shift.
    Tks

    #1245194

    I 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-lindo

    our 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

    #1245297

    Hi 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,
    Nikko

    #1246582

    Thank you! that works nice!

    #1246583

    One 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
    Best

    #1246593

    Another 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?

    #1247250

    Hi,

    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

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.