Replace Categories Text on Detail Page

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

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

Open Support Ticket
  • Author
    Posts
  • #51940

    Dylan
    Expired Member
    Post count: 40

    Hi,

    I am using the following code to try to remove the categories (geodir_post_taxomomies) from the details page. I then want to replace it with my own function, so that the Category: label is not shown (only the category links themselves are).
    I found an example of this here https://wpgeodirectory.com/support/topic/change-title-text-for-category-links-on-detail-page/#post-19133

    Shouldn’t this code remove it?

    remove_action( 'geodir_details_main_content' , 'geodir_action_details_taxonomies', 30 );

    I also tried this from the post I linked to above, and it did not work either:

    remove_action('geodir_details_main_content' , 'geodir_details_taxonomies', 10 );

    Thanks.

    #51965

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    Yes there was a small mistake in that code, probably due to achange in an old version.

    This removes the categories:

    remove_action('geodir_details_main_content', 'geodir_action_details_taxonomies', 40);

    I’ve corrected the code here too: https://wpgeodirectory.com/support/topic/change-title-text-for-category-links-on-detail-page/#post-51963

    Thanks

    #52200

    Dylan
    Expired Member
    Post count: 40

    That solved it. Thanks!

    #52275

    Paolo
    Site Admin
    Post count: 31211

    You are welcome! 🙂

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