Forum Replies Created
-
Author
-
Radu
ModeratorHi,
For the add cover button add this css
COPY CODE.buddypress div#item-header .profile-cover-action div.generic-button, .buddypress .profile-cover-action a.button {background:transparent;}
The notification box shows as it should on your install how can i reproduce that ?(steps + screenshots)
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 add this css
COPY CODE.kleo_ajax_results { overflow-y: scroll !important; max-height: 700px !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,
Please add this css to style.css at the end
COPY CODE@media screen and (max-width: 782px){ html { margin-top: 0 !important; } }
Delete the margin-top:-50px; form kleo-child/style.css
If you want to limit the logo width over the 782px width of window you can do it with this CSSCOPY CODE@media screen and (min-width: 782px){ img#logo_img{max-width:300px;} }
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 buddypress profile icons if you want to have more that 7 icons inline you should decrease the horizontal padding
COPY CODE#buddypress div#item-nav ul li a { padding: 15px 5px; }
You can change the 5px value for adapting the space
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorThis function needs to be pasted in wp-content/themes/kleo-child/functions.php
COPY CODEadd_action('wp_head','Kleo_hook_font'); function Kleo_hook_font() { $output="<link rel='stylesheet' href='http://linktomyfont.com/font.css' type='text/css' media='all' />"; echo $output; }
and the css in The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
body,a,b,h1,h2,h3,h4,h5,h5 { font-family : ‘DroidArabicNaskh’; }
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 use this css it styles a little the single book pageCOPY CODE#mbm-book-page .mbm-book-cover, #mbm-book-page .mbm-book-goodreads-image {width: 65% !important; margin-right:20px;} #mbm-book-page .mbm-book-summary, #mbm-book-page .mbm-book-details-outer, #mbm-book-page .mbm-book-excerpt { float: left; width: 32% !important; margin: 0; } div#mbm-book-page { padding: 0; margin: 0 !important; } .single-mbdb_book .article-content {float:left !important; margin:0 !important;margin-bottom:40px !important;} .single-mbdb_book .container .with-meta .article-content, .posts-listing.standard-listing.with-meta .article-content {width: 100% !important;} .single-mbdb_book #mbm-book-page .mbm-book-details {margin:0}
I’ve changed the meta style from left to inline under title
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 add this CSS
COPY CODE@media (max-width: 991px){ .header-two-rows #header .is-sticky {margin-top: -35px !important;} }
The CSS will be added to wp-admin -> theme options -> general settings -> quick CSS
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,
The dynamic.css file it’s generated after you press save changes in theme options, as you can see the file remains physically on the server but isn’t accessible via http and if the folder isn’t writable the styles will be rendered in head instead of dynamic.css file.
Try to add this function to child theme
COPY CODEfunction handle_rendering_css() { add_action('wp_head', 'kleo_custom_head_css'); } add_action('init', 'handle_rendering_css');
The function needs to be pasted in wp-content/themes/kleo-child/functions.php
This will render also the css to the head
Let me know if the problem continue to happens using that snippet
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 use this CSS to hide the sidebar on mobile
COPY CODE@media (max-width:991px) { .sidebar {display:none;} }
You can change the 991 px value with a lower one.
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 try this function
COPY CODEfunction remove_asd_font_awesome() { wp_dequeue_style('font-awesome'); } add_action('after_setup_theme', 'remove_asd_font_awesome');
The function needs to be pasted in wp-content/themes/kleo-child/functions.php
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 solutionRadu
ModeratorHi,
Please show me the wpengine specific code please ?
It should be like this
COPY CODEadd_action( 'wp_enqueue_scripts', 'load_buddypress_js' ); function load_buddypress_js () { if (bp_is_group() || is_page( 'activity' )) { wp_enqueue_script('buddypress_query',plugins_url() . '/buddypress/bp-core/js/jquery-query.min.js',array("jquery")); wp_enqueue_script('buddypress_members',plugins_url() . '/buddypress/bp-core/js/widget-members.min.js',array("jquery")); wp_enqueue_script('buddypress_cookie',plugins_url() . '/buddypress/bp-core/js/jquery-cookie.min.js',array("jquery")); wp_enqueue_script('buddypress_scroll', plugins_url() . '/buddypress/bp-core/js/jquery-scroll-to.min.js', array("jquery")); wp_enqueue_script('buddypress_js',get_template_directory_uri() . '/buddypress/js/buddypress.min.js',array("jquery")); } }
But if you delete the code form functions you are able to post and comment to buddypress activity etc?
Anyway the compat code it’s between buddypress and wp engine not between kleo and wp engine you can ask the wpengine support about that
Let me know
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Fixed please check,
I’ve added this function to your child theme to can make this work, please keep and use that function on that hosting environment, it haves some specific security settings.
If any other users encounter a similar issue with plugins disabled this function can help.
COPY CODEfunction ovewrite_kleo_ajax_login_method() { $obj_array['loginUrl'] = site_url(); return $obj_array; } add_filter('kleo_localize_app','ovewrite_kleo_ajax_login_method');
The function needs to be pasted 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 solutionMarch 6, 2017 at 19:42 in reply to: .friend-item { z-index: 9999 !important } style breaks fixed header for widths < 768px #154919Radu
ModeratorHi,
Please add this CSS to wp-admin -> theme options -> styling options -> quick css
COPY CODE.friend-item { z-index:1 !important; }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 6, 2017 at 16:09 in reply to: Error: woocommerce “please select some product options before adding this product to your cart” on mobile #154888Radu
ModeratorHi,
My recommendation’s to hide on mobile the buttons add to cart and quick view and users to click to desired product and to add it to cart from the product page
You can use this css to hide the buttons on mobile only
COPY CODE@media (max-width: 991px) { li.product figcaption .shop-actions { 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,
Just add this code to wp-content/themes/kleo-child/functions.php
COPY CODEfunction my_cpt_sq_metabox_menu_options_post_layout($post_types) { $post_types[] = 'portfolio'; return $post_types; } add_filter('sq_metabox_page_menu', 'my_cpt_sq_metabox_menu_options_post_layout');
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,
You will have to cpy comments.php file from wp-content/themes/kleo/comments.php to wp-content/themes/kleo-child/
then you should add the red marked code
COPY CODE<?php if (!is_singular( 'your_cpt' ) ) { ?> <?php } ?>
Replace your_cpt with your cpt slug
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 2, 2017 at 15:59 in reply to: PHP Warning: in_array() expects parameter 2 to be array, boolean given #154603Radu
ModeratorHi
The problem may be other
COPY CODE[28-Feb-2017 22:39:50 UTC] PHP Fatal error: Call to undefined function adrotate_group() in /mnt/stor14-wc1-dfw3/staging.ilovenz.me/web/content/wp-content/themes/kleo-child/single.php on line 65
The adrotate_group() cannot be called maybe in beginning you have used ad rotate plugin and now it’s not activated or deleted
Check that
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’ve saw that, there it’s no quick solution for what you need but I’ve created a small function that allows you to restrict by certain post type
COPY CODEfunction my_resitrct_my_cpt() { global $pmpro_pages, $post; if( is_singular( 'gd_breeders' ) || is_singular( 'your_second_cpt' ) ) { if ( is_user_logged_in() && !pmpro_hasMembershipLevel() ) { if (isset($post->ID) && !in_array($post->ID, $pmpro_pages)) { wp_redirect( pmpro_url() ); } } } } add_action('template_redirect', 'my_resitrct_my_cpt');
This it’s something custom if you need more assistance for your project I recommend you to hire a developer
The function needs to be pasted 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
ModeratorHi,
I’ve saw that, there it’s no quick solution for what you need but I’ve created a small function that allows you to restrict by certain post type
COPY CODEfunction my_resitrct_my_cpt() { global $pmpro_pages, $post; if( is_singular( 'gd_breeders' ) || is_singular( 'your_second_cpt' ) ) { if ( is_user_logged_in() && !pmpro_hasMembershipLevel() ) { if (isset($post->ID) && !in_array($post->ID, $pmpro_pages)) { wp_redirect( pmpro_url() ); } } } } add_action('template_redirect', 'my_resitrct_my_cpt');
This it’s something custom if you need more assistance for your project I recommend you to hire a developer
The function needs to be pasted 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
ModeratorHi,
Upload the attached file after you unzip it to wp-contentthemeskleo-childand in functions.php from child theme add this code
COPY CODEif (!function_exists('kleo_widgets_init')): /** * Registers our main widget area and the front page widget areas. * * @since Kleo 1.0 */ function kleo_widgets_init() { register_sidebar(array( 'name' => 'Footer column 5', 'id' => 'footer-5', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); } endif; add_action( 'widgets_init', 'kleo_widgets_init' );
Then you will have five columns in footer
Cheers
R.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.Radu
ModeratorAdd also this CSS
COPY CODE.kleo-main-header img#logo_img { max-width: 357px; }
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,
Load those CSS s into child theme style.css and check how it looks on mobile and also on desktop
From my point of view it’s ok let me know
COPY CODE@media (max-width: 991px) { .kleo-main-header .navbar-collapse.collapse { display: block !important; } a.ubermenu-responsive-toggle.ubermenu-loc-primary { margin-top: 45px !important; } } #header .navbar-nav .dropdown-menu li a { color: #fff !important; } .header-lp.kleo-main-header .secondary-menu .navbar-nav { text-align: left; margin-top: 0px !important; } .ubermenu.ubermenu-main {float:left !important; margin:0 !important;padding: 0 auto !important } .kleo-main-header .navbar-nav > li > a { line-height: 140px !important; } div#undefined-sticky-wrapper .container { margin: 0 !important; padding: 0 !important; }
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 27, 2017 at 20:01 in reply to: Change the appearance of navigation links in profile. #154287Radu
ModeratorNot marked as solutionRadu
ModeratorHi,
What are actually the theme problems?
None of the files that you have mentioned in previews post are not part of sweetdate theme
COPY CODE/wordpress/wp-content/languages/themes/files.php /wp-content/themes/nuvioaxis-green/alias.php /wp-content/themes/sketch/3d7a.php /xmlrpc.php /wp-login.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
ModeratorTry to use this instead
COPY CODEfunction sq7_rdu_redirect( $redirect_to, $request, $user ) { $redirect_to = get_permalink(); 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
ModeratorYes because those are for specific cases like it’s written
Login redirect for Popup and Redirect after Facebook Registration so for the other login case you will have to use a function like the next one
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);
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 23, 2017 at 18:33 in reply to: Search / Ajax results / No posts on the ajax list if the word can’t be found #154043Radu
Moderator1. I have also that code in my functions PHP and it’s displayed and on your search form if I search for different thigs results are the same.
Maybe you have other things in child theme that can cause this, also de-activate all plugins except Visual Composer and K-elemets to check how it behaves
2. In this function it;s the loader for the search http://pastebin.com/raw/mJySs4PA you should add that into child theme functions.php
This is the div that generates the loader
COPY CODE<span class="kleo-ajax-search-loading"><i class="icon-spin6 animate-spin"></i></span>
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.popover > * { font-family: fantasy !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,
Maybe the logo it’s too wide in this case use this CSS
COPY CODE@media(min-width:991px) { strong.logo.retina-logo { width: 263px; margin: 0; } } @media(min-width:1200px) { strong.logo.retina-logo { width: initial !important; margin: 0; } }
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,
Please made a screenshot for what element you want to change the font anyway if it’s about the kleo login pop-up use this
COPY CODEdiv#kleo-login-modal > *, div#kleo-login-modal h3 { font-family: fantasy !important; }
Replace with your font family
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.home .feature-items h3.feature-title { text-align: center; padding: 20px 0 0 0!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 solutionFebruary 22, 2017 at 19:12 in reply to: How to disable kleo shortcode in wordpress edit at frontend with subscriber role #153915Radu
ModeratorHi,
I’ve omitted to specify in article where the function should be paste
The code function needs to be pasted in wp-content/themes/kleo-child/functions.php
COPY CODEif( !current_user_can('editor') || !current_user_can('administrator') ) { add_action( 'admin_init', 'sq_remove_admin_shortcodes_btn', 12 ); } function sq_remove_admin_shortcodes_btn() { global $k_elements_tiny; remove_filter( 'mce_external_plugins', array( $k_elements_tiny, 'add_rich_plugins' ) ); remove_filter( 'mce_buttons', array( $k_elements_tiny, 'register_rich_buttons' ) ); }
The above code function needs to be pasted in wp-content/themes/kleo-child/functions.php
As you can see there it’s a check if it’s not administrator or is not editor the button to be removed
For further improvement at this you should do it yourself you should figure out
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,
IT sees the site it’s public
Add this CSS
COPY CODE@media(max-width:620px) { .logo img {max-width:400px;} } @media(max-width:530px) { .logo img {max-width:300px;} } @media(max-width:440px) { .logo img {max-width:250px;} }
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,
De-activate for hiding admin bar plugins
Set hide admin bar from admin -> theme options -> misc then add this code to child theme ( wp-content/themes/kleo-child/functions.php )
COPY CODEadd_action('after_setup_theme', '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); } }
Instead of editor role add your desired
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 solution -
AuthorPosts