Skip to:
Content
Pages
Categories
Search
Top
Bottom

Still trying to hide tabs


  • Mark
    Participant

    @markhahnel

    Hi,

    I’ve been wanting to hide tabs on my wiki page for ages now. http://www.science2point0.com/wiki – particularly the dicussion and links tab, which are plugins, they do not have an id to add to display none in css. What should I be putting?

    li.links {display:none} ? Doesnt work.

Viewing 5 replies - 1 through 5 (of 5 total)

  • Boone Gorges
    Keymaster

    @boonebgorges

    Search the plugin files for something that looks like:
    add_action( 'bp_nav_items' .....
    ‘bp_nav_items’ being the operative code here.

    If you find something, let’s say
    add_action( 'bp_nav_items', 'add_discussion_tab_function' );
    copy that line, change ‘add_action’ to ‘remove_action’, and put it in the functions.php file of your theme. That should make sure that the tabs don’t appear.


    Mark
    Participant

    @markhahnel

    Thanks Boone, I’ll get looking


    Mark
    Participant

    @markhahnel

    I tried this:

    remove_action( ‘bp_nav_items’, ‘bp_links_dtheme_header_nav_setup’);

    didnt work, is there any wrapping I should do for the functions?


    Mark
    Participant

    @markhahnel

    Got it! Cheers Boone.


    Boone Gorges
    Keymaster

    @boonebgorges

    Try commenting out the add_action line in the plugin itself to make sure that it’s the code that is actually causing the problem. If not, then that’s why remove_action doesn’t work.

    Otherwise, no, you shouldn’t need to wrap the remove_action in anything.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Still trying to hide tabs’ is closed to new replies.
Skip to toolbar