Remove Tabs Menu mobile

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

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

Open Support Ticket
  • Author
    Posts
  • #116178

    mb
    Buyer
    Post count: 151

    Hi,

    I need a direction which file to look in for the mobile tabs menu as I want completely to remove its code.

    Thanks.

    #116424

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    that code can’t be removed directly from the plugin files unless you are ok removing it after every update.

    The only way to proceed would be:

    1st remove tabs completely with this in functions.php:

    remove_action('geodir_details_main_content', 'geodir_show_detail_page_tabs', 60);

    Copy function geodir_show_detail_page_tabs from custom_functions.php file line 1381 to 1692

    Paste it in your functions.php file and rename it function my my_geodir_show_detail_page_tabs

    Delete or comment out the code for mobile tabs menu:

    
    
    <div id="geodir-tab-mobile-menu" >
                <i class="fa fa-bars"></i>
                <span class="geodir-mobile-active-tab"><?php echo $active_tab_name;?></span>
                <i class="fa fa-sort-desc"></i>
            </div>

    Add back your new function with altered code.

    add_action('geodir_details_main_content', 'my_geodir_show_detail_page_tabs', 60);

    Thanks

    #116828

    mb
    Buyer
    Post count: 151

    Hi Paolo,

    Thanks for pointing me out!

    I have tried it and it broke the site. Tried to remove the comments, looking for a sign that breaks the code but couldn’t identify anything. I will look at it later, and now just changed in the theme file to continue the work.

    With your help, I am getting more and more used to the plugin and how it is build.

    Thanks again.

    #117054

    Paolo
    Site Admin
    Post count: 31206

    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