Forum Replies Created
-
Author
-
Kieran_SQModerator
Hi,
It is possible to add a search field at the end of the menu but it would not be the ajax search that comes with KLEO. Adding the ajax search to the header directly would likely break a lot of different elements and certainly would when any user searched.
If you would like to add a general search form at the end of the menu please add the below code to the end of your KLEO Child theme’s functions.php file by going to WP Admin > Appearance > Editor > KLEO Child > Functions.php
COPY CODEadd_filter('wp_nav_menu_items','add_search_box_to_menu', 10, 2); function add_search_box_to_menu( $items, $args ) { if( $args->theme_location == 'primary' ) return $items."<li class='menu-header-search'><form action='https://irside.com/' id='searchform' method='get'><input type='text' name='s' id='s' placeholder='Search'></form></li>"; return $items; }
Another option would be to use CSS to make it clearer, you could try using any of the CSS below in your KLEO Child theme’s style.css by going to WP Admin > Appearance > Editor > KLEO Child > Style.css or by going to WP Admin > Theme Options > General Settings > Scroll to: Quick CSS
Add ‘Search’ after icon
.search-trigger::after {content: "Search";padding-left: 8px;}
Add ‘Search’ before icon
.search-trigger::before {content: "Search";padding-right: 8px;}
Change search icon color
li#nav-menu-item-search a {color: #ff0000;}
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 22, 2017 at 17:11 in reply to: Profile Picture – crop button not centered vertically #177383Kieran_SQModeratorHi,
To fix the button issue please apply the below CSS to your KLEO Child theme’s style.css by going to WP Admin > Appearance > Editor > KLEO Child > Style.css or by going to WP Admin > Theme Options > General Settings > Quick CSS. To see changes you will need to clear all caches.
.buddypress .change-avatar a.button, #buddypress a.button{height: auto;line-height: inherit;}
To translate the single string please paste the below at the end of your KLEO Child theme’s functions.php file by going to WP Admin > Appearance > Editor > KLEO Child > Functions.php
COPY CODE// Translate crop image to save image add_filter('gettext', 'translate_reply'); add_filter('ngettext', 'translate_reply'); function translate_reply($translated) { $translated = str_ireplace('Crop Image', 'Save Image', $translated); return $translated; }
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 22, 2017 at 16:31 in reply to: change hover background color of icon in feature item #177373Kieran_SQModeratorHi Janet,
Thanks for reaching out today above hover styles on the KLEO Featured element within Visual Composer. Please add the below CSS to your KLEO Child theme by going to WP Admin > Appearance > Editor > KLEO Child > Style.css or to WP Admin > Theme Options > General Settings > Scroll to: Quick CSS.
COPY CODE.feature-icon.el-appear.icon-attention-circled:hover { color: #000000 !important; border: solid 1px #000000 !important; }
Adjust the #000000 value to suit your needs.
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.
Kieran_SQModeratorHi,
Please try the below snippet in your SweetDate Child theme’s functions.php file, you can do this by going to WP Admin > Appearance > Editor > SweetDate Child > Functions.php
COPY CODE// Remove IP address in bbPress function sq_no_view_ip( $author_ip, $r, $args ){ return __return_empty_string(); } add_filter('bbp_get_author_ip','sq_no_view_ip', 10, 3 );
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 15, 2017 at 22:11 in reply to: Any way to disable Visual composer from connecting google fonts? #176759Kieran_SQModeratorHi,
Please try the below snippet in your KLEO Child theme’s functions.php by going to WP Admin > Appearance > Editor > KLEO Child > Functions.php
COPY CODE// Remove Google Fonts from being called in page editor add_action( 'vc_after_init', 'vc_after_init_actions' ); function vc_after_init_actions() { // Remove VC Elements if( function_exists('vc_remove_element') ){ // Remove Google Fonts Custom Heading vc_remove_element( 'vc_custom_heading' ); } }
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.
Kieran_SQModeratorHi,
This plugin will allow you to remove the name field from the registration form https://wordpress.org/plugins/advanced-xprofile-fields-for-buddypress/, however you cannot get rid of it completely as it is a core function of BuddyPress. You can also edit the name of the field ‘Name’ by going to WP Admin > Users > Profile Fields > Tab: ‘Base (Primary)’ > Edit: ‘Name (Primary). Once you have edited that you can add a field called Last Name and mark it as required following the steps above.
It is possible to automatically populate a BuddyPress field with content stored from another plugin but this will require in-depth PHP knowledge and considerable time, therefore it is outside the scope of the support we offer for the theme via the forums. You can contact a developer to do this for you if you do not have intimate PHP knowledge or reach out to one of developers, with as much information as possible, for a quote – they can be reached by emailing dev@seventhqueen.com.
You can do this manually in bulk by adapting the code below and adding it to your KLEO Child theme’s function.php file by going to WP Admin > Appearance > Editor > KLEO Child > Functions.php. This process is not automatic so if you add more fields (companies) in the future you will need to go to WP Admin > Users > Profile Fields > Desired Field > Edit to add the extra content.
COPY CODE/* If you are using BP 2.1+, this will insert a Country selectbox. Add the function to bp-custom.php and then visit .../wp-admin/users.php?page=bp-profile-setup Remove this function after the field is created. */ function bp_add_custom_country_list() { if ( !xprofile_get_field_id_from_name('Country') && 'bp-profile-setup' == $_GET['page'] ) { $country_list_args = array( 'field_group_id' => 1, 'name' => 'Country', 'description' => 'Please select your country', 'can_delete' => true, 'field_order' => 2, 'is_required' => false, 'type' => 'selectbox', 'order_by' => 'custom' ); $country_list_id = xprofile_insert_field( $country_list_args ); if ( $country_list_id ) { $countries = array( "United States", "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China", "Colombi", "Comoros", "Congo (Brazzaville)", "Congo", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor (Timor Timur)", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia, The", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Qatar", "Romania", "Russia", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia and Montenegro", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "Uruguay", "Uzbekistan", "Vanuatu", "Vatican City", "Venezuela", "Vietnam", "Yemen", "Zambia", "Zimbabwe" ); foreach ( $countries as $country ) { xprofile_insert_field( array( 'field_group_id' => 1, 'parent_id' => $country_list_id, 'type' => 'option', 'name' => $country, 'option_order' => $i++ )); } } } } add_action('bp_init', 'bp_add_custom_country_list');
Once you have saved this code in your KLEO Child theme’s functions.php and confirm the field has been created you will need to delete the code.
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.
Kieran_SQModeratorHi,
Please try adding the below CSS to your KLEO Child theme’s style.css by going to Appearance > Editor > KLEO Child > Style.css or to Quick CSS by going to Theme Options > General Settings > Scroll to: Quick CSS
COPY CODE.buddypress #user-forums {display: none !important;} .buddypress #user-orders {display: none !important;}
You may need to purge website cache, CDN cache and local cache (Ctrl+F5) to see changes
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.
Kieran_SQModeratorHi,
Please try removing the CSS you have in functions.php related to lostpassword page and replace with the below
COPY CODE.login-action-lostpassword #lostpasswordform {width: 100% !important;} #login .message {width: 100% !important;}
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.
Kieran_SQModeratorHi,
Please try the below snippets in your SweetDate Child theme to translate the desired words. You should also rename your blog page to Our Stories / ‘our-stories’ (see attachment).
COPY CODE// Translate Forums to Discussion add_filter('gettext', 'translate_reply'); add_filter('ngettext', 'translate_reply'); function translate_reply($translated) { $translated = str_ireplace('Forums', 'Discussion', $translated); return $translated; }
COPY CODE// Translate Blog to Our Stories add_filter('gettext', 'translate_reply'); add_filter('ngettext', 'translate_reply'); function translate_reply($translated) { $translated = str_ireplace('Blog', 'Our Stories', $translated); return $translated; }
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.
Attachments:
You must be logged in to view attached files.Kieran_SQModeratorHi,
Sorry to hear about the issues you have faced with this snippet, please try the below instead and let me know if that works for you.
COPY CODE// Show username in menu item 20171007 function kleo_bp_replace_placeholders_extra ( $output ) { if ( strpos( $output, '##username##' ) !== false ) { if ( ! is_user_logged_in() ) { return ''; } $current_user = wp_get_current_user(); $username = $current_user->user_login; $output = str_replace('##username##', $username, $output); } return $output; } add_filter('walker_nav_menu_start_el', 'kleo_bp_replace_placeholders_extra');
If you no longer wish to see php warnings and errors printed on the frontend (for production/live sites) please edit wp-config.php and replace
define('WP_DEBUG', false);
with
COPY CODEini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_DISPLAY', false);
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.
Kieran_SQModeratorHi,
Please use the CSS below in your BuddyApp Child theme’s style.css which can be found by going to Appearance > Editor > BuddyApp Child > Style.css or via Quick CSS by going to Appearance > Theme Options > Scroll to: Quick CSS
COPY CODE#page-title {display: none;} .single-post #page-title {display: block !important;}
The first line states that #page-title should not be shown anywhere, the second line states to show as a block if it is a single-post (a blog post).
Hope this helps,
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.
Kieran_SQModeratorHi,
Thanks for reaching out about redirecting logged out users to the register page, I think the issue may be coming from not having bbPress installed, if that is the case changing the code to remove the bbPress element should work. Please add the below to the end of your KLEO Child theme’s functions.php file by going to Appearance > Editor > KLEO Child > functions.php
COPY CODE// Redirect logged out to register page if pages are BuddyPress function kleo_page_template_redirect() { // if not logged in and on a bp page except registration or activation if( ! is_user_logged_in() && ( ( ! bp_is_blog_page() && ! bp_is_activation_page() && ! bp_is_register_page() ) ) ) { wp_redirect( home_url( '/register/' ) ); exit(); } } add_action( 'template_redirect', 'kleo_page_template_redirect' );
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.
Kieran_SQModeratorHi,
Please try the below CSS to show the icon always regardless of device.
.kleo-quick-contact-wrapper {display: unset !important;}
To move the location of the arrow, please try the below CSS
COPY CODE#kleo-quick-contact .bottom-arrow { border-top: solid 1px #e5e5e5 !important; border-right: 0 !important; border-left: solid 1px #e5e5e5 !important; border-bottom: 0 !important; top: -7px; bottom: unset !important; }
Please change the color value #e5e5e5 to suit your needs if you are using different colors from the default.
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.
Kieran_SQModeratorHi,
Please try the below snippet in your KLEO Child theme’s functions.php file. This snippet will generate a ‘Show / Hide’ button next to the comments button, by default comments will be set to hidden. I have tried this locally with success.
COPY CODE// Show or hide comments hidden by default add_action( 'wp_footer', 'add_comment_hide_show' ); function add_comment_hide_show() { ?> <style> .activity-comments ul li[id^="acomment-"]{display: none;} </style> <script type="text/javascript"> jQuery(function($) { setInterval(function() { $('.activity-meta').each(function() { if( !$(this).find('.show-comments').length ){ var html = '<a href="#" class="button bp-primary-action show-comments">Show/Hide Comments</a>'; $(this).find('.button.acomment-reply').after(html); } }); }, 500); $('body').on('click', '.show-comments', function(e) { e.preventDefault(); var obj = $(this).closest('.activity-content').next('.activity-comments').find('ul li[id^="acomment-"]'); obj.slideToggle(); return false; }); }); </script> <?php }
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.
Kieran_SQModeratorHi,
To change where the username appears you’ll have to be using the KLEO Child theme and copy the below file into your child theme. You will need to recreate the folder structure if it does not already exist in the KLEO Child theme.
From
/kleo/buddypress/members/single/cover-image-header.php
To
/kleo-child/buddypress/members/single/cover-image-header.php
You can now open the newly copied file from your child theme with your favorite code editor, copy and remove lines 32-34 and paste them on line 20.
Lines 32-34
COPY CODE<?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?> <h4 class="user-nicename hover-tip click-tip" data-toggle="tooltip" data-container="body" data-title="<?php bp_last_activity( bp_displayed_user_id() ); ?>" data-placement="bottom">@<?php bp_displayed_user_mentionname(); ?></h4> <?php endif; ?>
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.
Kieran_SQModeratorHi,
I checked your site and saw the issue you referenced. I have added the below CSS to your Theme Options > General Settings > Quick CSS which fixes the issue. Please use Ctrl+F5 to see the changes.
COPY CODE@media (max-width: 991px) { #main {margin-top: 88px;} }
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.
Kieran_SQModeratorHi,
You can override the code that generates the maintenance mode by adding the below to your KLEO Child theme’s functions.php
COPY CODE// Change the maintenance page logo size if ( ! function_exists( 'kleo_maintenance_mode' ) ) { function kleo_maintenance_mode() { $logo_path = apply_filters( 'kleo_logo', sq_option_url( 'logo' ) ); $logo_img = '<img src="' . $logo_path . '" alt="maintenance" style="margin: 0 auto; display: block; max-width:100px;" />'; if ( sq_option( 'maintenance_mode', 0 ) == 1 ) { /* Theme My Login compatibility */ if ( class_exists( 'Theme_My_Login' ) && Theme_My_Login::is_tml_page( 'login' ) ) { return; } if ( ! current_user_can( 'edit_themes' ) || ! is_user_logged_in() ) { wp_die( $logo_img . '<div style="text-align:center">' . sq_option( 'maintenance_msg', '' ) . '</div>', get_bloginfo( 'name' ) ); } } } add_action( 'get_header', 'kleo_maintenance_mode' ); }
Please change the px value on line 6 from 100px to your desired number. Clear any and all caches and CDN’s after saving and press/hold Ctrl+F5 to see your changes.
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.
Kieran_SQModeratorHi,
Thanks for reaching out to us about issues you’re facing, as you have numbered these points already I will respond in the same format.
1. You can select the menu item style (button) by going to Appearances > Menus > Select: Desired menu. You can then open a menu item you have already added and you will see an option titled ‘Menu style’. You can select default, buy button, see through or highlight.
2. To set the menu font size please go to Theme Option > Header Options > Header Fonts > Scroll to: Main Menu Font size and the set your desired px value. To override the font sizes used in the top bar, footer and socket please add the below CSS to your KLEO Child theme’s style.css or to Theme Options > General Settings > Scroll to: Quick CSS. Adjust the px value to suit your specific requirements.
COPY CODE.top-bar {font-size: 16px;} #footer {font-size: 16px;} #socket {font-size: 16px;}
3. To hide the breadcrumbs are please go to WP Admin > Pages > Open: Desired page. Scroll down past the post editor to ‘Theme General Settings’ and in the tab titled ‘Title Section’ you’ll find options to turn off parts or all of that area.
4. To change the page templare please go to WP Admin > Pages > Open: Desired page on the right side of the screen you will see a section titled ‘Page Attributes’, in the dropdown menu for template please select ‘Full-width’.
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.
Kieran_SQModeratorHi,
Sorry to hear you’re having issues with admin-ajax calls. Can you let me know how many users you have on your site?
You can try the following to reduce the impact on admin-ajax
– Limit or disable Heartbeat, you can do this with a plugin from the repository or use the below snippet in your KLEO Child theme’s functions.php file
COPY CODEadd_action( 'init', 'stop_heartbeat', 1 ); function stop_heartbeat() { wp_deregister_script('heartbeat'); }
– Go to WP Admin > Theme Options > BuddyPress > Scroll to: AJAX refresh interval and set the number much higher than 20000. 20000 = 20 seconds, try using 60000 to 180000.
Let me know how this goes,
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.
Kieran_SQModeratorHi,
The two pieces of code are independent of each other, if you wish to limit both the main feed and the member’s profile feed then please use both snippets in your functions.php file.
Please do not use the version you pasted into your reply as it was not formatted as code. This changes the backtick and will not work as they’re not supported characters.
COPY CODE// Limit the main activity feed to ten function limit_main_activity( $loop ) { $loop['per_page'] = 10; return $loop; } add_filter( 'bp_after_has_activities_parse_args', 'limit_main_activity' );
COPY CODE// Limit the members activity feed to ten function limit_members_feed( $loop ) { // only fetch the last ten entries if we're on a user's activity page if ( bp_is_user_activity() ) { $loop['per_page'] = 10; } return $loop; } add_filter( 'bp_after_has_activities_parse_args', 'limit_members_feed' );
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.
Kieran_SQModeratorHi,
As per the code’s description the number 5 relates to the number of activity items, you can change this to any number you desire.
The code you have there is for limiting the member’s profile feed, you will need to use the example below in the article to limit the main feed. You can remove the other scope items if you wish, your code will end up something like this.
COPY CODEfunction limit_main_activity( $loop ) { $loop['per_page'] = 5; return $loop; } add_filter( 'bp_after_has_activities_parse_args', 'limit_main_activity' );
You can use both of these snippets in your KLEO Child theme’s functions.php, make sure to clear and purge all caches and CDN’s to see changes. If the code does not appear to work you can try it in a bp-custom.php file, you can read more about that here https://codex.buddypress.org/themes/bp-custom-php/.
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.
September 17, 2017 at 20:40 in reply to: How do I change the main menu row height and my header is not showing #173950Kieran_SQModeratorHi,
It looks like you have too many menu items for the space, there are a few different things you can do
– Change the font size for the menu, you can do that by going to WP Admin > Theme Options > Header Options > Header Fonts > Select: Main Menu Font size and entering a new px value.
– Compact overflowing menu items with an expanding ellipsis, you can do that by going to WP Admin > Theme Options > Header Options > Scroll to: Compact overflowing menu items and enabling this option.
– Reducing the margin between menu items with CSS, you can do this by adding the below CSS to your KLEO Child theme’s style.css or by going to WP Admin > Theme Options > General Settings > Scroll to: Quick CSS (Clear your website and browser cache to see changes)COPY CODE@media (min-width: 991px) { .navbar-nav>li>a {margin: 6px;} }
With regards to the different header images for different pages please update this ticket with working admin credentials as well as a list of pages where you’re using different images.
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.
Kieran_SQModeratorHi @Jaturan,
Thanks for contacting us today about the styling issues you’re having.
You can make the mobile header fixed / sticky by using the below CSS in your KLEO Child theme’s style.css or by going to Theme Options > General Settings > Scroll to: Quick CSS
COPY CODE@media(max-width:991px){ div#header {margin-bottom: 50px;} .navbar {position: fixed;display: block;} }
To edit the colors used in your header please go to Theme Options > Styling Options > Header. You will be able to set colors and background images in this panel for the header area.
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.
Kieran_SQModeratorHi,
Thanks for contacting us, you can use a plugin called Loco Translate from the WordPress plugin repository to translate these strings if you have more than a few. If you only have a few you could try the below code in your child theme’s functions.php file.
COPY CODE// Translate my phrase add_filter('gettext', 'translate_reply'); add_filter('ngettext', 'translate_reply'); function translate_reply($translated) { $translated = str_ireplace('Add Friend', 'Connect', $translated); return $translated; }
Replace Add Friend with the word you wish to translate and replace Connect with the word you wish to use.
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.
Kieran_SQModeratorThanks for contacting us today, the Go Pricing tables are static elements and are unable to conditionally show specific content (the user’s membership level) by default.
You could however actually do this with Paid Membership Pro shortcodes and creating three different Go Pricing tables, each with a specific column highlighted. Once you have done that you can use the shortcode for each and limit it as below
COPY CODE[membership level="1"] [My shortcode for membership level 1] [/membership] [membership level="2"] [My shortcode for membership level 2] [/membership] [membership level="3"] [My shortcode for membership level 3] [/membership]
You may want to add a fourth for anyone that doesn’t have a membership already, which would look like
COPY CODE[membership level="1"] [My shortcode for membership level 1] [/membership] [membership level="2"] [My shortcode for membership level 2] [/membership] [membership level="3"] [My shortcode for membership level 3] [/membership] [My shortcode for no membership level]
Adjust the membership levels to work with the levels you have assigned already.
Hope this helps,
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.
September 6, 2017 at 19:04 in reply to: SliderRevolution Support and Custom Contact form integration #172787Kieran_SQModeratorNot marked as solutionKieran_SQModeratorHi,
You’ll have to move the below files from the main theme to your child theme and edit them to suit your needs
COPY CODE/kleo/assets/img/select-arrow.png /kleo/assets/img/select-arrow-lg.png
Move to
COPY CODE/kleo-child/assets/img/select-arrow.png /kleo-child/assets/img/select-arrow-lg.png
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.
Kieran_SQModeratorHi,
Please try the below snippet in your KLEO Child theme’s functions.php file
COPY CODE// Translate Share this single phrase add_filter('gettext', 'translate_reply'); add_filter('ngettext', 'translate_reply'); function translate_reply($translated) { $translated = str_ireplace('Share this', 'Like and share this', $translated); return $translated; }
I have tried this out locally and it does work for me, if this doesn’t work for you we may be looking at a conflict of some kind.
Hope this helps,
Kieran.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket 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.
Kieran_SQModeratorHi,
Thanks for your question, you can use media queries to define font sizes based on screen size, please use your Child theme’s style.css to add your CSS.
COPY CODE@media screen and (max-width: 767px) { h1 {font-size: 20px;} h2 {font-size: 20px;} h3 {font-size: 20px;} h4 {font-size: 20px;} h5 {font-size: 20px;} h6 {font-size: 20px;} p {font-size: 20px;}
COPY CODE@media screen and (max-width: 481px) { h1 {font-size: 12px;} h2 {font-size: 12px;} h3 {font-size: 12px;} h4 {font-size: 12px;} h5 {font-size: 12px;} h6 {font-size: 12px;} p {font-size: 12px;}
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.
-
AuthorPosts