-
AuthorPosts
-
September 19, 2017 at 1:33 pm #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
September 19, 2017 at 2:19 pm #853856Hey Sigmund,
Can you post a link to the page in question? so we can try to check.
Best regards,
NikkoSeptember 19, 2017 at 8:39 pm #854026This reply has been marked as private.September 19, 2017 at 11:42 pm #854080Hi,
Please provide an exact link to the page with the blog posts.
Best regards,
Jordan ShannonSeptember 20, 2017 at 9:06 am #854252This reply has been marked as private.September 20, 2017 at 9:35 am #854260Hi,
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
September 20, 2017 at 4:06 pm #854421Hi,
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 ShannonSeptember 20, 2017 at 10:04 pm #854572Hi,
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
September 21, 2017 at 5:52 pm #854985Hi,
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 ShannonSeptember 21, 2017 at 9:24 pm #855062Hi,
no, I did not set a “read more” tag.
Best RegardsSeptember 21, 2017 at 10:58 pm #855096Hi,
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 ShannonSeptember 22, 2017 at 9:11 am #855259Hi,
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
September 22, 2017 at 7:36 pm #855531Hi,
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 ShannonSeptember 22, 2017 at 9:49 pm #855600Hi,
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
September 25, 2017 at 5:23 am #856300Hi,
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,
IsmaelSeptember 25, 2017 at 8:29 am #856358Hello,
thanks. But this is only changing the second […] back to the default “Read more”. I want to delete the first […].
Best RegardsSeptember 26, 2017 at 5:57 am #856783Hi,
There’s an excerpt filter in the functions.php file. Please remove it.
Best regards,
IsmaelSeptember 26, 2017 at 9:36 am #856833Hi 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.
September 27, 2017 at 5:03 am #857255Hi,
We added the following filter in the functions.php file in order to remove the ellipsis.
add_filter('excerpt_more','__return_false');
Best regards,
IsmaelSeptember 27, 2017 at 9:20 am #857389Great, that does the trick. As always, great support at Kriesi! Thanks for that.
Best Regards
September 27, 2017 at 10:18 am #857415Hi,
Glad that Ismael helped you. Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Border below Blog Post List’ is closed to new replies.