Supreme Directory Remove Map Sidebar Non-Location CPT

This topic contains 3 replies, has 2 voices, and was last updated by  Paolo 7 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #354893

    ginblue
    Expired Member
    Post count: 15

    Need some help with Supreme Directory non-location cpt.

    I have a cpt with no geographical location, have disabled the map for these posts (as per your instructions) but this does not remove the sidebar section from the listings page which now just shows as a grey space.

    Not sure how to filter non-location cpt’s in order to remove the vacant side bar, without losing it for
    cpt with locations.

    Thanks Anthony

    #354924

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    Please provide a link of the CPT archive where you want the map removed.

    Thanks

    #355108

    ginblue
    Expired Member
    Post count: 15

    Hi Paolo,

    unfortunately I’m on a local development environment. Also as the site develops there will be other cpt’s that are without location, so knowing how to fix this myself is important.

    I quite happy to dig around in the code. and have located the actions and function that display the map and sidebar on the listings page in the theme comparability file, but am unsure how to reference a particular cpt to filter it.

    One idea I had was to create a seperate listings template without the map but that seems a somewhat inelegant solution.

    Thanks, Anthony

    #355109

    Paolo
    Site Admin
    Post count: 31206

    I would definitely do that via CSS, not php…

    Please see: https://wpgeodirectory.com/support/topic/right-side-performer-page/

    You’ll need to edit the CSS with the correct CPT name.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 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