What does excerpt depend on?


I wrote a post plugin for elementor page builder.Excerpt overflows to my country flags.How can I avoid the overflowing?

On this website, except overflows:


On this website, it is okay:


The plugin code are same for two website.

I use this code in my plugin:

 <p class="blog-card-description">
                    <?php the_excerpt(); ?>

                <div class="ftr">
                    <div class="author" >
                      <!--  <a href="#"> <img src="https://www.wptricks.com/wp-content/uploads/2020/03/3840-scaled.jpg" alt="..." class="avatar img-raised"> <span>Lorem</span> </a>
          -->          </div>
                    <div class="stats" style="top: 20px;">
                        <?php echo do_shortcode("[svg-flag flag=""  . get_post_meta(get_the_ID(), 'ozellikler_text', true) . "" width="4em" height="4em"]"); ?>

I use html5blank theme for theme-base and it’s function.php contains these code:

// Custom Excerpts
function html5wp_index($length) // Create 20 Word Callback for Index page Excerpts, call using html5wp_excerpt('html5wp_index');
    return 20;

// Create 40 Word Callback for Custom Post Excerpts, call using html5wp_excerpt('html5wp_custom_post');
function html5wp_custom_post($length)
    return 40;

// Create the Custom Excerpts callback
function html5wp_excerpt($length_callback = '', $more_callback = '')
    global $post;
    if (function_exists($length_callback)) {
        add_filter('excerpt_length', $length_callback);
    if (function_exists($more_callback)) {
        add_filter('excerpt_more', $more_callback);
    $output = get_the_excerpt();
    $output = apply_filters('wptexturize', $output);
    $output = apply_filters('convert_chars', $output);
    $output = '<p>' . $output . '</p>';
    echo $output;

What does except depend on?

, , Excalibur Sword 4 years 2020-03-24T08:52:07-05:00 0 Answers 119 views 0

Leave an answer