how to limit the length of description

This topic contains 6 replies, has 2 voices, and was last updated by  siparker 9 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #45616

    siparker
    Buyer
    Post count: 114

    i have the directory installed and integration with the theme done.

    All of the listings show the full description both in the normal listing page and also in the sidebars.

    is there an option to change this or do i need to do it manually?

    I want to limit the amount of description shown and have a read more button ideally.

    thanks

    #45617

    siparker
    Buyer
    Post count: 114

    hmm never mind

    i checked the widgets again and apparently if i change to 2 grid view and then back to list view then it does take the character length into account

    must have been need to save the widgets and then reload them or something

    #45619

    siparker
    Buyer
    Post count: 114

    ok now im confused lol

    so i can see there seem to be about 5 different possible pages and im unsure which one im looking at.

    homepage i get. i can now edit that and the edits seem to take and hold

    if i click to a category / filter then i dotn seem to ahve the same facility to edit the layouts.

    how do i control the listing style on the search results and category pages?

    #45629

    siparker
    Buyer
    Post count: 114

    ok having read the docs https://wpgeodirectory.com/docs/layout/ i can see now that the listing page deals with both listings and also any category / filter pages

    This is the template that will display a list of all listings in a particular category or custom post type, and will show different listings depending on location and category requested.

    Examples:

    yoursite.com/attractions will show all listed attractions
    yoursite.com/hotels/finland will show all listed hotels in Finland

    so why when i have the settings like this http://i.imgur.com/rm7A9bj.png

    does my page show like this http://www.psi9.com/directory/places/attractions/

    the homepage works fine and i was able to modify the listing layout successfully from the widgets in the homepage content section there. there isnt however any listings content section in the widgets areas to be able to do the same and the settings within the design > listing section dont seem to change anything?

    #45642

    siparker
    Buyer
    Post count: 114

    fyi it does work in twenty fifteen so asking industrial themes for assistance as well but anythign you cxan do to help would be appreciated

    #45644

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    if it works with 2015 and not with this other theme it is definitely due to a theme fuctions hooking into the excerpt filter and taking over GD settings.

    Let us know what they tell you,

    Thanks

    #46038

    siparker
    Buyer
    Post count: 114

    Hi

    reply from Industrial themes was

    We can try looking at the excerpt hook and see if that’s what’s causing it. Look at framework.php lines 262 and 263. You can try excluding those lines by commenting them out like so:

    #remove_filter(‘get_the_excerpt’, ‘wp_trim_excerpt’);
    #add_filter(‘get_the_excerpt’, ‘it_excerpt_adjust’);

    I ahve tried this and it does seem to work at the moment will be testign to make sure all features work now.

Viewing 7 posts - 1 through 7 (of 7 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