Supreme Directory Tags

This topic contains 7 replies, has 2 voices, and was last updated by  Giri 6 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #394126

    Michael Sena
    Buyer
    Post count: 72

    Hello,

    Giri provided me with hooks to show Tags in the Supreme Directory template. The hook he provided to make them appear in the top section instead of the sidebar is working fine. However, the code he provided to stop Tags from appearing in the sidebar doesn’t seem to be working.

    remove_action('geodir_before_detail_page_more_info','sd_tags_content');

    I applied these hooks in /inc/geodirectory-compatibility.php

    Some help to stop Tags from appearing in the sidebar would be appreciated! You can refer to thread #369223 for more details.

    Thanks!
    Mike

    Geodirectory 1.6.23 / Supreme 1.1.6 / WP 4.8.1

    #394127

    Michael Sena
    Buyer
    Post count: 72
    This reply has been marked as private.
    #394181

    Giri
    Expired Member
    Post count: 3155

    Hi Michael,

    Can you tell me where you have placed that remove_action code? I couldn’t find that in your code snippets

    #394290

    Michael Sena
    Buyer
    Post count: 72

    Hey Giri,

    I placed the remove_action code in supreme-directory/inc/geodirectory-compatibility.php, right above the add_action code you provided. The add_action code worked fine. I attached my file, you’ll find the code from LI 32 to LI 39.

    Originally I tried adding both codes using my Code Snippets plugin, but nothing happened…so I deleted that snippet and added the codes directly in supreme-directory/inc/geodirectory-compatibility.php.

    I also tried adding the remove_action code to supreme-directory/functions.php. No change

    Thanks for helping me with this!
    Mike

    #394291

    Michael Sena
    Buyer
    Post count: 72

    Ok so I can’t upload the file. Here’s the code I added to supreme-directory/inc/geodirectory-compatibility.php in LI 32 to LI 39:

    
    
    /*
     * remove tags from sidebar.
     */
    remove_action('geodir_before_detail_page_more_info','sd_tags_content');
    
    /*
     * Add Tags to top section.
     */
    add_action('sd_detail_before_cat_links','sd_tags_content');
    
    #394348

    Giri
    Expired Member
    Post count: 3155
    This reply has been marked as private.
    #394406

    Michael Sena
    Buyer
    Post count: 72

    That’s excellent…thanks Giri!

    #394472

    Giri
    Expired Member
    Post count: 3155

    You are welcome.

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

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

Open Support Ticket