Forum Replies Created
-
Author
-
AndreiModerator
In the field where you have the syntax error just use the following code:
COPY CODE<[your-name]> <[your-email]>
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorHi @king88sley,
Unfortunately some of the plugins that you’re trying to use is messing with layout parts that are not relevant to that plugin, they make a very big mistake by trying to globally modify all elements from a page.
Ninja Kick: Contact Form and Ninja Kick: Subscription, both plugins are adding this piece of nasty code:
COPY CODEbody.ncf_sidebar_push.ncf_webkit > * * { background-attachment: scroll !important; } body.nksub_sidebar_push.nksub_webkit * { background-attachment: scroll !important; }
Maybe you can contact their authors to fix their plugins and meanwhile you can deactivate them to see that everything works fine without them.
Cheers
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorThe issue in you case most probably is because you didn’t cleared your cache, the code that I get when I inspect your site is not relevant to our last theme version, so please try to clear all your caches.
A fix for older version would be to use this css:
COPY CODE.kleo-page { -webkit-flex-direction: column; }
In versions equal or bigger than 4.0.3 there’s no use to use this css code, as it might even break your layout.
Let me know how it went.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 7, 2016 at 11:44 in reply to: How can I get sign up/ User Registration option on home page #108910AndreiModeratorHello,
8. Acknowledged, we’ll improve the search box in our next update so that it won’t accept empty searches anymore.
9. For displaying ads in pages I recommend you to use one of the many wp ads manager plugins out there.
There might be a note here to made, buddypress pages usually don’t accept or show any content from it’s assigned pages, so in most of the cases you need to add your ads or content with some custom hooks into their template system, of course, this will require some programming skills but here is an example code of how you could add content to the members activity pages ( each buddypress page has another set of hooks and validation functions ):COPY CODEfunction bp_before_member_activity_post_form_extra(){ if( function_exists('bp_is_user_activity') && function_exists('bp_current_component') ) { if (bp_is_user_activity() || !bp_current_component()) { echo 'content or ad code'; } } } add_action('bp_before_member_activity_post_form', 'bp_before_member_activity_post_form_extra' );
11. If you have update to the latest buddypress version then they just introduced in the wp admin area an menu called “Emails” from where you can change all email related to buddypress features.
12. Please check the options of making your Groups private or hidden, test and see which suits you better.
I couldn’t replicate the issue with the missing button, please be sure you have the latest version of our theme and also of all other related plugins.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorPlease go in “Theme Options > General > Quick Css” and add the following line of code:
COPY CODE.kleo-register-inline .col-sm-12{ position: initial; }
Let me know how it went.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorTry it this way:
COPY CODEfunction display_custom_events( $attr, $content = null ) { ob_start(); echo do_shortcode('[events_list scope="' . $content. '" limit=5 pagination=1 ][/events_list]'); return ob_get_clean(); }
If the pre tag is still present then it means it comes from the events_list shortcode, also be sure you’re checking the “text” source of your page content where you’re using this shortcode, maybe you copy/pasted using a pre tag.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorHi,
Please go in your wp admin area under “Appearance > Theme Options > Quick CSS” and add the following rule in there:
COPY CODE#rtmedia-action-update * { -webkit-backface-visibility: visible !important; -moz-backface-visibility: visible !important; -ms-backface-visibility: visible !important; backface-visibility: visible !important; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorCopy the “content.php” file into your child theme, open the file, and around the line 38, replace the “article-media” div with the following:
COPY CODE<div class="article-media modal-gallery"> <a href="<?php echo kleo_get_post_thumbnail_url(); ?>" rel="modalPhoto"> <?php echo kleo_get_post_thumbnail( null, 'kleo-full-width' ); ?> </a> </div><!--end article-media-->
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 15, 2016 at 00:28 in reply to: GEO Directory Listing page / which template to customize? #103886AndreiModeratorChange your code to:
COPY CODEbody[lang="de-DE"] .map_category>.toggle:before{ content: 'Ansicht filtern' !important; }
This way the wording should change only for the de-DE language.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 2, 2016 at 12:07 in reply to: “Sale Badge” and “out of stock badges” UI is broken mobile. #101690AndreiModeratorThis is a small bug introduced in WC 2.5.2, we’ll patch it in our next update but meanwhile you can add the following code into your functions.php file to fix it.
COPY CODE/* Remove product loop link wrapper */ remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 );
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorWell, in order for my modifications to work you will have to set up your field values as you stated in your first post:
COPY CODEI am a: Mężczyzną I am a: Kobietą and I’m looking for: Kobiety I’m looking for: Mężczyzny
I have built the custom search based on this values.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorHere is the code which will help you manipulate the field search queries, you need to add it into the functions.php file of your theme
COPY CODEfunction kleo_bp_field_query_custom($sql, $field_id, $field_value){ if( $field_id == '1'){ // I am a - field id $extra_sql = false; if( $field_value == 'Mężczyzna'){ $extra_sql = 'Mężczyzny'; } if( $field_value == 'Kobietą'){ $extra_sql = 'Kobiety'; } if( $extra_sql ){ $extra_sql = " OR value LIKE '%".esc_sql($extra_sql)."%'"; } $sql = str_replace("value LIKE '%".esc_sql($field_value)."%'", "value LIKE '%".esc_sql($field_value)."%'" . $extra_sql , $sql); } if( $field_id == '6'){ // Looking for - field id $extra_sql = false; if( $field_value == 'Mężczyzny'){ $extra_sql = 'Mężczyzną'; } if( $field_value == 'Kobiety'){ $extra_sql = 'Kobietą'; } if( $extra_sql ){ $extra_sql = " OR value LIKE '%".esc_sql($extra_sql)."%'"; } $sql = str_replace("value LIKE '%".esc_sql($field_value)."%'", "value LIKE '%".esc_sql($field_value)."%'" . $extra_sql , $sql); } return $sql; } add_filter ('kleo_bp_field_query', 'kleo_bp_field_query_custom', 100, 3);
Also, in order for this code to work I had to make a small change to a core file which I have attached below and you’ll have to update it over ftp in the main theme: “wp-content/themes/sweetdate/custom_buddypress/kleo-bp-search.php”, and we’ll include this modification in updates as well.
Let me know how it went.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.AndreiModerator@vineshare, add the following css rule in theme options > quick css:
COPY CODE.kleo-mobile .bg-parallax{ background-attachment: scroll !important; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorPlease add the following css code to theme options quick css or to /kleo-child/style.css file.
COPY CODE.sensei-course-participant.fix.hide[style="display: list-item;"]{ display:inline-block !important; }
Regarding your second issue, we’ll release an fix in the next theme update for this wrong title.
Please let me know if I can help you with anything else.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorHere is it, add it to your functions.php file from your active theme.
COPY CODEadd_action('user_register', 'kleo_pmpro_default_level'); function kleo_pmpro_default_level($user_id) { pmpro_changeMembershipLevel(1, $user_id); // change 1 with the id of your desired level }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorPlease go in your wp admin area, under “Appearance > Theme Options > Quick Css” and add the following css rule:
COPY CODE.rtmedia-add-media-button, .rtmedia-add-media-button *{ -webkit-backface-visibility: initial !important; }
We’ll also include this in the next theme update.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 21, 2015 at 17:11 in reply to: Several metaboxes are missing in Sensei and LearnDash pages #94577AndreiModeratorHi,
This can be easily achieved using a filter like the following:
COPY CODEadd_filter( 'kleo_meta_boxes', 'kleo_metaboxes_extra', 11, 1 ); function kleo_metaboxes_extra( $meta_boxes ){ foreach($meta_boxes as &$meta_box){ if($meta_box['id'] == 'general_settings'){ $meta_box['pages'][] = 'course'; } } return $meta_boxes; }
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorHi Ronin, I’m sorry for my previous response, it’s there by absolute mistake, and sorry for the delay but I had to test this myself and it took some time.
If you only want to add “rtMedia Uploads” dropdown filter then you can use this piece of code which should be added into your child theme, into the functions.php file.
COPY CODEadd_action('bp_activity_filter_options', 'rtmedia_extra_bp_activity_filter_options_html'); function rtmedia_extra_bp_activity_filter_options_html(){ echo '<option value="rtmedia_update">rtMedia Updates</option>'; }
If you want to strip down all activity entries by default and only show rtMedia Updates in the activity feeds then you will have to copy this file: “/wp-content/themes/kleo/buddypress/activity/activity-loop.php” to your child theme: “/wp-content/themes/kleo-child/buddypress/activity/activity-loop.php” and you will have to replace the 16’th line with the following:
COPY CODE<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) .'&action=rtmedia_update' ) ) : ?>
Please note that this will affect all activity feeds, including users and groups feeds and will also make the dropdown filter without any effect, because this is a hard way to overriding what’s get displayed.
Hope this information helps you !
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorPlease give a closer attention at your code and double check that your code fires at this hook, with this exact priority:
COPY CODEadd_action('bp_init', 'bbg_change_profile_tab_order', 999 );
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorThe issue was generated by a query modification that you did in your functions.php file.
COPY CODEadd_filter('pre_get_posts', 'query_post_type');
Nav menu items are a post type, and you excluded them in category and tag archives.
Be more carefully when tapping into the query system, you might break lot of other stuffs.Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorCan you please try to replace the line 46 with the following, and let us know how it went ?
COPY CODEif ( isset($theme->theme_name) && isset($filtered[$theme->theme_name]) ) {
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 7, 2015 at 13:27 in reply to: Where can I increase the number of items (members) shown in Top Members (newest, #76440AndreiModeratorHi,
The top members shortcode accepts a “number” attribute:
COPY CODE[kleo_top_members number="12"]
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 3, 2015 at 18:13 in reply to: Restrict not logged in users from accessing BuddyPress or bbPress pages #76062AndreiModeratorI’ve given a second test to the code, here is the updated version:
COPY CODEfunction redirect_non_logged_in_users(){ if( ! is_user_logged_in() && ( ( is_buddypress() && ( ! bp_is_activation_page() && ! bp_is_register_page() ) ) || is_bbpress() ) ) { wp_redirect( home_url( 'register' ) ); exit(); } } add_action( 'wp', 'redirect_non_logged_in_users' );
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorPlease add the following code under “SweetDate > General Settings > Analytics code”:
COPY CODE<script type="text/javascript"> jQuery(document).ready(function() { jQuery(".login_panel").click(function() { jQuery("#login_panel").reveal(); }); }); </script>
Then just add the “login_panel” class to any of your links that you want to reveal the login panel.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorHi,
1. Yes, by default magnificPopup is available only for posts, here is a code snippet which should be added in your functions.php file:
COPY CODEfunction kleo_before_main_content_portfolio(){ if(is_singular('portfolio')){ echo '<div class="article-content">'; } } add_action('kleo_before_main_content', 'kleo_before_main_content_portfolio'); function kleo_after_main_content_portfolio(){ if(is_singular('portfolio')){ echo '</div>'; } } add_action('kleo_after_main_content', 'kleo_after_main_content_portfolio');
2. Captions are available just in the post content not in the modal.
3. In order to be able to open links in iframe you will have to do two steps:
First add the following code in “Theme Options > General Settins > JavaScript code”:
COPY CODE<script>jQuery(document).ready(function(){ jQuery('.openiniframe').magnificPopup({ type: 'iframe' }); });</script>
Secondly, create a link with the “openiniframe” class, here is an example:
COPY CODE<a href="https://maps.google.com/maps?q=1+Place+Giovanni+da+Verrazzano,+69009+Lyon,+France&hl=fr&iframe=true" class="openiniframe">Open Google map</a>
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorYou will have to somehow add an attribute to your link, which will trigger the login panel.
COPY CODEdata-reveal-id="login_panel"
COPY CODEExample: <a href="#" data-reveal-id="login_panel">Login</a>
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 27, 2015 at 22:57 in reply to: Restrict not logged in users from accessing BuddyPress or bbPress pages #74958AndreiModeratorI have given a look at the code, updated it a little bit and here is it:
COPY CODEfunction redirect_non_logged_in_users(){ if( ! is_user_logged_in() && ( ( is_buddypress() && ( ! bp_is_blog_page() && ! bp_is_activation_page() && ! bp_is_register_page() ) ) || is_bbpress() ) ) { wp_redirect( home_url( 'register' ) ); exit(); } } add_action( 'template_redirect', 'redirect_non_logged_in_users' );
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorYou will have to go to “Appearance > Sidebars” and create a sidebar called exactly “BuddyPress”, secondly in your child theme, create a file called sidebar-buddypress.php and paste the following code:
COPY CODE<?php $sidebar_class = 'four'; $kleo_layout = sq_option('buddypress_sidebar', 'right'); $six_templates = array('3ll', '3rr', '3lr'); if ($kleo_layout == 'right' || $kleo_layout == 'left' ) { $sidebar_class = 'four'; } elseif (in_array($kleo_layout, $six_templates)) { $sidebar_class = 'three'; } ?> <aside class="<?php echo apply_filters('kleo_sidebar_class',$sidebar_class);?> columns"> <div class="widgets-container sidebar_location"> <?php dynamic_sidebar( 'buddypress' );?> </div> </aside>
Now your buddypress sidebar will work without any issues.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorYou just repeat the $icons line where you add whatever html code you want/need.
COPY CODE$icons .= '';
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorJust change the code to:
COPY CODEfunction header_extra_social_icons() { echo '<a href="put-your-instagram-full-url-here" class="has-tip tip-bottom" data-width="210" target="_blank" title="Find us on Instagram" rel="nofollow"><i class="icon-instagram icon-large"></i></a>'; echo '<a href="put-your-youtube-full-url-here" class="has-tip tip-bottom" data-width="210" target="_blank" title="Find us on YouTube" rel="nofollow"><i class="icon-youtube icon-large"></i></a>'; } add_action('kleo_extra_social_icons', 'header_extra_social_icons');
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorYou can add as many icons you need by using this code in the function.php file of your child theme, this way you can update without issues. You will have to use an fonticon from the fontello library we have available.
COPY CODEfunction kleo_extra_social_icons( $icons ){ $icons .= '<li><a target="_blank" href="put-your-rss-url-here"><i class="icon-rss"></i><div class="ts-text">RSS</div></a></li>'; return $icons; } add_filter( 'kleo_get_social_profiles', 'kleo_extra_social_icons' );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 23, 2015 at 17:08 in reply to: Resizeable comment text box on media pop-up screen breaks the layout #69668AndreiModeratorFor the comments list padding you can use this css rule:
COPY CODE.mfp-content #buddypress .rtm-lightbox-container .rtmedia-single-meta .rtm-single-meta-contents { padding: 0 !important; }
For the other issues I’ll have to find a Ubuntu machine to test it and I’ll get back with a fix.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorThe fix will be available in the next update, if meanwhile you want to apply the fix then you’ll have to edit this two files:
wp-content/themes/kleo/assets/js/app.js
wp-content/themes/kleo/assets/js/app.min.jsSearch this code:
COPY CODE$isoItem.isotope({ filter: filterValue });
And add the following piece of code immediately after it:
COPY CODE$isoItem.find('li:visible').children('div.animate-when-almost-visible').addClass('start-animation');
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorPlease add the following css rule in “SweetDate > Styling Options > Quick CSS”:
COPY CODE#whats-new-options{ height: auto !important; }
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorI have found the issue and we’ll push it in the next update, meanwhile if you want to fix it you’ll have to edit the following file: wp-content/themes/sweetdate/assets/scripts/app.js and add the following code between lines 563/564.
COPY CODE'rememberme': (jQuery('form#login_form #rememberme').is(':checked') ? true : false),
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorThank you for your in-depth feedback about this issue, i have given a closer look and indeed, the ajax login had a typo in the remember me parameter.
We’ll cover this in our next update but meanwhile, to fix it, you will have to edit this two files:
wp-content/themes/kleo/assets/js/app.js
wp-content/themes/kleo/assets/js/app.min.jsSearch for the word “remember:” and change it to “rememberme:”, after doing so in both files please clear any site/browser cache that you might have and try again, this time it should work.
Secondly I given a look at modifying the auth expiration for the case where you want your login to be remembered ( because, unfortunately you can’t force the remember me option ), here is your code with a small modification:
COPY CODEadd_filter( 'auth_cookie_expiration', 'kleo_keep_me_logged', 10, 3 ); function kleo_keep_me_logged( $expire, $user_id, $remember ) { return 31556926; }
Please let me know how it went.
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorPlease add the following css rules in “Theme Options > General Settings > Quick CSS”:
COPY CODE.buddypress div#item-header .toggle-header, .buddypress div#item-header .profile-cover-action{ top:auto !important; bottom:10px !important; }
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorHi @giorgos, unfortunately we don’t have such options, at least not for the moment.
If you want to remove some of the profile menu items you can do it with the following function:COPY CODE// Remove profile tabs function bp_remove_profile_tabs() { global $bp; unset($bp->bp_nav['media']); } add_action('bp_init', 'bp_remove_profile_tabs', 9999);
Please let me know if I can help you with anything else.
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorYou can do that by adding the following styles in your theme options panel, under General Settins > Quick Css:
COPY CODE#buddypress .item-avatar.rounded, #buddypress .avatar, #item-header-avatar.rounded, .bp-login-widget-user-avatar, .bp-login-widget-user-avatar .avatar, .item-avatar, .item-avatar .avatar { border-radius:0px !important; }
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAndreiModeratorMake sure you have the last version of the theme and of the rtMedia plugin, and also be sure you didn’t made any modifications to the rtMedia layout. I’m recommending you all this because I couldn’t reproduce your behavior and this means the issue is isolated in your case.
To remove the media tab from user profile you will have to add this small code snippet into your functions.php file.
COPY CODE// Remove profile tabs function bp_remove_profile_tabs() { global $bp; unset($bp->bp_nav['media']); } add_action('bp_init', 'bp_remove_profile_tabs', 9999);
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts