-
Author
-
October 22, 2017 at 05:47 #177329rlarson87Participant
Hi, how do I add extra functionality fields to the membership levels skin?
Also, is it possible to design a new skin for the pricing table and replace the demo one?
Attachments:
You must be logged in to view attached files.October 22, 2017 at 05:48 #177332rlarson87ParticipantAlso, how do I add an “X” icon when functionality is not included in membership level to make it more clear (like how there is a checkmark icon when functionality is included)?
October 22, 2017 at 17:32 #177385Kieran_SQModeratorHi,
To add more options to the table via Theme Options > Memberships please use the below code at the end of your functions.php file by going to WP Admin > Appearance > Editor > KLEO Child > Functions.php
COPY CODEadd_filter('kleo_pmpro_level_restrictions', 'my_custom_levels'); function my_custom_levels($kleo_pay_settings) { $kleo_pay_settings[] = array( 'title' => __('New Option A','kleo_framework'), 'front' => __('Option A','kleo_framework'), 'name' => 'new_option_a' ); $kleo_pay_settings[] = array( 'title' => __('New Option B','kleo_framework'), 'front' => __('Option B','kleo_framework'), 'name' => 'new_option_b' ); $kleo_pay_settings[] = array( 'title' => __('New Option C','kleo_framework'), 'front' => __('Option C','kleo_framework'), 'name' => 'new_option_c' ); return $kleo_pay_settings; }
Adjust the code to suit your needs.
With regards to the icon question I will refer this ticket to one of our developers who may be able to assist you. They’ll be in touch as soon as they can (Mon-Fri East Europe Time).
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
October 23, 2017 at 00:58 #177429rlarson87ParticipantThanks. How do I reorder the options? I would like the new options (View Company Directory, View Events Directory, Access Company Contact Info) I created to be at the top of the membership table. See screenshot.
Attachments:
You must be logged in to view attached files.October 23, 2017 at 17:51 #177534RaduModeratorHi,
Try with this filter line instead this
COPY CODEadd_filter('kleo_pmpro_level_restrictions', 'my_custom_levels');
Use this
COPY CODEadd_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '1');
OR
COPY CODEadd_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '5');
Or try to put lower higher value see how it renders
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 23, 2017 at 20:07 #177554rlarson87ParticipantThanks. Where do I add the filter in the code you already gave me (below)?
add_filter(‘kleo_pmpro_level_restrictions’, ‘my_custom_levels’);
function my_custom_levels($kleo_pay_settings) {
$kleo_pay_settings[] = array(
‘title’ => __(‘View Companies Directory’,’kleo_framework’),
‘front’ => __(‘View Companies Directory’,’kleo_framework’),
‘name’ => ‘view_companies_directory’
);
$kleo_pay_settings[] = array(
‘title’ => __(‘View Events Directory’,’kleo_framework’),
‘front’ => __(‘View Events Directory’,’kleo_framework’),
‘name’ => ‘view_events_directory’
);
$kleo_pay_settings[] = array(
‘title’ => __(‘Access Company Contact Info’,’kleo_framework’),
‘front’ => __(‘Access Company Contact Info’,’kleo_framework’),
‘name’ => ‘access_company_contact_info’
);
return $kleo_pay_settings;
}October 24, 2017 at 16:11 #177671RaduModeratorHi,
COPY CODEadd_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '1' ); //add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '5' ); //add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '10' ); //add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels', '40'); function my_custom_levels($kleo_pay_settings) { $kleo_pay_settings[] = array( 'title' => __('New Option A','kleo_framework'), 'front' => __('Option A','kleo_framework'), 'name' => 'new_option_a' ); $kleo_pay_settings[] = array( 'title' => __('New Option B','kleo_framework'), 'front' => __('Option B','kleo_framework'), 'name' => 'new_option_b' ); $kleo_pay_settings[] = array( 'title' => __('New Option C','kleo_framework'), 'front' => __('Option C','kleo_framework'), 'name' => 'new_option_c' ); return $kleo_pay_settings; }
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.