Forum Replies Created
-
Author
-
Radu
ModeratorHi,
Here are the selectors
COPY CODEsection { background: #FF9800 !important; } .sidebar.sidebar-main.col-sm-3.sidebar-right { background: red; }
Screenshot how styles are applied :
The red area represent all available sidebar space
As you can see the whole sidebar has red background and the rest of the sections has a specific color.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Background of the main color or alternate color can be changed using next CSS
COPY CODE.alternate-color { background: green; } .main-color { background: transparent !important; }
This will control all elements with alternate color or main-colo
If you need to change the background color only for the title/breadcrumb area update theme to latest version (5 may update) and add this CSS
COPY CODE.breadcrumbs-container {background-color:transparent;}
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
NOTE : Child theme needs to be installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
The php errors seems to be caused by a custom code that it’s in the child theme functions.php
Try to replace that code with this one
COPY CODEremove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');
Refund can be requested here https://themeforest.net/refund_requests/new
Also please provide a reason since you now got the theme and a refund should have strong reasons
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
There it’s body color, by default it’s white.
Use this CSS to apply for all section tags
COPY CODEsection.container-wrap.main-color { background: #fcfcfc; }
cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
We don’t have a solution for that, those (activity, profile, notifications, messages, etc.) are BuddyPress components and they have separate pages, if you really need that it’s something custom that can be achieved only with a WordPress/buddypress developer intervention.
the BuddyPress navigation tabs can be hidden using this CSS
COPY CODEdiv#item-nav { display: none !important; }
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
NOTE : Child theme needs to be installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
1. Paste this code to the functions.php file from child theme
COPY CODEif (!function_exists('kleo_bp_search_form_horizontal')): function kleo_bp_search_form_horizontal ($show_button = true, $before_form=false) { global $bp_search_fields; if (function_exists('bp_is_active') && bp_is_active( 'xprofile' )) {} else { echo apply_filters('kleo_search_horizontal_no_buddypress',''); return; } if (!isset($bp_search_fields['fields_horizontal']) || count ((array)$bp_search_fields['fields_horizontal']) == 0) { echo apply_filters('kleo_search_horizontal_no_fields',''); return; } ?> <div id="search-bar"> <div class="row"> <!--Search form--> <form id="horizontal_search" action="<?php echo bp_get_root_domain (). '/'. bp_get_members_root_slug (). '/' ?>" method="get" class="<?php echo apply_filters('bp_search_horiz_extra_class','custom');?> dir-form twelve columns custom"> <div class="row"> <div class="one column hz-submit"> <button class="small button radius"><i class="icon-search"></i></button> </div> <?php if ($before_form || (isset($bp_search_fields['before_form_horizontal']) && !empty($bp_search_fields['before_form_horizontal']) ) ) : ?> <div class="two columns"> <label class="bp_search_form_filter"><?php if($before_form) echo __($before_form, 'kleo_framework'); else echo __($bp_search_fields['before_form_horizontal'],'kleo_framework');?></label> </div> <?php endif; ?> <?php $count = 0; foreach ($bp_search_fields['fields_horizontal'] as $sf) { $count++; $fname = 'field_'. $sf; $posted = isset($_GET[$fname])?$_GET[$fname]:''; $posted_to = isset($_GET[$fname. '_to'])?$_GET[$fname. '_to']:''; $field = new BP_XProfile_Field ($sf); $options = $field->get_children (); if ( isset( $bp_search_fields['agerange'] ) && $sf == $bp_search_fields['agerange'] ) { $from = ($posted == '')? '': (int)$posted; $to = ($posted_to == '')?'': (int)$posted_to; if ($to != '' && $to < $from) $to = $from; echo '<div class="two columns hz-agerange hz-from"> <select name="'.$fname.'" class="expand customDropdown">'; echo '<option value="">'.__( (isset($bp_search_fields['agelabel'])?$bp_search_fields['agelabel']:$field->name), 'kleo_framework').' '.__('from', 'kleo_framework').'</option>'; for($i=sq_option('buddypress_age_start');$i <= sq_option('buddypress_age_end');$i++) { echo '<option value="'.$i.'" '.get_selected($fname, $i, $from).' >'.$i.'</option>'; } echo '</select> </div>'; echo '<div class="two columns hz-agerange hz-to"> <select name="'.$fname.'_to" class="expand customDropdown">'; echo '<option value="">'.__( (isset($bp_search_fields['agelabel'])?$bp_search_fields['agelabel']:$field->name), 'kleo_framework').' '.__('to', 'kleo_framework').'</option>'; for($i=sq_option('buddypress_age_start');$i <= sq_option('buddypress_age_end');$i++) { echo '<option value="'.$i.'" '.get_selected($fname.'_to', $i, $to).' >'.$i.'</option>'; } echo ' </select> </div>'; continue; } if ($sf == $bp_search_fields['numrange']) { $from = ($posted == '' && $posted_to == '')? '': (float)$posted; $to = ($posted_to == '')? $from: (float)$posted_to; if ($to < $from) $to = $from; echo '<div class="two columns hz-numrange hz-from"> <input type="text" name="'.$fname.'" value="'.$from.'" placeholder="'.__( $field->name, 'kleo_framework').' '.__('from', 'kleo_framework').'" > </div>'; echo '<div class="two columns hz-numrange hz-to"> <input type="text" name="'.$fname.'_to" value="'.$to.'" placeholder="'.__( $field->name, 'kleo_framework').' '.__('to', 'kleo_framework').'" > </div>'; continue; } switch ($field->type): case 'textarea': $value = esc_attr (stripslashes ($posted)); echo "<div class='two columns hz-textarea'><input type='text' name='$fname' id='$fname' value='$value' placeholder='".__( $field->name, 'kleo_framework')."' /></div>"; break; case 'selectbox': echo "<div class='two columns hz-select'><select class='expand' name='$fname' id='$fname'>"; echo "<option value=''>".__( $field->name, 'kleo_framework')."</option>"; foreach ($options as $option) { $option->name = trim ($option->name); $value = esc_attr (stripslashes ($option->name)); $selected = ($option->name == $posted)? "selected='selected'": ""; echo "<option $selected value='$value'>".__($value,'kleo_framework')."</option>"; } echo "</select></div>"; break; case 'multiselectbox': echo "<div class='two columns hz-multiselect'><select ".apply_filters('kleo_bp_search_multiselect_attributes',"multiple='multiple' data-customforms='disabled'")." class='expand' name='{$fname}[]' id='$fname'>"; echo "<option value=''>".__( $field->name, 'kleo_framework')."</option>"; foreach ($options as $option) { $option->name = trim ($option->name); $value = esc_attr (stripslashes ($option->name)); $selected = (in_array ($option->name, (array)$posted))? "selected='selected'": ""; echo "<option $selected value='$value'>".__($value,'kleo_framework')."</option>"; } echo "</select></div>"; break; case 'radio': echo "<div class='two columns hz-radio'>"; echo "<label>".__( $field->name, 'kleo_framework')."</label>"; echo '</div>'; foreach ($options as $option) { $option->name = trim ($option->name); $value = esc_attr (stripslashes ($option->name)); $selected = ($option->name == $posted)? "checked='checked'": ""; echo "<div class='two columns bglabel'>"; echo "<label><input $selected type='radio' name='$fname' value='$value'> ".__($value,'kleo_framework')."</label>"; echo '</div>'; } break; case 'checkbox': echo "<div class='two columns hz-checkbox-name'>"; echo "<label>".__( $field->name, 'kleo_framework')."</label>"; echo '</div>'; foreach ($options as $option) { $option->name = trim ($option->name); $value = esc_attr (stripslashes ($option->name)); $selected = (in_array ($option->name, (array)$posted))? "checked='checked'": ""; echo "<div class='two columns bglabel hz-checkbox'>"; echo "<label><input $selected type='checkbox' name='{$fname}[]' value='$value'> ".__($value,'kleo_framework')."</label>"; echo '</div>'; } break; case 'textbox': default: $value = esc_attr (stripslashes ($posted)); echo "<div class='two columns hz-textbox'><input type='text' name='$fname' id='$fname' value='$value' placeholder='".__( $field->name, 'kleo_framework')."' /></div>"; break; endswitch; } echo "<input type='hidden' name='bs' value=' ' />"; do_action('kleo_bp_search_add_data'); ?> <?php if ($show_button): ?> <div class="two columns hz-submit"> <button class="small button radius"><i class="icon-search"></i></button> </div> <?php else: ?> <script type="text/javascript"> jQuery(document).ready(function($) { $("input,select,radio,checkbox","#horizontal_search").change(function() { $("#horizontal_search").submit(); }); }); </script> <?php endif;?> </div> </form> <!--end search form--> </div><!--end row--> </div><!--end Search bar--> <?php } endif;
2. I don’t understand the scenario about that, can you elaborate a little, please ?
3. Maybe using this plugin : https://wordpress.org/plugins/bp-xprofile-range-field/
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
There is no element ready to do that cuz somehow it’s tricky in some cases but you can use this workaround
Add text element in VC and in text mode add this code
<a class="full-column-link" href="https://google.com">Full column link</a>
CSS :
COPY CODEa.full-column-link { position: absolute; display: block !important; width: 100%; height: 100%; min-height: 700px; z-index: 9989; }
If the link doesn’t cover all column on height change the min-height 700px to a higher value
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
NOTE: Child theme needs to be installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
If you need more than that, you will have to edit the members-loop.php file.
In the marked line there you should paste the content the before last active
In your case instead, to use that function (if you have added to funciton.php file comment it or delete it) you will have to paste the next code in the marked line.
COPY CODE$location = bp_get_member_profile_data('field=Location'); $specialization = bp_get_member_profile_data('field=Specialization'); if ($specialization || $location) { echo '<div class="mdetcenter">'. 'Location : ' . $location . '</div>'; echo '<div class="mdetcenter">'. 'Specialization : ' . $specialization . '</div>'; }
To have the changes over update you should copy this file : /wp-content/themes/kleo/buddypress/members/members-loop.php to child theme in same path (/wp-content/themes/kleo-child/buddypress/members/)
That’s all
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Using this function and replacing /my-route-after-redirect/ with your desired landing URL after login it should solve your problem
COPY CODEfunction sq7_rdu_redirect( $redirect_to, $request, $user ) { $redirect_to = '/my-route-after-redirect/'; return $redirect_to; } add_filter('login_redirect', 'sq7_rdu_redirect', 11, 3);
NOTE : Child theme needs to be installed and activated.
The function needs to be added in wp-content/themes/kleo-child/functions.php
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorI’ve found a quicky solution for that
COPY CODE@media(max-width:991px){ div#undefined-sticky-wrapper.is-sticky .kleo-main-header{ position: fixed !important; width: 100%; margin-top:-35px; } div#undefined-sticky-wrapper.is-sticky .kleo-main-header img#logo_img, div#undefined-sticky-wrapper.is-sticky .kleo-main-header .navbar-header { height: 40px !important; line-height: 50px !important; -webkit-transition: all 0.5s ease; } }
Replace the previous code with this one
That’s allCheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionRadu
ModeratorFixed,
I’ve used this CSSCOPY CODE@media(max-width:991px) { #header span.caret { display: block !important; width: 100%; height: 100%; line-height: 30px; position: absolute; top: 0; } }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Add this CSS
COPY CODEinput#bp-browse-button { pointer-events: all !important; }
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
NOTE : Child theme needs to be installed and activated.
Let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Pelease check now it should be ok
I’ve added tthis css to quick css area instead the old one that maakes alaso the topbar fixed
COPY CODE@media(max-width:991px){ div#undefined-sticky-wrapper.is-sticky .kleo-main-header{ position: fixed !important; width: 100%; margin-top:-35px; } }
1. I’ve added the logo also on the retina field in theme options -> header options.
2. It’s ok now
3. The resize ooption it’s available only on desktop since the theme doens’t have the fixed menu on mobile cannot benefit for the resize funciton.
If you really need the resize funciton on mobile you can get a quote from our development team at this address dev@seventhqueen.com
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Add this function instead the laura solutions
COPY CODEfunction hide_sidemenu_guest() { if(!is_user_logged_in()) { ?> <style> div#sidemenu-wrapper { display: none; } div#page-wrapper,#header { padding: 0 !important; } </style> <?php } } add_action('wp_head', 'hide_sidemenu_guest');
The code will be added to wp-content/themes/buddyapp-child/functions.php
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
This snippet it works, I’ve tested
For me (Admin) it’s shown but for subscriber it’s hidden
COPY CODEadd_action('init', 'add_admin_bar_for_admins'); function add_admin_bar_for_admins() { if (current_user_can('Administrator') OR current_user_can('Editor') ) { show_admin_bar(true); }else { show_admin_bar(false); } }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 24, 2017 at 19:18 in reply to: Show registered user email address on email confirmation page #159483Radu
ModeratorHi,
Did you have tried to use the native buddyPress emailing templates ?
Wp-admin -> emails ->
For your code
You can try to activate manually accounts with this kind of function that updates the user status in database<?php add_user_meta( $user_id, 'user_status', '0' ); ?>
Then you can redirect with this function from example
COPY CODEfunction sq7_rdu_redirect( $redirect_to, $request, $user ) { $redirect_to = 'http://google.com/my-super-link/'; return $redirect_to; } add_filter('login_redirect', 'sq7_rdu_redirect');
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Make sure you have an email template created for that case, if you don’t have it create it
I have all those like that by default
This is what code contains the activation email
COPY CODEThanks for registering! To complete the activation of your account, go to the following link: <a href="{{{activate.url}}}">{{{activate.url}}}</a>
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Yes this it’s available only for logged in members otherwise the users cannot write articles..
Here it’s the code , now the shortcode will be displayed only for logged in users
COPY CODE//Shortcode for generating new article url social article add_shortcode( 'add_new_article_link', 'add_new_article_link_handler' ); function add_new_article_link_handler(){ if(is_user_logged_in()) { $link = home_url('/members/' . bp_core_get_username(get_current_user_id()) . '/articles/new/'); return "<a href='" . $link . "'> " . __('New Article', 'social-articles') . "</a>"; } }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
Moderatoryes,
Wired… try with this one
COPY CODE#buddypress select option[value=rtmedia_update] { display: none !important; }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Fine thanks, you ?
Here it’s your CSS
COPY CODE#bbpress-forums div.bbp-forum-author .bbp-author-avatar, #bbpress-forums div.bbp-reply-author .bbp-author-avatar, #bbpress-forums div.bbp-topic-author .bbp-author-avatar { float: left; text-align: center; margin: 0 auto; }
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
NOTE : Child theme needs to be installed and activated.
Have a nice weekend
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 20, 2017 at 17:51 in reply to: Kleo bbpress main index sidebar but the rest of forum full screen #159108Radu
ModeratorHi,
Add this function to wp-content/themes/kleo-child/functions.php
COPY CODEfunction bbpress_custom_layout() { if (is_bbpress()) { if ( bbp_is_forum_archive() ) { kleo_switch_layout('left'); }else{ kleo_switch_layout('full'); } } } add_action('wp_head','bbpress_custom_layout',22);
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
On the submit report page the captcha it’s displayed normally as it should, not dissappears.
VIDEO : https://drive.google.com/file/d/0Bxo5b6iHWRMwM0FiMC1Rd3NUdlk/viewMaybe there it’s a browser caching issue? Did you have tried from another browser ? or from incognito mode ?
For placing captcha in register page you can use this plugin : https://wordpress.org/plugins/wp-recaptcha-bp/
For arranging the button clear use this CSS
COPY CODE.g-recaptcha {width: 100%;display: inline-block;}
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
NOTE : Child theme needs to be installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorTry again with this one in quick css area
COPY CODE#buddypress div.item-list-tabs ul li.last select option[value=rtmedia_update] { display: none !important; }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Sorry for the late reply, that’s because the easter holiday
Use this function, it will generate a link with add new article text
COPY CODE//Shortcode for generating new article url social article add_shortcode( 'add_new_article_link', 'add_new_article_link_handler' ); function add_new_article_link_handler(){ $link = home_url('/members/' .bp_core_get_username( get_current_user_id() ) . '/articles/new/' ); return "<a href='".$link ."'> ".__('New Article', 'social-articles')."</a>"; }
OR
‘
[kleo_button title="Profile" href="##profile_link##profile/edit/" style="custom" type="app" title_alt="Update Your Profile" icon="pencil-1" uppercase="yes" letter_spacing="" custom_text="#ffffff" custom_border="#3b9b9b" custom_background="#bbbbbb"]‘This will generate the logged in profile link URL /edit
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Done,
Please check it, limit can be changed from /wp-content/themes/kleo-child/functions.php
Replace 350 with your desired number or characters
Code below:
COPY CODEif ( ! function_exists( 'kleo_excerpt' ) ) { function kleo_excerpt( $limit = 50, $words = false ) { /*Force excerpt length*/ $limit = 350; $from_content = false; $excerpt_initial = get_the_excerpt(); if ( $excerpt_initial == '' ) { $excerpt_initial = get_the_content(); $from_content = true; } $excerpt_initial = preg_replace( '<code>\[[^\]]*\]</code>', '', $excerpt_initial ); $excerpt_initial = strip_tags( $excerpt_initial ); /* If we got it from get_the_content -> apply length restriction */ if ( $from_content ) { $excerpt_length = apply_filters( 'excerpt_length', $limit ); $excerpt_initial = wp_trim_words( $excerpt_initial, $excerpt_length, '' ); } if ( $words ) { $excerpt = explode( ' ', $excerpt_initial, $limit ); if ( count( $excerpt ) >= $limit ) { array_pop( $excerpt ); $excerpt = implode( " ", $excerpt ) . '...'; } else { $excerpt = implode( " ", $excerpt ) . ''; } } else { $excerpt = substr( $excerpt_initial, 0, $limit ) . ( strlen( $excerpt_initial ) > $limit ? '...' : '' ); } return '<p>' . $excerpt . '</p>'; } } function kleo_new_excerpt_length( $length ) { return 350; }
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionRadu
ModeratorHi,
Use this css
COPY CODE.bp-user #buddypress div.item-list-tabs ul li.last select option[value=rtmedia_update] { display: none; }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
COPY CODEdiv#socket .col-sm-12 { pointer-events: auto !important; height: 100% !important; display: inline-block !important; }
NOTE : Child theme needs to be installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHello, Please add this codefunction my_bp_activities_include_activity_types( $retval ) { // only allow the following activity types to be shown $retval['action'] = array( 'activity_update', //'activity_comment', 'new_blog_post', 'new_blog_comment', 'friendship_created', 'created_group', ); return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activities_include_activity_types' );
To wp-content/themes/kleo-child/functions.php NOTE : Child theme needs to be installed and activated. That's all Cheers R.Radu
ModeratorHi,
Add this css
COPY CODE.portfolio-wrapper .portfolio-items .kleo-video-embed {min-height:250px;} .portfolio-wrapper ul li { min-height: 250px !important; }
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
NOTE : Child theme needs to be installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 13, 2017 at 20:09 in reply to: Can’t rest password on member login and there is no logout button #158451Radu
ModeratorNot marked as solution -
AuthorPosts