How to position a new badge under the title
This topic contains 10 replies, has 3 voices, and was last updated by Vicky Thorton 5 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: badge, badge under the title, GeoDirectory V2
-
AuthorPosts
-
June 26, 2019 at 12:20 pm #494927
Hello team GD
I created a badge according to the instructions with the GD_post_badge widget and shortcode but i cannot get it under the title.
Only on the right corner as you can see in the attachment.
How can i position the badge under the title?
Should i set it inline like the rest of the badge (i.e facebook,twitter,link..)
Also,can i add an image to a badge instead of fontawesome?
ThanksJune 26, 2019 at 1:26 pm #494936It is not possible to add anything in to the header/featured area at the very top without opening the page templates.
But, I think you are wanting to add the badge into the GD Detail template, yes, at the top?
And using the GeoDirectory Single template on the GD Details template?
If you want to customize it without writing PHP you should use the GeoDirectory template instead, so you can make the header detail info area exactly how you want. Have you tried that?
https://wpgeodirectory.com/docs-v2/themes/supreme/June 27, 2019 at 1:13 pm #495175This is what i’m trying to achieve (screenshot)
I would like to place my own bagde-custom field below the title.
Yes i’m using the GD details page. I have tried all pages attributes but with no success.
Are you referring to ”CSS for the GeoDirectory Single Page template Detail Info Header Section” of the link you posted? Because it only gives examples of how to hide something from details info.
I followed this https://wpgeodirectory.com/docs-v2/geodirectory/featured-listings/ to achieve my goal but i don’t want it to be ”featured” or for a certain time i.e ”new” for 30 daysJune 29, 2019 at 3:41 am #495387The Supreme GeoDirectory Single is a template created in PHP. It can be edited with hooks and filters. Open it up and you can see those. We do not recommend editing the file directly because changes will be overwritten on update.
If you are not a developer then you should use the GeoDirectory template instead so you can add or edit the entire page to meet your needs.
July 2, 2019 at 8:57 am #495849Hi Vicky,
If you want us to take a look on it. Please share site credentials and FTP details to move forward.
Thanks
July 3, 2019 at 10:53 am #496050Thanks Naveen i will.
Meanwhile, is there a mistake in this sentence? ” we will insert a “gd_post_badge” the settings have details explanations of what they do but the two main settings we want to set are:”
https://wpgeodirectory.com/docs-v2/geodirectory/featured-listings/#badge-setup
I cannot understand itJuly 3, 2019 at 11:22 am #496060Hi Vicky,
You have to add the gd_post_badge shortcode or block if using Gutenberg layout in Archive item page to show the badge.It will show the badge on archive listing page.
Please check the screenshot below.July 15, 2019 at 7:07 am #497641Hi @vicky9,
Just checking if you still need help for this ticket.
If yes, please share the requested details.July 15, 2019 at 4:46 pm #497779This reply has been marked as private.July 16, 2019 at 8:38 am #497903Hi Vicky,
You can use below code to add badge under the listing title.
you will have to replace the shortcode with your actual shortcodes.add_filter('sd_details_output_social_shortcode', 'gd_sd_details_output_social_shortcode_callback'); function gd_sd_details_output_social_shortcode_callback( $social_shortcodes ){ $social_shortcodes .= '[gd_post_badge key="for_sale" condition="is_not_empty" icon_class="fas fa-for_sale fa-fw" link="%%input%%" badge="%%input%%" new_window="1" badge="For Sale" bg_color="#ed6d61" txt_color="#ffffff" alignment="left"]'; $social_shortcodes .= '[gd_post_badge key="featured" condition="is_not_empty" icon_class="fas fa-featured fa-fw" link="%%input%%" badge="%%input%%" new_window="1" badge="Featured" bg_color="#ed6d61" txt_color="#ffffff" alignment="left"]'; return $social_shortcodes; }
If you not sure about where to add the code. you can use
https://wpgeodirectory.com/docs-v2/faq/customizing/#snippetsRegards
July 16, 2019 at 9:34 pm #498101Thanks a million!
I would never figured out myself-too advanced -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket