Listings only shows short excerpt – can this be increased?

This topic contains 19 replies, has 3 voices, and was last updated by  Richard Holm 5 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #480546

    Richard Holm
    Expired Member
    Post count: 32

    Sorry if this is in the wrong place…
    I’ve finally converted to version 2 and my listings now show a very short excerpt before the ‘Read More’ tag….
    I seem to remember that under Design, there used to be a section to set some options for the listings – but its gone now…
    Also checked under Listing/Settings, but nothing there either.
    Is there a way that I can increase the number of words or characters using CSS?
    I’ve been searching the forums for hours and only find some references to changing the php which I’m not really able to do – scared to blow up the whole site…
    Any help would be appreciated.
    Site is ronniesproperties.com

    #480561

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!
    There is a new design element called PD Post Content.
    You can use that in your Archive item template to control textarea output.
    Give it a try and let us know how it goes

    #480570

    Richard Holm
    Expired Member
    Post count: 32

    Is this something I can change in CSS?
    or where do I find it?

    #480578

    Guust
    Moderator
    Post count: 29970

    Replace this in the GD Archive template:

    [gd_post_meta key="post_content"]

    with

    [gd_post_content key="post_content" limit="10"]

    You’ll find more options in the widget or shortcode builder or block:
    https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_post_content

    Thanks

    #480634

    Richard Holm
    Expired Member
    Post count: 32

    Hi Support, thanks for the info – but I have no idea where I would change this.
    Can you point me in the right direction?
    Where do I find the GD Archive template?

    I’m using the GD > Listings widget and hopefully this change will add a field for number of words… (which seems that it would be useful to everyone, not as a custom change).

    Thanks – this looks like it will take care of the issue on all of my GD websites if I can figure out how to change it.
    Richard

    #480678

    Guust
    Moderator
    Post count: 29970

    Where do I find the GD Archive template?

    GD > Settings > Pages
    https://wpgeodirectory.com/docs-v2/geodirectory/page-design/

    It is not a custom change, it is part of how you design the layouts unless you are happy with all the default settings.

    Thanks

    #480682

    Richard Holm
    Expired Member
    Post count: 32

    Thanks! Just needed to get pointed….

    I changed as suggested, and found that if I put the limit=”0″ the entire description is there…
    I set the limit to “50” and it displays the text including the ‘read more’.
    I changed it back to “0” and it displays the full text.

    Only problem is that the description duplicates in the area just below with about 40 words, the gray shading and then has the ‘read more’.

    In both cases, if you click on the ‘read more’ – it navigates to an error message.

    Warning: include(/home/caribbe0/public_html/sanjuangayguide.com/wp-content/plugins/geodirectory/templates/ ): failed to open stream: No such file or directory in /home/caribbe0/public_html/sanjuangayguide.com/wp-includes/template-loader.php on line 77

    Warning: include(): Failed opening ‘/home/caribbe0/public_html/sanjuangayguide.com/wp-content/plugins/geodirectory/templates/ ‘ for inclusion (include_path=’.:/usr/local/php71/pear’) in /home/caribbe0/public_html/sanjuangayguide.com/wp-includes/template-loader.php on line 77

    Two questions:
    1. How do I resolve the error message.
    2. How do I eliminate the duplication (see screen shot example with limit=”0″)

    Thanks!
    Richard

    #480688

    Guust
    Moderator
    Post count: 29970

    Please post your URL and WP admin details in a private reply so we can review your settings. Thanks

    #480690

    Richard Holm
    Expired Member
    Post count: 32
    This reply has been marked as private.
    #480779

    Guust
    Moderator
    Post count: 29970

    You had the description shortcode twice in your GD Archive Item template.
    I deleted one of them.

    Your theme is breaking the Detail pages. You can see it when changing to a simple theme like twentyseventeen.

    Thanks

    #480780

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #480809

    Richard Holm
    Expired Member
    Post count: 32

    Thanks! I’ll take a look at the design elements – looks like they will make design much easier… I had taken a break from GD for a while to try other directory providers – but with version 2 GD is now the easiest to use so I’m back with you guys.

    Thanks for the heads-up on the theme problem. This is a very old theme which is not used on my other sites, so I’ll upgrade and resolve that issue.

    Thanks for the great support!

    Richard

    #480814

    Guust
    Moderator
    Post count: 29970

    You’re welcome 🙂

    #480824

    Richard Holm
    Expired Member
    Post count: 32

    Changed my theme and working fine now…
    But one last question…

    Is there anyway to get rid of that grey transition before the ‘read more’?

    I tried playing around with css but suspect it may be in the design controls somewhere….

    Thanks!
    Richard

    #480835

    Guust
    Moderator
    Post count: 29970

    Try this CSS:

    body ul.geodir-category-list-view li .gd-list-item-right .geodir-field-post_content .gd-read-more-fade, body ul.geodir-category-list-view li .gd-list-item-right .geodir-post-content-container .gd-read-more-fade {
    	background-image: initial;}
    }
Viewing 15 posts - 1 through 15 (of 20 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount