Elegant Themes remove links to post for Filterable Portfolio template

To remove links from excerpts using Elegant themes (Filterable Portfolio)

/wp-content/themes/Flexible/functions.php (Around line #344 for Flexible theme v1.7) ->

  • To remove links from Ajax code on “Filterable portfolio” template, so clicking on image won’t load (redundant) post. Note: There is no template to edit.
// change link for image here
// original line                echo '<a href="'. esc_url( get_permalink() ) . '">';
                    print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext);
// original line                echo '</a>';
            }
        echo '</div> <!-- end .et_media -->';
        
        echo     '<div>' . 
//  change link for title H2 here
//  original line                    '<h2>' . '<a href="' . get_permalink() . '">' . get_the_title() . '</a>' . '</h2>' .
                    '<h2>' . get_the_title() . '</h2>' .
//  truncate post excerpt for elegant themes set here (was 560)
                    truncate_post( 960, false )

Leave a comment