Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
January 5, 2017 at 3:25 pm #729893
Hello,
I think there is a bug in last version of enfold (s 3.6.1).
I use Postslid in Grid Format. My post format are links.
Link on pictures and Title works well. however, the link of read more redirct to article page.
Which is not logical.it seems that the condition
if($format == 'link')
on post-slider.php line 322 is not working.
I solved out the problem by removing this condition but it is not very good because it will interfer with other post format.
this what I have done
Line 320$current_post = array(); $current_post['content'] = $entry->post_content; $current_post['title'] = $entry->post_title; if(function_exists('avia_link_content_filter')) { $current_post = avia_link_content_filter($current_post); } $link = $current_post['url']; $permalink = "<div class='read-more-link'><a href='{$link}' class='more-link'>".__('Read more','avia_framework')."<span class='more-link-arrow'> →</span></a></div>"; $prepare_excerpt = !empty($entry->post_excerpt) ? $entry->post_excerpt : avia_backend_truncate($entry->post_content, apply_filters( 'avf_postgrid_excerpt_length' , $excerpt_length) , apply_filters( 'avf_postgrid_excerpt_delimiter' , " "), "…", true, ''); if($format == 'link') { $current_post = array(); $current_post['content'] = $entry->post_content; $current_post['title'] = $entry->post_title; if(function_exists('avia_link_content_filter')) { $current_post = avia_link_content_filter($current_post); } $link = $current_post['url']; }
Any more elegent solution ?
January 6, 2017 at 6:23 am #730178Hey Toulmonde,
Latest version of the theme is 3.8.4, could you try updating to see if that solves your problem please? http://kriesi.at/documentation/enfold/updating-your-theme-files/
Best regards,
Rikard -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.