Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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'>  &rarr;</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 ?

    #730178

    Hey 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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.