non-variable tab or sub tab
This topic contains 7 replies, has 3 voices, and was last updated by Alex Rollin 5 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
April 7, 2020 at 2:02 pm #538938
Hi
Could you please let me know how I could add text or images as a non-variable (non user input) tab?
On a detail page, I would like to take user input and output this input(e.g., text and an audio file) to a tab and subtab but between these or at the beginning of the tabs I would like to put in my own text or image that is a constant on the particular tab of each detail page.
Thanks in advance for the help.
Best regards,
Victor CardonaApril 7, 2020 at 2:05 pm #538939Edit the GR Details template and add whatever you like.
Shortcodes will render field values but any other code you add will be the same on each Listing.
April 7, 2020 at 3:03 pm #538953Thanks, Alex.
I understand that I can edit the GD detail template at the appropriate page, but could I edit what appears in a particular tab so that if a user doesn’t add information that pertains to a particular tab then the tab won’t appear?
For example, at the below page, first tab (which is open), I would like to add some text above or below the audio file that has been uploaded by the user.
Thanks in advance.
Best regards,
VictorApril 7, 2020 at 3:17 pm #538956Hi Victor,
Thanks for your reply. Try using the custom CSS code below to display texts above the audio file.
.geodir-cf-file-mp3:before{ content:"This is a Music"; display:block; margin-bottom:10px; }
April 7, 2020 at 6:38 pm #538984Thanks, Kor.
I understand that if I use this CSS it would appear before each instance of an MP3 file. If I am not correct please let me know.
Is it possible to include the same text consistently in just one tab of a detail page as a subtab so it would be above or below field values added by a user? In the example at the below link, it would be above or below the audio file input by a user on this tab but not everywhere a MP3 file is utilized.
Separately, is there a way to avoid displaying an audio file name. On this page the audio file uploaded by a user is displayed for example and it would be great to hide it.
https://www.hearabouthere.com/historical/united-states/virginia/alexandria/civilwar/athenaeum-northern-virginia-fine-arts-association/Thanks for your help.
Best regards,
VictorApril 7, 2020 at 9:43 pm #539008Hello,
Placing items conditionally can be done with CSS or with he GD Dynamic Content or with Pricing Manager package settings. That’s a lot of tools. But, in order to use any of them, the conditions have to be clear and a match for the tool.
Why would the text show or not show?
If it is because of a field, the you can use GD Dynamic Content.
If it is because of logged in or out, you might use CSS.
If it is because of a paid or particular package then use the price packages.
GD Badges are also based on a field. Why not try that, for starts?
https://wpgeodirectory.com/docs-v2/design/gd-badge/
https://wpgeodirectory.com/docs-v2/design/gd_dynamic_content/
https://wpgeodirectory.com/docs-v2/places/packages/April 8, 2020 at 1:04 am #539060Thanks, Alex.
I will take a look at these tools.
I am looking to display additional text adjacent a user input field on a tab of a detail page whenever that tab of the detail page is displayed.
Appreciate the help.
Best regards,
VictorApril 9, 2020 at 7:34 am #539201None of the tools respond to tabs, exactly, but, they can work with fields, if a field is filled or empty or a particular value.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket