Forum Replies Created
-
Author
-
Radu
ModeratorHi,
There it’s z-index issue I think and it can be fixed using this CSS
COPY CODEheader {z-index:9999 !important;}
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
NOTE: Child theme needs to be installed and activated.PS: Your domain it’s not reachable on mine location also not works using google translate as proxy.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorAny shortcode can be run from PHP like this
COPY CODE<?php echo do_shortcode("[shortcode]"); ?>
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorUse this css
COPY CODEdiv.wvpl-left-box, .wvpl-size-xs div.wvpl-left-box, div.wvpl-right-box, .wvpl-size-xs div.wvpl-right-box { z-index: 20 !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,
Use this CSS
COPY CODE.section-container.container { max-width: 100% !important; }
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 solutionApril 10, 2017 at 18:54 in reply to: “View All Results” doesn’t return anything even though CPTs are in Ajax search form… #158118Radu
ModeratorHi
This it’s the css for hiding view all button
COPY CODE#header .kleo_ajax_results a.ajax_view_all { display: none; }
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,
I think it’s same or similar issue on that page,
For the events page you can use this function
COPY CODEadd_action('kleo_before_main', 'sq7rdu_show_full_width_image_before_content'); function sq7rdu_show_full_width_image_before_content() { global $post; //print_r($post); $post_name = $post->post_name; if ($post_name == 'events') { echo '<div class="fullwidth-image-before-content">'; echo the_post_thumbnail('full'); echo '</div>'; } }
Then just add a featured image to that page with slug events and it should be displayed before breadcrumbs
NOTE : Child theme needs to be installed and activated.
The function needs to be pasted in wp-content/themes/kleo-child/functions.phpLet 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 solutionApril 10, 2017 at 17:18 in reply to: Why do the audio previews not work with the news element? #158092Radu
ModeratorUse this css
COPY CODE.news-focus .left-thumb-listing .mejs-controls { display: inline!important; }
It should display the player
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,
for the box hover effect use this css
COPY CODE#buddypress #groups-list .group-inner-list:hover { box-shadow: 0px 0px 0px #e5e5e5; } #buddypress #friend-list .friend-inner-list:hover, #buddypress #member-list .member-inner-list:hover, #buddypress #members-list .member-inner-list:hover { box-shadow: 0px 0px 0px #e5e5e5; }
For the cover photo first time when I’ve accessed the profile or the group the photo was expanded by default, try from incognito to see it’s like this by default
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 function that handles comment form it’s the next one
COPY CODEif ( ! function_exists( 'kleo_comment_form' ) ) : /** * Outputs a complete commenting form for use within a template. * Most strings and form fields may be controlled through the $args array passed * into the function, while you may also choose to use the comment_form_default_fields * filter to modify the array of default fields if you'd just like to add a new * one or remove a single field. All fields are also individually passed through * a filter of the form comment_form_field_$name where $name is the key used * in the array of fields. * * @param array $args Options for strings, fields etc in the form * @param mixed $post_id Post ID to generate the form for, uses the current post if null * * @return void */ function kleo_comment_form( $args = array(), $post_id = null ) { global $id; $user = wp_get_current_user(); $user_identity = $user->exists() ? $user->display_name : ''; if ( null === $post_id ) { $post_id = $id; } else { $id = $post_id; } if ( comments_open( $post_id ) ) : ?> <div id="respond-wrap"> <?php $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $fields = array( 'author' => '<div class="row"><p class="comment-form-author col-sm-4"><label for="author">' . __( 'Name', 'kleo_framework' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="author" name="author" type="text" class="form-control" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>', 'email' => '<p class="comment-form-email col-sm-4"><label for="email">' . __( 'Email', 'kleo_framework' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="email" name="email" type="text" class="form-control" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>', 'url' => '<p class="comment-form-url col-sm-4"><label for="url">' . __( 'Website', 'kleo_framework' ) . '</label><input id="url" name="url" type="text" class="form-control" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p></div>', ); if ( function_exists( 'bp_is_active' ) ) { $profile_link = bp_get_loggedin_user_link(); } else { $profile_link = admin_url( 'profile.php' ); } $comments_args = array( 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'kleo_framework' ), $profile_link, $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink() ) ) ) . '</p>', 'title_reply' => __( 'Leave a reply', 'kleo_framework' ), 'title_reply_to' => __( 'Leave a reply to %s', 'kleo_framework' ), 'cancel_reply_link' => __( 'Click here to cancel the reply', 'kleo_framework' ), 'label_submit' => __( 'Post comment', 'kleo_framework' ), 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . __( 'Comment', 'kleo_framework' ) . '</label><textarea class="form-control" id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>', 'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.', 'kleo_framework' ), wp_login_url( apply_filters( 'the_permalink', get_permalink() ) ) ) . '</p>', ); comment_form( $comments_args ); ?> </div> <?php endif; } endif;
Paste it in child theme ( wp-content/themes/kleo-child/functions.php ) and change what you need for comment form, in your case the label can be changed from here ( see next screenshot )
Best regards
RaduHi 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 to wp-content/themes/kleo-child/functions.php
COPY CODE/*Fix chinesse characters on excerpt*/ function sq_fix_excerpt_chinesse_characters($excerpt) { return mb_substr( $excerpt, 0, 10 ); } add_filter('the_excerpt', 'sq_fix_excerpt_chinesse_characters', 99);
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
ModeratorSalut, este deja fixat, deci urmatorul update o sa contina acest fix.
O saptamana frumoasa iti doresc
De asemenea acest CSS fixeaza sageata de la stilul de butoane see through
COPY CODE.kleo-main-header a.btn-see-through span.caret:after { top:14px; }
Aceste vor fi incluse in urmatorul update
Salutari
RaduHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
To have a different style on mobile you should use the media query
from example
COPY CODE@media (max-width:600px) { #main .main-color {background: red;} }
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 our matching circle using this CSS
COPY CODE.circular-item { display: none; }
Combining plugin with our circle theme it’s not possible it require custom development
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 code will be something like this
COPY CODEfunction wpse_19692_registration_redirect() { return home_url( '/community-welcome/' ); } add_filter( 'registration_redirect', 'wpse_19692_registration_redirect' );
TEst it
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,
Use this css
COPY CODE.has-google-search-box .sticky-wrapper { z-index:1490 !important;}
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
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
Now it works on your site just I’ve tested
If you have modified page by adding
COPY CODE<a href="#kleo-lostpass-modal">
live from browser console the html markup this will not works because the page should be reloaded, the JS should be re-initialized
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorYou can decrease the image size on forums using this css
COPY CODE.forum article img.attachment-kleo-full-width { max-width: 100px; margin: 0 auto; text-align: center; }
If you want to hide image use this CSS
COPY CODE.forum article img.attachment-kleo-full-width { 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,
In first instance please replace the content of this file : /Applications/XAMPP/htdocs/kleo/wp-content/themes/kleo/lib/theme-functions.php with this one : https://pastebin.com/raw/0DmHYS25
The HTML markup for the breadcrumbs it’s on this file: /wp-content/themes/kleo/lib/theme-functions.php
But it’s not recommended to modify in theme cuz on theme update the changes will gone , after you replace the file content add next function to child theme wp-content/themes/kleo-child/functions.php
COPY CODEif ( ! function_exists( 'kleo_title_section' ) ) { function kleo_title_section($args = false) { $defaults = array( 'title' => get_the_title(), 'show_title' => true, 'show_breadcrumb' => true, 'link' => '', 'output' => "<section class='{class} border-bottom'><div class='container'>{title_data}<div class='breadcrumb-extra'>{breadcrumb_data}{extra}</div></div></section>", 'class' => 'container-wrap main-title alternate-color ', 'extra' => '<p class="page-info">' . do_shortcode(sq_option('title_info', '')) . '</p>', 'heading' => 'h1' ); // Parse incoming $args into an array and merge it with $defaults $args = wp_parse_args($args, $defaults); $args = apply_filters('kleo_title_args', $args); // OPTIONAL: Declare each item in $args as its own variable i.e. $type, $before. extract($args, EXTR_SKIP); if (!empty($link)) { $title = "<a href='" . $link . "' rel='bookmark' title='" . __('Permanent Link:', 'kleo_framework') . " " . esc_attr($title) . "'>" . $title . "</a>"; } $breadcrumb_data = ''; if ($show_breadcrumb) { $breadcrumb_data = kleo_breadcrumb(array( 'show_browse' => false, 'separator' => ' ', 'show_home' => __('Home', 'kleo_framework'), 'echo' => false )); } $title_data = ''; if ($show_title) { $title_data = '<{heading} class="page-title">{title}</{heading}>'; } if (!$show_breadcrumb && $extra == '') { $class .= ' title-single'; } $title_layout = sq_option('title_layout', 'normal'); if (is_singular() && get_cfield('title_layout') && get_cfield('title_layout') != '') { $title_layout = get_cfield('title_layout'); } if ($title_layout == 'center') { $class .= ' main-center-title'; } elseif ($title_layout == 'right_breadcrumb') { $class .= ' main-right-breadcrumb'; } $output = str_replace('{title_data}', $title_data, $output); $output = str_replace('{class}', $class, $output); $output = str_replace('{title}', $title, $output); $output = str_replace('{breadcrumb_data}', $breadcrumb_data, $output); $output = str_replace('{extra}', $extra, $output); $output = str_replace('{heading}', $heading, $output); return $output; } }
Now you can make the breadcrumb structure updateproof.
Where i can see a post with youtube video displayed twice ? URL + admin credentials in a private reply
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,
Use this CSSCOPY CODE@media(max-width:991px) { div#header { position: fixed !important; width: 100%; z-index: 999; } }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 30, 2017 at 15:45 in reply to: [ Solved + Solution ] Excerpt lenght in WordPress blog page #157219Radu
ModeratorHi,
Please replace all of that code with this one, the excerpt tag will work as it should
COPY CODEif ( ! function_exists( 'kleo_excerpt' ) ) { function kleo_excerpt( $limit = 50, $words = false ) { /*Force excerpt length*/ $limit = 500; $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 '' . $excerpt . ' '; } } function kleo_new_excerpt_length( $length ) { return 500; } add_filter( 'excerpt_length', 'kleo_new_excerpt_length' );
You can replace 500 value with your desired excerpt length
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,
Please replace the code with this one
COPY CODEfunction overwrite_mebers_dir_meta() { $marital_status = bp_get_member_profile_data('field=Marital status'); $i_am_a = bp_get_member_profile_data('field=I am a'); $output['age'] = apply_filters('kleo_bp_meta_after_age', get_member_age(bp_get_member_user_id())); $output['marital_status'] = $marital_status; $output['i_am_a'] = $i_am_a; return $output; } add_filter('kleo_bp_meta_fields', 'overwrite_mebers_dir_meta');
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,
You can remove that using this CSS
COPY CODEul#activity-stream li.load-more { display: none; }
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
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,
Do you have added any redirect rule in wp-content/themes/kleo-child/functions.php ?
If yes remove it,
If not you to set your destination after loginCOPY 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)
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,
Did you have tried to divide the main row first ? in inside columns to add the icon and the texts?
http://www.wpfy.me/wp-content/uploads/2015/02/Visual-Composer-Row-Layouts.png
Example using divided row, in the bottom part it’s how they are rendered.
This it’s my entire used shortcode
COPY CODE[vc_row][vc_column width="1/4"][vc_icon][vc_column_text]I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.[/vc_column_text][/vc_column][vc_column width="1/4"][vc_icon][vc_column_text]I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.[/vc_column_text][/vc_column][vc_column width="1/4"][vc_icon][vc_column_text]I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.[/vc_column_text][/vc_column][vc_column width="1/4"][vc_icon][vc_column_text]I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.[/vc_column_text][/vc_column][/vc_row]
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 27, 2017 at 16:44 in reply to: GeoDirectory Location Bar messes up Revolution Slider layers layout #156803Radu
ModeratorHi,
The search bar comes from Geo directory plugin or add-ons so to can move the search bar in other place the plugin needs to have a shortcode available to can render the search bar where you need, you can know that by asking the plugin developer if there it’s available some shortcode for search bar. if yes you can achieve the searchbar between menu and slider in that page.
The search bar shortcode or any other type of content can be added in that page between menu and slider using the next funciton
COPY CODEfunction render_search_bar_in_listing_page() { if( geodir_is_page('detail') ) { echo do_shortcode('[your-shortcode-there]'); } } do_action( 'kleo_before_content', 'render_search_bar_in_listing_page' );
Instead of [your-shortcode-there] paste your shortcode
NOTE : Child theme needs to be installed and activated.
The function needs to be pasted in wp-content/themes/kleo-child/functions.php
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,
Please replace content of this file : /wp-content/themes/kleo/functions.php with this one : https://pastebin.com/raw/NfRdXjje
With that you will be able to use this function and filter to translate the error login message
COPY CODEadd_filter('login_errors','login_error_message', 999); function login_error_message($error){ $error = "Test error message"; return $error; }
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,
Some links from BuddyPress from example haves and needs query strings into links to can pass some data
So please the codes that removes the query strings from URL in this check, in this way your functions will run only on non-buddypress pages.
COPY CODEif( !is_buddypress() ){ }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 24, 2017 at 18:30 in reply to: [ Solved + Solution ] Excerpt lenght in WordPress blog page #156601Radu
ModeratorHi,
Done I’ve replaced the function
See screenshot
I’ve used this functionCOPY CODEif ( ! function_exists( 'kleo_excerpt' ) ) { function kleo_excerpt( $limit = '', $words = false ) { $full_post_content = get_the_content(); $limit = '99999'; $excerpt = wp_strip_all_tags(substr( $full_post_content, 0, $limit )); return '<p>' . $excerpt . '</p>'; } }
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,
WE will fix this in next theme update until then please use this CSS by adding it to wp-admin -> theme options -> general settings -> quick css
COPY CODE@media(max-width:480px) { .kleo-mfp-zoom .mfp-container { padding: 0; margin: 0 auto; max-width: initial; } }
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,
You can do that using this function
COPY CODEfunction overwrite_mebers_dir_meta() { $marital_status = bp_get_member_profile_data('field=Marital status'); $marital_status = bp_get_member_profile_data('field=I am a'); $output['age'] = apply_filters('kleo_bp_meta_after_age', get_member_age(bp_get_member_user_id())); $output['marital_status'] = $marital_status; $output['i_am_a'] = $i_am_a; return $output; } add_filter('kleo_bp_meta_fields', 'overwrite_mebers_dir_meta');
Make sure to have identical name of the field as how you have added in backend on $marital_status and $marital_status variable and that’s all you should copy the code to function.php of your child theme
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionRadu
ModeratorI see this is a wp thing, not a theme but you can try to add the priority parameter to the filter
So paste again the code with 999 value as priority value
COPY CODEadd_filter('login_errors','login_error_message', 999); function login_error_message($error){ $error = "Test error message"; return $error; }
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,
See screenshot
The membership role cannot be rendered in the fields area there is no hook available.
COPY CODEfunction render_membership_level_on_profile() { if(is_user_logged_in() && function_exists('pmpro_hasMembershipLevel') && pmpro_hasMembershipLevel()) { global $current_user; $current_user->membership_level = pmpro_getMembershipLevelForUser($current_user->ID); echo '<div class="mem-level-user-profile">Membership Level: ' . $current_user->membership_level->name .'</div>'; } } add_action('kleo_bp_after_profile_image','render_membership_level_on_profile');
The function needs to be pasted in wp-content/themes/sweetdate-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,
The BuddyApp theme it uses only the Grid System and Responsive utilities.
But you can access this link and to http://getbootstrap.com/customize/?id=6c26404ea30172be9961 uncheck the grid system and responsive utilities then you should check what you need to be included on your site for tabs and pills to work, from example you need to have the next components checked (see screenshot)
And also this from jQuery plugins (see screenshot)
Then from bottom of the page you should click download and compile and after unzip the arhive and upload into your buddyapp child theme ( wp-content/themes/buddyapp-child/custom-bootstrap/ ) the bootstrap.min.css and bootstrap.min.js files.
Now you should load those files thru theme using the next functions
COPY CODEfunction load_css_js() { wp_enqueue_style( 'my_custom_bootstrap_css', get_template_directory_uri() . '/custom-botostrap/bootstrap.min.css', false, NULL, 'all' ); wp_register_script( 'my_custom_bootstrap_js', get_template_directory_uri() . '/custom-botostrap/bootstrap.min.js', array( 'jquery' ), NULL, false ); wp_enqueue_script( 'my_custom_bootstrap_js' ); } add_action( 'wp_enqueue_scripts', 'load_css_js' );
That’s all
Good luck
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts