View more dropdown

This topic contains 16 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #448745

    Amy Fox
    Expired Member
    Post count: 419

    Hi, I’ve tried looking through google yet I can’t find an answer.

    What I want is to disable the use default description text on categories and use my own per location, I was wanting to know if it’s possible to add a ‘view more’ button half way down so people can ‘view more’ and then ‘view less’.

    It would be really helpful as some locations might get lots of text.

    Thanks.

    #448747

    Kor
    Moderator
    Post count: 16516

    Hi Amy Fox,

    Thanks for your post. Could you elaborate a little bit more? Perhaps you can share some screenshots that explain more about this?

    Thanks!

    #448749

    Amy Fox
    Expired Member
    Post count: 419
    This reply has been marked as private.
    #448758

    Amy Fox
    Expired Member
    Post count: 419

    Would

    https://wordpress.org/plugins/wp-showhide/

    Work for what I need in the category description section?

    Thanks.

    #448759

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    GeoDirectory plugin and our themes don’t have a feature like that, but you are certainly welcome to try out 3rd party plugins.

    If you need hands on help with that you can contact an expert here: https://geodirectoryexperts.com/

    #448765

    Amy Fox
    Expired Member
    Post count: 419

    Thanks I will try it and let you know.

    #448817

    Amy Fox
    Expired Member
    Post count: 419
    This reply has been marked as private.
    #448832

    Kor
    Moderator
    Post count: 16516

    Hi Amy,

    Glad that you have sorted it out. Let us know if you need anything further.

    #448837

    Amy Fox
    Expired Member
    Post count: 419

    Thanks, it works on category description but not on location page text.

    So it works on some areas of GD but not others, shame but at least it works on part of it.

    Thanks again

    #448842

    Alex Rollin
    Moderator
    Post count: 27815

    It uses a shortcode? Which field are you trying to use it in?

    A link to the edit page so we could see it in situ would help and admin credentials if needed.

    #448843

    Amy Fox
    Expired Member
    Post count: 419

    [showhide type=”post” more_text=”View More…” less_text=”View Less…”]

    Then insert text here that you want to hide followed by

    [/showhide]

    It works great on category pages but not on location page text.

    Thanks.

    #448844

    Amy Fox
    Expired Member
    Post count: 419

    Works great here but not here.

    But I have noticed that on the cat description pages i dont need to use <p>…</p> to have the text leave space but on the location page descriptions you do.

    #448848

    Alex Rollin
    Moderator
    Post count: 27815

    Try adding this snippet to your site:

    
    
    
    add_filter('geodir_location_description', 'do_shortcode',10,1);
    

    That will enable shortcodes in the location description field.

    How to: https://wpgeodirectory.com/docs/useful-plugins/#snippets

    #448850

    Amy Fox
    Expired Member
    Post count: 419

    Works but I had to change the text to

    [showhide type=”post” more_text=”ViewMore…” less_text=”ViewLess…”]

    from

    [showhide type=”post” more_text=”View More…” less_text=”View Less…”]

    I had to remove the spaces from View More… View Less… to ViewMore… ViewLess as it seems to not like spaces, plus it show the ” now also where it does not on the cat description section.

    It’s great though and it does not look out of place i think?

    #448871

    Alex Rollin
    Moderator
    Post count: 27815

    Spaces in shortcodes are a mixed bag. I will ask the developers if there is anything to be done about that.

Viewing 15 posts - 1 through 15 (of 17 total)

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

Open Support Ticket