This topic has 8 replies, 2 voices, and was last updated 9 years by HHMediaDesign.
-
Author
-
November 28, 2014 at 18:24 #36967HHMediaDesignParticipant
I would like to change the title of the tab BASE to something else. Which php file should I go to to find the code to add to my child theme?
Thanks!
HillaryNovember 29, 2014 at 08:20 #37021LauraModeratorHello, just go to your wp admin panel > Users > Profile Fields and change the name there
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
November 29, 2014 at 14:24 #37050HHMediaDesignParticipantThe problem is that when I change the title of the BASE which is the Primary tab, it causes the ABOUT ME tab to disappear next to the profile image. I am 100% certain this is what is causing the ABOUT ME tab as I have removed all custom css and the only thing I change is the title and it immediately removes the Base tab… and puts it back when I change it back to Base.
I am assuming that because it is the Base tab it needs to title to also be changed somewhere within the php… Can you help?
Attachments:
You must be logged in to view attached files.November 29, 2014 at 20:06 #37059LauraModeratorHello, if you have your own tabs in your child theme functions.php ,change this
COPY CODE$bp_tabs['base'] = array( 'type' => 'regular', 'name' => __('About me', 'kleo_framework'), 'group' => 'Base', 'class' => 'regulartab' );
And base for the new name, if you dont have it you can use this code:
https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-imageHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
November 30, 2014 at 14:27 #37101HHMediaDesignParticipantFeeling rather stupid here but would you mind posting a sample child functions.php? Every time I try to edit the site shows a parse error… I am obviously putting the code in the wrong part of the file. This is what I’ve got – this is just showing previous changes I am trying to make, not the BASE title change yet:
COPY CODE<?php /** * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ /** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */ <?php do_action( 'bp_before_profile_loop_content' ); ?> <?php if ( bp_has_profile() ) : ?> <ul class="accordion"> <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php if ( bp_profile_group_has_fields() ) : ?> <?php do_action( 'bp_before_profile_field_content' ); ?> <li> <h5 class="accordion-title <?php bp_the_profile_group_slug(); ?>"><?php bp_the_profile_group_name(); ?><span class="accordion-icon"></span></h5> <div class="accordion-content"> <dl class="dl-horizontal"> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <?php if ( bp_field_has_data() ) : ?> <dt><?php bp_the_profile_field_name(); ?></dt><br /> <dd><?php bp_the_profile_field_value(); ?></dd> <?php endif; ?> <?php do_action( 'bp_profile_field_item' ); ?> <?php endwhile; ?> </dl> </div> </li> <?php do_action( 'bp_after_profile_field_content' ); ?> <?php endif; ?> <?php endwhile; ?> </ul> <?php do_action( 'bp_profile_field_buttons' ); ?> <?php endif; ?> <?php do_action( 'bp_after_profile_loop_content' ); ?> function bp_add_profile_navigation() { if(bp_is_user()): ?> <div class="three columns"> <ul class="inline-list right"> <li><?php _e("View more members", 'kleo_framework');?> </li> <?php $prev = bp_prev_profile(bp_displayed_user_id()); if ($prev !== "#") : ?><li><a>" title="<?php _e("Previous profile",'kleo_framework');?>"><i class="icon-chevron-left"></i></a></li><?php endif; ?> <?php $next = bp_next_profile(bp_displayed_user_id()); if ($next !== "#") : ?><li><a>" title="<?php _e("Next profile", 'kleo_framework');?>"><i class="icon-chevron-right"></i></a></li><?php endif; ?> </ul> </div> <?php endif; } ?>
November 30, 2014 at 14:54 #37105LauraModeratorHello, when you want to add a new function just add it on top of everything and after this
COPY CODE<?php /** * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ /** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
November 30, 2014 at 15:01 #37108HHMediaDesignParticipantBut I need to keep the end ?> correct? Ok, I got the BASE name change in there (thank you so much!) but can’t work out the others – when I add the changes I get the parse error again. SHould I open a new subject? Or can you advise…
For instance, I want to change the quick navigation wording using this… what would I need to put into the functions.php file instead because this isn’t working:
COPY CODEfunction bp_add_profile_navigation() { if(bp_is_user()): ?> <div class="three columns"> <ul class="inline-list right"> <li><?php _e("View more members", 'kleo_framework');?> </li> <?php $prev = bp_prev_profile(bp_displayed_user_id()); if ($prev !== "#") : ?><li><a>" title="<?php _e("Previous profile",'kleo_framework');?>"><i class="icon-chevron-left"></i></a></li><?php endif; ?> <?php $next = bp_next_profile(bp_displayed_user_id()); if ($next !== "#") : ?><li><a>" title="<?php _e("Next profile", 'kleo_framework');?>"><i class="icon-chevron-right"></i></a></li><?php endif; ?> </ul> </div> <?php endif;
November 30, 2014 at 15:18 #37112LauraModeratorHello, try adding ?> at the end like <?php endif; ?>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
November 30, 2014 at 16:56 #37113HHMediaDesignParticipantAgain, I feel like I am CLOSE but just don’t have quite enough php experience… This is the bit I altered from the primary Sweetdate functions.php to change the wording of “Quick Navigation” to “View More Members”. And I want to add it to the child functions… but I keep getting errors. Do you mind just showing me what bit I would need to put in the child theme to help me understand how the child functions file is working – I have obviously left in too much additional php code. It might help me edit more in future! Thank you…
COPY CODE<?php do_action( 'bp_after_profile_loop_content' ); ?> function bp_add_profile_navigation() { if(bp_is_user()): ?> <div class="three columns"> <ul class="inline-list right"> <li><?php _e("View more members", 'kleo_framework');?> </li> <?php $prev = bp_prev_profile(bp_displayed_user_id()); if ($prev !== "#") : ?><li><a>" title="<?php _e("Previous profile",'kleo_framework');?>"><i class="icon-chevron-left"></i></a></li><?php endif; ?> <?php $next = bp_next_profile(bp_displayed_user_id()); if ($next !== "#") : ?><li><a>" title="<?php _e("Next profile", 'kleo_framework');?>"><i class="icon-chevron-right"></i></a></li><?php endif; ?> </ul> </div> <?php endif;
-
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.