-
Author
Tagged: functions, ui, customisation
-
May 7, 2014 at 20:01 #17108guy_fraserParticipant
I read somewhere that it’s possible to use functions.php (or something like that) to alter navigation text, but I’m struggling to find details on it. If I understand correctly, I can create a functions.php in the child theme, put some code in there to change things, and that will remain intact should I update the theme or other plugins…?
For example, on a member profile page, if I want to change “Profile” tab to “About Me”, is it possible for me to do that via some code in functions.php? And similarly, can I change breadcrumb trail and page titles of certain feature pages?
May 7, 2014 at 20:19 #17110PedromlParticipantYou must create a bp-custom.php file and place it in the plugins folder.
COPY CODE<?php define( 'BP_SETTINGS_SLUG', 'configuracion' ); define( 'BP_XPROFILE_SLUG', 'perfil' ); define( 'BP_ACTIVITY_SLUG', 'actividad' ); define( 'BP_FRIENDS_SLUG', 'contactos' ); define( 'BP_GROUPS_SLUG', 'grupos' ); define( 'BP_FORUMS_SLUG', 'foros' ); define( 'BP_MESSAGES_SLUG', 'mensajes' ); define( 'BP_NOTIFICATIONS_SLUG', 'notificaciones' ); ?>
In the example I changed the default to Spanish slugs
May 12, 2014 at 18:36 #17589AbeKeymasterHi, by using the child theme and adding code to functions.php you won’t loose your changes on theme updates.
See more on Buddypress labels: http://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.May 12, 2014 at 23:14 #17643guy_fraserParticipantI was hoping to use something like https://wordpress.org/plugins/codestyling-localization/ for changing locale text but unfortunately it’s broken on WP 3.9.
May 14, 2014 at 17:08 #17872guy_fraserParticipantLooks like there will be a new plugin appearing in coming weeks to help with changing / reordering the menu items (sections) in profile/groups pages. Will report back once available 🙂
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.