Client Logo In Listings View
This topic contains 12 replies, has 4 voices, and was last updated by Giri 8 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: Logo Upload Custom Field
-
AuthorPosts
-
February 15, 2017 at 7:47 pm #361835
I have added a file upload custom field to one of my CPT’s for customers to upload their Logo’s to listings. So far I have managed to achieve my initial layout, ie, removing the general photos/images from listings pages altogether by using the following custom code:
.geodir_category_list_view li.geodir-gridview .geodir-post-img { display: none; }
I now just have the custom logo which is what I wanted.
How can I have it so the logo is clickable to the listings landing page? Is there any way of anchoring each logo to its respective listings page? At the moment it just opens the logo/image in a lightbox!
ThanksFebruary 16, 2017 at 7:25 am #361930Hi David,
Sorry, I’m not sure if I’m getting this. Since the logo is in the listing page, you want the logo to link back to the listing page? Or to a custom URL that is specified by customer? Please clarify.
Thanks!
February 16, 2017 at 9:17 am #361967Sorry, I wasn’t very clear with you there.
I meant the actual listings page (set to grid view). Right now I have just the Logo appearing + default ratings, and no default images (removed with the custom code).
I’d like for the logo, once clicked to take the user to the details (landing) page. But it opens up a lightbox currently of the logo image.. I’ve uploaded a screenshot for clarity.
Hope that makes sense!
Thanks.
February 16, 2017 at 5:14 pm #362060Hi David,
Thanks for your reply. Sorry, I’m not really sure why are you doing this. Your clients should be able to insert a featured image on the listings and you don’t really need to create a custom field to replace the featured image. Do you have a reason for this? I’m just curious, though. Furthermore, achieving what you needed there would require customization to link the custom field to the listings itself.
thanks!
February 16, 2017 at 10:56 pm #362130If I use a featured image. Then it cannot be displayed on the sidebar of the landing page. Currently I have the logo image at the top of the sidebar, above the social links using the below code in functions.php;
function gd_custom_change_sidebar_content_order() { return array( 'geodir_detail_page_more_info', 'geodir_detail_page_review_rating', 'geodir_social_sharing_buttons', 'geodir_share_this_button', 'geodir_detail_page_google_analytics', 'geodir_edit_post_link' ); } add_filter('geodir_detail_page_sidebar_content', 'gd_custom_change_sidebar_content_order');
If I use a featured image, then I am asking customers to upload their logo twice effectively. One to be the ‘featured’ image, and the other for the Logo.
The other problem is images by default on the landing page are quite large and appear in a slider – which will be useful for application screenshots (I’m building an App comparison site). I want to display the logo on the sidebar and the listings page – separate to the slider images.
It doesn’t matter now; I will just hack the code to make it link to the landing page.
February 17, 2017 at 9:41 am #362203Hi David,
Thanks for your reply and I’m sorry for not able to help much here. Well, let us know if you need anything else.
Thanks!
February 17, 2017 at 1:36 pm #362245No probs. Will let you know how I get on and share the code.
March 3, 2017 at 9:46 pm #365226I would be very interested in this code as well!
Thanks.
March 6, 2017 at 11:00 am #365572Hi David and JustMark.
Refer this thread. I have provided some code there for such feature few months back.
https://wpgeodirectory.com/support/topic/archive-image/
Let me know if you need any help.
Thanks
March 6, 2017 at 1:49 pm #365638I will give this a shot. Thanks Giri!
March 6, 2017 at 5:02 pm #365673Thanks for this. I’m still crunching away at my workaround. This helps tremendously. Will share my results once working/testing!
March 6, 2017 at 5:30 pm #365682Looking forward to it David!
March 7, 2017 at 8:47 am #365850Sure David.
Let me know when you need assistance.
Thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket