Listings Detail Page

This topic contains 9 replies, has 2 voices, and was last updated by  Kor 6 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #380857

    Caroline Baxter
    Expired Member
    Post count: 68

    Hello,

    What is the best size for the images in slider on Details page? I don’t want those white spaces above and on the left and right of the images https://www.autocarenetwork.co.uk/newdemo/places/united-kingdom/west-sussex/worthing/fast-fit/rapid-auto-center/. Can we also control its height as well?

    Also in the right sidebar can we have the actual URL of the website instead of just the word “website” with a link?

    One more thing, is there a way we can remove the “Favorites” box in the sidebar – second section as we go down top to bottom.

    Thanks

    #380895

    Kor
    Moderator
    Post count: 16516

    Hi Caroline,

    There isn’t fixed size for the slider, unfortunately. But you can use the custom CSS code below to force the image to fill the entire container. Insert into GD > Design > Scripts > Custom Style CSS.

    
    
    .geodir_flexslider .geodir-slides img {
        object-fit: cover!important;
        width: 100%!important;
    }

    Refer to this section of the documentation https://wpgeodirectory.com/docs/core-design/#detail to remove the “Favourite”

    #380931

    Caroline Baxter
    Expired Member
    Post count: 68

    Hi Kor,

    That makes sense, thanks for helping and supplying that bit of CSS.

    Can you pls help us with how to make the actual website URL visible instead of only the word “Website”?

    Thanks

    #380951

    Kor
    Moderator
    Post count: 16516

    Hi Caroline,

    Thanks for your reply and I hope it helps. What do you mean by “how to make the actual website URL visible instead of only the word “Website”?” ? Could you probably show us some screenshots?

    Thanks!

    #381026

    Caroline Baxter
    Expired Member
    Post count: 68

    Hi Kor,

    You’re welcome.

    If you take a look at the sidebar on this page https://www.autocarenetwork.co.uk/newdemo/places/united-kingdom/west-sussex/worthing/fast-fit/rapid-auto-center/ you will see the word “Website” which is a link. We want to show the full website URL here instead of only the word “Website”. I hope that makes sense.

    Thanks

    #381073

    Kor
    Moderator
    Post count: 16516

    Hi Caroline,

    To display the URL on the Website link. Please insert the PHP code below into the code snippet plugin

    
    
    add_filter('geodir_custom_field_website_name', 'modify_geodir_custom_field_website_name', 10, 2);
    function modify_geodir_custom_field_website_name($title, $website) { 
    if ($title == 'Website') {
      return $website; 
    }  
    return $title;
    }
    #381197

    Caroline Baxter
    Expired Member
    Post count: 68

    Hi Kor,

    Thanks for giving that piece of code, we will try that.

    One last thing, probably we are all set after that. On the listings detail page, we would like the “Book Now” form to aligned bottom to bottom with the map, but there is an issue: we have a “Services” and “Facilities” section in the sidebar above the form, the services section can have different number of services and the facilities section can either be present or absent for a particular listing – this affects the height of the sidebar and hence the alignment of the form under it against the map to the left of the form. For example, take a look at this page https://www.autocarenetwork.co.uk/newdemo/places/united-kingdom/west-sussex/worthing/fast-fit/rapid-auto-center/ where the form is aligned with the map. Now, take a look at this page https://www.autocarenetwork.co.uk/newdemo/places/united-kingdom/the-city-of-brighton-and-hove/brighton/dent-smart-repairs/brighton-tyres-and-exhausts/ where there is no “Facilities” section (ignore “Services” we will be adding those later to this page) and you can see the form under the sidebar is no longer aligned with the map on the left. Can you please suggest a solution for this?

    Thanks in advance

    #381280

    Kor
    Moderator
    Post count: 16516

    Hi Caroline,

    I’ve taken a look at your Website and I know what you needed there. Could you try assigning a fixed height to the listing sidebar details using the custom CSS code below and see if it’s what you’re looking for?

    
    
    .geodir-company_info.geodir-details-sidebar-listing-info {
        min-height: 600px!important;
    }

    Thanks!

    #381997

    Caroline Baxter
    Expired Member
    Post count: 68

    Hi Kor, this has almost solved the issue. One more thing please and probably the last one on this page: can we have the “Address” and “Services” start on new lines as the “Features”? Please see attached screenshot. Thanks

    #382141

    Kor
    Moderator
    Post count: 16516

    Hi Caroline,

    Here you go. Let me know how it goes.

    
    
    span.geodir-i-location {
        display: block!important;
    }
    
    span.geodir-i-text {
        display: block!important;
    }
Viewing 10 posts - 1 through 10 (of 10 total)

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

Open Support Ticket