Skip to:
Content
Pages
Categories
Search
Top
Bottom

create new create group tab

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

  • austrialandscapes
    Participant

    @austrialandscapes

    somehow it didn’t take the url of the screenshot! here it is again: https://ibb.co/rfQ6W1b


    Venutius
    Moderator

    @venutius

    Which buddypress_functions.php file are you talking about? I’d have thought you’d put it in your themes functions.php file or a bp-custom.php file located in the plugins directory.

    Also I’d load it in the action hook ‘bp_setup_nav’, not ‘wp’.


    austrialandscapes
    Participant

    @austrialandscapes

    Hi Venutius, thank you for your reply! I meant the file, inside the buddypress files directory (screenshot: https://ibb.co/bgFfSgr).
    About you’re saying:

    Also I’d load it in the action hook ‘bp_setup_nav’, not ‘wp’.

    Did you mean changing the line
    add_action( 'wp', 'groups_subnav_hook', 2 );
    to
    add_action( 'bp', 'groups_subnav_hook', 2 ); ?

    Thanx very much for help (y) !


    Venutius
    Moderator

    @venutius

    no, add_action( 'bp_setup_nav', 'groups_subnav_hook' );


    Venutius
    Moderator

    @venutius

    You should add customisations either in your themes function.php or in a bp-custom.php file placed in the plugins directory.


    austrialandscapes
    Participant

    @austrialandscapes

    Hi Venutius,

    hmmm … meanwhile I tried to figure the file you suggested; Under the theme files, I foud the “function.php” – file (screenshot: https://ibb.co/YDw7LN5). But there’s no buddypress menu, where I could add this code snipped. Maybe I’m totally wrong here! Please, could you be more precise, so I could follow your advise?

    thank you very much in advance and best Regards!


    Venutius
    Moderator

    @venutius

    1. set up a child theme.
    2. inside the childtheme directory there will be a functions.php file.
    3. place your custom code in there.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar