View more dropdown
This topic contains 16 replies, has 3 voices, and was last updated by Alex Rollin 7 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
October 4, 2018 at 10:39 am #448745
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.
October 4, 2018 at 10:56 am #448747Hi 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!
October 4, 2018 at 11:12 am #448749This reply has been marked as private.October 4, 2018 at 2:03 pm #448758Would
https://wordpress.org/plugins/wp-showhide/
Work for what I need in the category description section?
Thanks.
October 4, 2018 at 2:09 pm #448759Hello,
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/
October 4, 2018 at 3:44 pm #448765Thanks I will try it and let you know.
October 5, 2018 at 8:10 am #448817This reply has been marked as private.October 5, 2018 at 12:50 pm #448832Hi Amy,
Glad that you have sorted it out. Let us know if you need anything further.
October 5, 2018 at 2:15 pm #448837Thanks, 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
October 5, 2018 at 2:55 pm #448842It 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.
October 5, 2018 at 2:58 pm #448843[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.
October 5, 2018 at 3:01 pm #448844October 5, 2018 at 3:09 pm #448848Try 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
October 5, 2018 at 3:19 pm #448850Works 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?
October 5, 2018 at 4:58 pm #448871Spaces in shortcodes are a mixed bag. I will ask the developers if there is anything to be done about that.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket