Forum Replies Created
-
Author
-
Radu
ModeratorHi,
1.
The limit can be changed by addind the next codes to /wp-content/themes/kleo-child/functions.phpReplace 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; }
2. What element you need more specific ?
for all use this selector
#header *, #header > *,#header * a {
font-size: 15px !important;
}Code will be added to wp-admin -> theme options -> general settings -> quick css
3.
No quick solution for that… a workaround may be setting them to be everywhere and with soem css to be nidden in non bbpress places.4.
Provide url to see live the behaviour.5.
Go to wp-admin -> theme options -> blog
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 9, 2018 at 17:08 in reply to: rtMedia bug – site activity button does not work after latest updates #203358Radu
ModeratorHi,
Not sure exactly whyyyy but if you will add this css, it will stay how it’s with rtmedia active.
COPY CODE#buddypress #whats-new-options { height: auto !important; }
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
check it now
It should be ok on desktop for users and guests also on mobile !
I had replaced the code that Laura gives to you with this one in theme options -> quick css
COPY CODE/*Header button + mobile style*/ .logged-in .header_button_filled { background: #17c3a9; border: 3px #17c3a9 solid; border-radius: 10px; margin-left: 10px; } .logged-in .header_button_filled a { color: white !important; font-weight: 600 !important; } @media(max-width:991px) { .logged-in .header_button_filled { width:auto !important; margin-left:0; } .logged-in .header_button_filled a { text-align:center !important; min-width:300px; } } /*END Header button + mobile style*/
All good ?
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHere’s the css
COPY CODE@media(max-width:768px) { div#main { padding-top:0; } .five.columns p { display:none; } }
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi
I see please try with this one instead
COPY CODE/* Radu SQ: easy redirect to profile after login */ function sq7_rdu_redirect( $redirect_to, $request, $user ) { $redirect_to = bp_core_get_user_domain($user->ID); return $redirect_to; } add_filter('kleo_modal_login_redirect', 'sq7_rdu_redirect', 11, 3);
Let me know
If you have any redirection plugin like peters redirect de-activate it.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 4, 2018 at 20:12 in reply to: Show javascript dependent on user level or whether they are logged in #202919Radu
ModeratorNot marked as solutionRadu
ModeratorHi,
I think this it’s all that you need
COPY CODE//Disables the pmpro redirect to levels page when user tries to register add_filter("pmpro_login_redirect", "__return_false"); function my_pmpro_default_registration_level($user_id) { //Give all members who register membership level 1 pmpro_changeMembershipLevel(1, $user_id); } add_action('user_register', 'my_pmpro_default_registration_level');
So all users that signup from now will have by default the membership with ID 1, the current users shouldn’t be affected since it’s used user_register hook.
In any case do a database backup before running the script to be sure 100% that will not affect the existing users.
Changing the settings in theme options -> memberships -> will be applied for all users !
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
You can hide the footer easly using this css
COPY CODE#footer {display:none !important;}
Having same view on mobile like desktop it;s not possibe there are to mutch things to change for that and also no exact instructions for that.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorFiled can be hidden using this css
COPY CODE#send_message_form label[for="subject"] { display: none !important; } #send_message_form input#subject { display:none !important; }
Not sure about the email there look in buddypress settings or ask on their forums
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Buddypress pages cannot be customized by builders lile Visual Composer because the page i’s populated on the fly by the buddypress filters. There you should build php custom template in child theme.
The file that controls that it’s this : /wp-content/themes/kleo/buddypress/members/members-loop.php
You can modify the templates by copying them on child theme in same directory structure
members directory loop : /wp-content/themes/kleo-child/buddypress/members/members-loop.phpOtherwise you can create a new page where you will add the elements and arrange the layout exactly how you had described excepting the breadcrump cuz we don’t have shortcode for that.
So you can combine all methods by generateing the shortcodes on visual composer and editing the php file by rendering the shortcodes in place where you need.
You can hide the tile using this css
COPY CODE.directory h1.page-title { display: none; }
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Hmm not sure why that happens, on our demo that not happens right ?
You can use the next function to redirect you directly to profile after login
COPY CODE/* Radu SQ: easy redirect to profile after login */ function sq7_rdu_redirect( $redirect_to, $request, $user ) { $redirect_to = bp_core_get_user_domain($user->ID); return $redirect_to; } add_filter('login_redirect', 'sq7_rdu_redirect', 11, 3);
Orr the next function to redirect to the homepage
COPY CODE/* Radu SQ: easy redirect to profile after login */ function sq7_rdu_redirect_reload( $redirect_to, $request, $user ) { $redirect_to = site_url(); return $redirect_to; } add_filter('login_redirect', 'sq7_rdu_redirect', 11, 3);
It may prevent that behaviour.
The function will have to be added in wp-content/themes/sweetdate-child/functions.php and the child theme should be installed and activated
Let me know
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 25, 2018 at 19:03 in reply to: Non logged users restriction snippet blocking user activation link. #201901Radu
ModeratorNot marked as solutionJune 25, 2018 at 17:50 in reply to: 2 issues, Registration Activation Code and Issue with Profile Page #201879Radu
ModeratorNot marked as solutionRadu
ModeratorHi,
The php version it’s something like this
COPY CODEecho ' <a href="/wp-login/"></a> ';
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
There are two ways to show the login pop-up
1. Adding at the end of the link /#show-login example : http://rdu.local/kleo/#show-login
2. Adding this class kleo-show-login to the element that you want to click and to appear the pop-up.
COPY CODE<a href="http://rdu.local/kleo" class="kleo-show-login">Login</a>
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi
Done,
I had added specific class for every column named setorder1,2,3,4 and so on then i had added this css to quick css area
COPY CODE@media(max-width:991px) { .setorder1 { order:2 !important; } .setorder2 { order:1 !important; } .setorder3 { order:1 !important; } .setorder4 { order:2 !important; } .setorder5 { order:3 !important; } .setorder6 { order:4 !important; } .setorder7 { order:6 !important; } .setorder8 { } }
Now they arranging ok
Let me know
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 19, 2018 at 18:25 in reply to: Change the + with a magnifier in the Kleo post grid for Galleries #201265Radu
ModeratorThe function will have to be added in wp-content/themes/kleo-child/functions.php
COPY CODE//Change the hover on portfolio add_action('after_setup_theme','kleo_my_member_data'); function kleo_my_member_data() { global $kleo_config; //this is the details field, right now it take the "About me" field content $kleo_config['image_overlay'] = '<span class="hover-element"><i>Aaa</i></span>'; }
Replace aaa with your desired icon or character
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorThe wigets are managed under wp-admin -> appearance -> widgets
You can remove them, you don’t have how to remove it only from a page. (Maybe using this pugin : https://wordpress.org/plugins/conditional-widgets/ not sure if still works, check it, also check the documentation to understand how you can use it.)
Css for changing the color when hover menu items
COPY CODE.top-bar ul>li:hover { background: red !important; }
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Why you aren’t place directly the shortcode there ?
COPY CODE[vc_images_carousel]
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
there’s the css
COPY CODE.elementor-widget-container a.elementor-button-link span { color: red !important; }
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 15, 2018 at 17:00 in reply to: Navbar Transparent on desktop but non-transparent on mobile #200889Radu
ModeratorHi,
Just add this css
COPY CODE@media(min-width:991px) { .kleo-main-header.header-normal { background: transparent !important; } .kleo-main-header *, .kleo-main-header a * { color:#333 !important; } div#main { margin-top: -88px; } }
Change 333 color with your desired
No need to change everything else
The css will be added to wp-admin -> theme options -> General settings -> Quick CSS
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorThat it’s a buddypress feature you can try the next
To increase the avatar size make sure that you have next lines added to the file.
COPY CODEif ( !defined( 'BP_AVATAR_THUMB_WIDTH' ) ) define( 'BP_AVATAR_THUMB_WIDTH', 120 ); //change this with your desired thumb width if ( !defined( 'BP_AVATAR_THUMB_HEIGHT' ) ) define( 'BP_AVATAR_THUMB_HEIGHT', 120 ); //change this with your desired thumb height if ( !defined( 'BP_AVATAR_FULL_WIDTH' ) ) define( 'BP_AVATAR_FULL_WIDTH', 580 ); //change this with your desired full size if ( !defined( 'BP_AVATAR_FULL_HEIGHT' ) ) define( 'BP_AVATAR_FULL_HEIGHT', 580 ); //change this to default height for full avatar
Code can be pasted in this file : “wp-content/plugins/bp-custom.php” or in child theme functions.php wp-content/themes/kleo-child/functions.php
Replace 120 and 580 with your desired values
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 14, 2018 at 17:29 in reply to: How to sidewide hide theme header and input a shortcode menu? #200816Radu
ModeratorYes, if you don’t need that
Wrap the content of the header.php into a condition like this
COPY CODEif(get_current_blog_id() == '1') { //header content here }
So the header will be run only for the blog with id 1
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 13, 2018 at 18:36 in reply to: Forum Restriction does not trigger PMPro Registration Page #200732Radu
ModeratorHi,
Check if that still happens default wp theme, if yes it may be related to the bbpress itself. having that plugin and the restrict should be sufficient.
As a workaround try this code
COPY CODEfunction sq7r_force_redirect_forum_123() { if (strpos($_SERVER['REQUEST_URI'], "/forum/business-forum/") !== false) { header('Location: http://christelijk-podium.nl/register/'); } } add_action('wp_enqueue_scripts', 'sq7r_force_redirect_forum_123',999);
The function will have to be added in wp-content/themes/kleo-child/functions.php
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi, Use the next css to make there for few icons then the more button will be displayed highlited.@media(max-width:991px) { #buddypress div.item-list-tabs ul {width: auto !important;} #buddypress div#item-nav {padding: 0;} #buddypress div#item-nav ul li {opacity:1 !important;} #buddypress div#item-nav .responsive-tabs {height: 102px !important;} #buddypress div#item-nav ul li a:before { margin-bottom: 10px !important;} #buddypress div#item-nav ul li a {padding: 0 7px;font-size:10px;} #buddypress div#item-nav ul li a:before {font-size:44px;} #buddypress div#item-nav a.dropdown-toggle:before { background-color: #777 !important; color: #fff !important; } }
The last selector targets only the more button so if you need to highlite only more button copy and paste only that cssThe css will be added to wp-admin -> theme options -> General settings -> Quick CSS Cheers R
Radu
ModeratorHi,
Just add this css in wp-admin -> theme options -> stilying options -> quick css
COPY CODEdiv#profile .circular-item { display: none !important; }
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi
just use this css
COPY CODE@media (max-width: 991px){ .kleo-main-header, .navbar-transparent .kleo-main-header, .kleo-navbar-fixed.navbar-transparent #header { background-color: #FFF; } .navbar-transparent .navbar-toggle .icon-bar { background-color:#000 !important; } ul#menu-kleonavmenu li a { color: rgba(12,12,12,0.8) !important; } }
The css will be added to wp-admin -> theme options -> General settings -> Quick CSS
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts