BuddyDev

Search

[Resolved] Location for Mediapress Wall Code Snippets

  • Participant
    Level: Initiated
    Posts: 12
    Russell on #38351

    Hi, can you please advise where the Code Snippets to change the title of the Wall options 1-4 should be located? In the Theme or in which php file of Mediapress? Thanks

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 1796
    Ravi on #38353

    Hello Russell,

    Thank you for the posting. Please use the following filter

    
    // Allow developers to have flexible naming for the wall gallery.
    		$title = apply_filters( 'mpp_wall_gallery_title', $title, $args );
    

    Let me know if it works or not.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 12
    Russell on #38358

    Thanks Ravi, In which php file should I put the filter?

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 1796
    Ravi on #38362

    Hello Russell,

    You can use this filter in active theme functions.php file or if you are using BuddyPress create a bp-custom.php file and add filter there.

    Check following reference for what is bp-custom file:
    https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 12
    Russell on #38366

    Hi and thanks, I used one of the other profile Code snippets and applied it in the BP-custom.php file and it seems to work!

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 1796
    Ravi on #38379

    Hello Russell,

    Thank you for the acknowledgment. I am glad that I could help.

    Regards
    Ravi

The topic ‘ [Resolved] Location for Mediapress Wall Code Snippets’ is closed to new replies.

This topic is: resolved