Remove Detail Link and Image for Free Package

This topic contains 5 replies, has 3 voices, and was last updated by  Stiofan O’Connor 7 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #414060

    jahusdtc
    Expired Member
    Post count: 162

    Okay, here’s our situation.

    And yes, GeoDirectory has SCADS of possibilities…amazing…but we can’t find this one particular possibility. Perhaps you might be able to help us with it.

    Scenario:

    A free package will be a package that ONLY shows on the Listing page. Therefore, we need to remove the details page link from free package “customers.” They won’t GET access to the Details page.

    A free package also won’t have images. I know I can put in NO image, which gives me a white square with a faint border. Or a default image.

    However, we would like to remove that image entirely (which may make grid look odd, but…that’s the current requirement for a free package.)

    Can you tell me where the link and the image might be so I can remove them?

    I can use CSS to remove ALL images on the listing page, but that won’t be conditional…and would make the loading slower than simply removing the image itself.

    Thanks in advance for pointing us in the right direction!

    #414061

    jahusdtc
    Expired Member
    Post count: 162

    Sorry, forgot to mention…we’re currently using Supreme Theme. (Rhymes…)

    #414087

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can try to customize that with a snippet and css.

    Use the snippet for adding package-id

    https://wpgeodirectory.com/docs/common-code-snippets/#package

    Then customize your CSS to do what you want in listings or in the detail page based on the package ID attribute.

    Read here about snippets and CSS near the bottom:

    https://wpgeodirectory.com/docs/customizing-your-style/

    If you customize, do consider how you will manage testing for and deploying updates:

    https://wpgeodirectory.com/docs/installing-addons/#updates
    http://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

    Thanks for writing in

    Alex
    Hire GD Experts to implement your customization or manage your updates at https://geodirectoryexperts.com

    #414188

    jahusdtc
    Expired Member
    Post count: 162

    Thanks, Alex!

    I used CSS to remove the link on a picture and on the title.

    Solution:
    li.geodir-listview.gd-post-gd_place.geodir-listview div.geodir-post-img a {pointer-events: none; }
    li.geodir-listview.gd-post-gd_place.geodir-listview h3.geodir-entry-title{pointer-events: none;}

    Decided (probably for same reason you left the big white square for the image yourselves — what with the various grid formatting possibilities in the dropdown) NOT to remove the image entirely.

    However, can you tell me what code file would contain the image if I still want to play with it outside of CSS. If I use CSS to display:none an image…the image still has to load, right?

    Currently, I am using your Supreme theme. I have placed my CSS stylesheet within supreme-directory > geodirectory.

    Do I understand correctly that if supreme-directory is updated, this stylesheet is SAFE?

    Also…if I want to alter something within the supreme-directory > inc directory…how would I include that properly within the supreme-directory > geodirectory (Safe?) folder.

    Would I create another inc directory and just copy php file in there?

    Am used to a traditional child theme that does NOT get updated, so would appreciate your coaching on this unusual situation.

    Thanks!

    #414237

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #414251

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This goes above support, but think @guust did something similar for a customer in the past as some outside work https://geodirectoryexperts.com/experts/australia/queensland/samford-village/back-end/guust-flater/

    For the theme changes, i would recommend using the customizer extra css option and using the “code snippets” plugin for code changes.

    Thanks,

    Stiofan

Viewing 6 posts - 1 through 6 (of 6 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount