Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2844277
Links are not displayed in grid layout on homeage
Closed

Comments

  • Sovietovic started the conversation

    Hi,

    I recently started to use my page and after a while I realised that URL links are not displayed on homepage in Grid view for some reason. They do display fine on clicking "Read More" in this page. Please check the page where it is clearly visible. 

    Is there an option how to make URLs work fine on homepage?
    Thanks
    Jaroslav

  •  2,492
    PenciDesign replied

    Hi,

    I've checked your site. All the URL link is clickable and working fine.

    Please try to open your site on the incognito/private then check again.

    If the problem is still available on your device, please send me a screenshot and take note of it.

    Regards,
    PenciDesign.


  • Sovietovic replied

    Hi,
    The links I'm speaking about are on homepage (attachment links1). They do not display at all. It is just blank text.
    However once you click on the post they are displayed there (attachment links2).

    Any ideas why this happens? 
    Thanks

  •  2,492
    PenciDesign replied

    Hi,

    By default, WordPress will strip all the HTML tags of the content display of the position you mention about.

    If you want to display as HTML Format content, please install the Code Snippet plugin, then create a new snippet with the following content:

    add_filter( 'get_the_excerpt', 'sovietovic_penci_post_content_html', 10, 2 );
    function sovietovic_penci_post_content_html($excerpt, $post){
        $limit = 20;
        $excerpt = get_the_content('', true, $post->ID);
        $more = '…';
        $excerpt = explode( ' ', $excerpt, ( $limit + 1 ) );
        if( count( $excerpt ) > $limit )
        array_pop( $excerpt );
        return implode( ' ', $excerpt ) . $more;
    }
    The code above will display a maximum of 20 words, you can change 20 by the number of words you want to display.

    Regards,
    PenciDesign.


  • Sovietovic replied

    Thanks PenciDesign,

    That worked nicely