Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Popular Features › Member Profile Search › Change button Profile Search ‘Submit & find a partner’
- This topic has 12 replies, 2 voices, and was last updated 6 years, 11 months ago by
Themosaurus.
-
AuthorPosts
-
@themosaurus
- 1 Topics
- 1675 Posts
Hi @Aron,
We use BP Profile Search (https://wordpress.org/plugins/bp-profile-search/) to showcase the profile search feature on our demos.
You can edit the homepage search form by visiting Users > Profile Search in your website admin panels, where you will find every existing profile search forms.For a quick tutorial on how to create the homepage form, please read to the following post:
For more dedicated help with BP Profile Search, we invite you to post request directly on the support forum:
https://wordpress.org/support/plugin/bp-profile-searchCheers,
May 15, 2018 at 12:02 #479@themosaurus- 1 Topics
- 1675 Posts
Hi Aron,
Sorry for having wrongly answered to your question. You’re totally right, only the form inputs can be changed in the admin panels. The submit button and its text is part of the template from BP Profile Search.
To modify this, you will need to override the template located in Gwangi (gwangi/buddypress/members/bps-form-home.php) in a child theme. The best way to do this is by using the provided child theme (gwangi-child). You will find more on this topic in the following post:
As we understand the trouble of programmatically overriding the template into a child theme, we will release a new update of Gwangi next week to fix this. You will be able to use a WordPress filter to change this and we will provide you the code snippet to copy and paste to fix your issue.
Can you wait for the next release ? Or is this issue urgent ?
Cheers,
May 16, 2018 at 14:02 #485@themosaurus- 1 Topics
- 1675 Posts
Hi Aron,
Ok then! We’ll keep you updated as soon as the next update is released.
Regards,
May 17, 2018 at 09:28 #495@themosaurus- 1 Topics
- 1675 Posts
Hi @Aron,
Gwangi has been updated to version 1.0.2. You can upload and activate the new version to your server.
From now, you can change the default submit button value but it requires a few coding skills as we added a filter in the latest Gwangi version.
The simplest way to do this is to install Code Snippets (https://wordpress.org/plugins/code-snippets/) to your WordPress server. Please read the following post for more details :
Once the plugin installed, please visit Snippets > Add New. Name your snippet and paste the following code:
function muhFmYvy7i_gwangi_bps_form_home_submit_value( $value ) { $value = 'Find My New Partner'; return $value; } add_filter( 'gwangi_bps_form_home_submit_value', 'muhFmYvy7i_gwangi_bps_form_home_submit_value' );
Finally, please select the “Only run on site front-end” option and hit the “Save Changes and Activate” button.
We hope this tip have solved your issue. ?
Cheers,
May 21, 2018 at 14:08 #510@themosaurus- 1 Topics
- 1675 Posts
Hi Aron,
To update your theme, you can download and install the Envato Market plugin (https://envato.com/market-plugin/) on your WordPress site.
Once the plugin is installed and activated, go to “Envato Market” in your admin menu and follow the instructions under “Activate Envato API Connection”.
When this is done, you will see your purchased themes under the “Themes” tab and you should be able to update your Gwangi theme from there by clicking the “Update available” button. If the update fails after clicking that button please try to click it again and it should work properly.
Regards,
May 28, 2018 at 12:16 #602@themosaurus- 1 Topics
- 1675 Posts
Hi Aron,
Like we mentioned before (#510), it requires a few coding skills.
The simplest way to do this is to install Code Snippets (https://wordpress.org/plugins/code-snippets/) to your WordPress server.
Once the plugin installed, please visit Snippets > Add New. Name your snippet and simply paste the following code:
function muhFmYvy7i_gwangi_bps_form_home_submit_value( $value ) { $value = 'Find My New Partner'; return $value; } add_filter( 'gwangi_bps_form_home_submit_value', 'muhFmYvy7i_gwangi_bps_form_home_submit_value' );
Finally, please select the “Only run on site front-end” option and hit the “Save Changes and Activate” button.
Of course, feel free to change the $value but don’t forget the single quotation marks.
This will solve your issue. ?
Cheers,
June 4, 2018 at 11:22 #723@themosaurus- 1 Topics
- 1675 Posts
Hi Aron,
Everything you did was correct. Your coding skills are on point! ?
The problem was caused by a recent change made into BP Profile Search since 4.8.3 (last week). From now, you need to select a form template before you save it. To do so, just visit “Users > Profile Search” and select the adequate template (home or directory). Then, hit the save button.We’ve logged into your website and made to change to display your form on the homepage. As you can see, everything is displaying properly now.
Regards
June 6, 2018 at 12:18 #782 -
AuthorPosts
The topic ‘Change button Profile Search ‘Submit & find a partner’’ is closed to new replies.