Any way to remove pinpoint and review stars but for a particular CPT
This topic contains 9 replies, has 2 voices, and was last updated by Guust 9 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
January 7, 2017 at 7:26 pm #338560
https://wpgeodirectory.com/support/topic/how-can-i-remove-reviews-and-pinpoint-from-listings/
This thread gave me code to get rid of it altogether but I would prefer to only get rid them when searching for a particular CPT
January 7, 2017 at 7:27 pm #338561This reply has been marked as private.January 8, 2017 at 1:12 am #338631Can you be more specific?
Where do you want to remove what?
So you only want the favorite icon and review icons removed from the search result page, but not from the Listings or Detail pages?January 8, 2017 at 1:18 am #338634I have two membership types, buyers and sellers. The sellers can list their business listing and the buyers can post a proposal to get quotes. The business listings can have reviews and the favorite and pinpoint things but I don’t want reviews for the project proposals. I have removed the reviews tab from the details section for the project proposals. Now I just need to remove the pinpoint, stars and favorite icons from the listing page based for the project proposals as well. I also have a “completed systems” CPT which is essentially the same as the project proposals, doesn’t need to be reviewed.
January 8, 2017 at 4:50 am #338655I cannot see favorites or review links on the listings page for /project-proposal/
I guess you fixed it already?Please provide URLs if there is still anything to be looked at. Thanks
January 8, 2017 at 4:59 am #338661I just did the fix for all categories for now. I still need to set it so that it only shows the pinpoint and such for gd_solar_installer. I just have the code in my child theme’s functions and I put the login above. To reiterate I used the code in the very first link posted to remove them from all CPT’s.
January 8, 2017 at 5:09 am #338663You said “I have removed the reviews tab from the details section for the project proposals” so I assumed that was only for that CPT.
I’ll have a look now then.January 8, 2017 at 5:33 am #338667How’s that?
Just de-activated the PHP code and added some CSS at GD > Design > Scripts.January 8, 2017 at 4:05 pm #338945Are you referring to this? .single-gd_project_proposal dl.geodir-tab-head [data-tab=”#reviews”] {
display:none;
}So this gets rid of the reviews tab on project proposals in a more efficient way? Can this be extended to all CPT’s except for Solar_Installers?
Also, the code which I have in my child theme’s stylesheet is as follows (it gets rid of pinpoint etc for all cpt’s), only thing is that – like the reviews tab – I still want this to display for Solar Installers, just not any other CPT at this time, is that possible?
.geodir_rating {
display:none;
}
.geodir-pinpoint-link {
display:none;
}
.geodir-pinpoint {
display: none !important;
}
.geodir-pcomments {
display:none !important;
}
.geodir-rating .geodir_Star img {
display:none !important;
}
.geodir-addtofav {
display:none !important;
}Thanks for your help!
January 8, 2017 at 10:29 pm #339142Look at the body classes of a detail page, you will find a CPT specific CSS class.
In this case it is .single-gd_project_proposal
So by changing that to .single-gd_place etc, you can target different CPT detail pages.You need to target the other things the same way, for example
.gd-post-gd_place .geodir-rating { display:none; }hides only the stars for gd_place listings.
This will help you pinpoint the classes and code: .
https://wpgeodirectory.com/docs/customizing-your-style/ -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket