Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #853833

    Hello,
    I have builded a page with the avia layout builder to show Blog Posts in a list with excerpts. I have used the “Blog-Beiträge” Element from “Inhalts Elemente”. Is it possible to show a thin border between the entries, so that they are seperated from each other?

    I have tried some CSS coding but it did not work:

    
    .entry-content {
    border-bottom: 1px solid #333;
    }
    

    shows the border also in the single post entry.

    Best Regards

    #853856

    Hey Sigmund,

    Can you post a link to the page in question? so we can try to check.

    Best regards,
    Nikko

    #854026
    This reply has been marked as private.
    #854080

    Hi,

    Please provide an exact link to the page with the blog posts.

    Best regards,
    Jordan Shannon

    #854252
    This reply has been marked as private.
    #854260

    Hi,
    and I recognize a second task. On the same page the […] appears 2 times. I only want to second one with the link. How can I delete the first?

    Best Regards

    #854421

    Hi,

    Add this to quick css:

    article .entry-content {
    padding-bottom:100px!important;
    border-bottom: 1px solid #333!important;
    }

    As for the second read more link, the first one seems to be within the paragraph itself. Did you try creating your own read more link?

    Best regards,
    Jordan Shannon

    #854572

    Hi,
    thanks, the border is great now.

    Yes, the read more link is in the paragraph. The second one I have created after hints from here: https://kriesi.at/support/topic/change-text-of-german-read-more-link-weiterlesen/ and other hints in the forum. But I dont know how to get rid of the first one.

    Best Regards

    #854985

    Hi,

    You did not add the first one manually? If you go to the post page, is there not a read more tag within the paragraph?

    Best regards,
    Jordan Shannon

    #855062

    Hi,
    no, I did not set a “read more” tag.
    Best Regards

    #855096

    Hi,

    Would you be able to comment out the code you used to change the language to see if this alleviates the issue?

    Best regards,
    Jordan Shannon

    #855259

    Hi,
    good idea. I have changed the po to

    
    # @ avia_framework
    #: config-layerslider/LayerSlider/views/slider_list.php:253
    #: config-layerslider/LayerSlider_old/views/slider_list.php:253
    #: config-templatebuilder/avia-shortcodes/postslider.php:319
    #: config-templatebuilder/avia-shortcodes/slideshow_feature_image.php:561
    #: framework/php/function-set-avia-frontend.php:1065
    #: includes/loop-index.php:55 includes/loop-index.php:56
    #: includes/loop-page.php:27 includes/loop-portfolio-single.php:27
    msgid "Read more"
    msgstr ""
    

    and converted it to mo. But it did not change the issue.

    Best Regards

    #855531

    Hi,

    Please try disabling all active plugins and seeing if the problem persists. Apologies for the amount of time this is taken, but this is an odd issue.

    Best regards,
    Jordan Shannon

    #855600

    Hi,
    I have tried deactivating all plug-ins with no results. No need to apology, I am quite sure that it is my fault because I changed some PHP code in the enfold-child folder before which I now cannot get rid of. Where are the […] defined all over enfold?

    Best Regards

    #856300

    Hi,

    Please edit the child theme’s loop-index.php file, look for this code.

    $current_post['content'] 	= $blog_content == "excerpt_read_more" ? $current_post['content'].'
    <div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('[...]','avia_framework').'<span class="more-link-arrow"></span></a></div>
    ' : $current_post['content'];
    

    This is the default code.

    	$current_post['content'] 	= $blog_content == "excerpt_read_more" ? $current_post['content'].'
    <div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"></span></a></div>
    ' : $current_post['content'];
    

    Best regards,
    Ismael

    #856358

    Hello,
    thanks. But this is only changing the second […] back to the default “Read more”. I want to delete the first […].
    Best Regards

    #856783

    Hi,

    There’s an excerpt filter in the functions.php file. Please remove it.

    Best regards,
    Ismael

    #856833

    Hi Ismael,
    I have done that, it does not help.

    To clarify: In loop-index.php I have

    
    $current_post['title']   	= get_the_title();
    	$current_post['content'] 	= $blog_content == "content" ? get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow"></span>') : get_the_excerpt();
    	$current_post['content'] 	= $blog_content == "excerpt_read_more" ? $current_post['content'].'<div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('[....]','avia_framework').'<span class="more-link-arrow"></span></a></div>' : $current_post['content'];
    	$current_post['before_content'] = "";
    

    which makes the second link [….] correct. I have searched for the first […] in theme php files, but did not find it.

    An in den de_DE.mo file there is:

    
    # @ avia_framework
    #: config-layerslider/LayerSlider/views/slider_list.php:253
    #: config-layerslider/LayerSlider_old/views/slider_list.php:253
    #: config-templatebuilder/avia-shortcodes/postslider.php:319
    #: config-templatebuilder/avia-shortcodes/slideshow_feature_image.php:561
    #: framework/php/function-set-avia-frontend.php:1065
    #: includes/loop-index.php:55 includes/loop-index.php:56
    #: includes/loop-page.php:27 includes/loop-portfolio-single.php:27
    msgid "Read more"
    msgstr ""
    

    In the functions.php there is:

    
    /* Magazine Layout Startseite  */
    add_filter('avf_magazine_settings', 'avia_magazine_thumbnail', 10, 2);
    function avia_magazine_thumbnail($atts, $magazine){
    $atts['image_size']['small'] = 'masonry';
    return $atts;
    }
    
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }
    
    /* magazine excerpt  */
    add_filter('avf_magazine_excerpt_length','avf_magazine_excerpt_new_lenght', 10, 1);
    function avf_magazine_excerpt_new_lenght($excerpt) {
    $excerpt = 140;
    return $excerpt;
    }
    
    /* beitragsbild unter headline */
    function add_custom_script(){
    if(is_singular('post')){
    ?>
    <script>
    (function($){
        $(window).load(function() {
        	$('article.post').each(function(){
               $(this).find('.entry-content-header').after($(this).find('.big-preview').detach());
            })
        });
    })(jQuery);
    </script>
    <?php
    }
    }
    add_action('wp_footer', 'add_custom_script');
    
    // mo files auch im child theme einsetzbar
    function overwrite_language_file_child_theme() {
        $lang = get_stylesheet_directory().'/lang';
        return $lang;
    }
    add_filter('ava_theme_textdomain_path', 'overwrite_language_file_child_theme');
    

    Best Regards,

    • This reply was modified 7 years, 1 month ago by Sigmund.
    #857255

    Hi,

    We added the following filter in the functions.php file in order to remove the ellipsis.

    add_filter('excerpt_more','__return_false');
    

    Best regards,
    Ismael

    #857389

    Great, that does the trick. As always, great support at Kriesi! Thanks for that.

    Best Regards

    #857415

    Hi,

    Glad that Ismael helped you. Thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 21 posts - 1 through 21 (of 21 total)
  • The topic ‘Border below Blog Post List’ is closed to new replies.