Forum Replies Created
-
Author
-
sharmstrModerator
Open /kleo/woocommerce/checkout/form-checkout.php and change
COPY CODE<div class="order-review-wrap">
to
COPY CODE<div id="order_review" class="order-review-wrap">
It will be in the next udpate
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 25, 2015 at 16:51 in reply to: Any way to make the normal layout blog post image link to the post. #47589sharmstrModeratorYou’ll have to copy the kleo/content-xxxx.php files to your child theme and edit them to produce the link. You can start with kleo/image.php. Try changing the article-media div to this
COPY CODE<div class="article-media"> <?php echo '' . kleo_get_post_thumbnail( null, 'kleo-full-width' ) . '';?> </div><!--end article-media-->
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorThe meta section layout is determined by the container width. Since you’re making the container narrow by adding two sidebars, it move the meta above the image. You can change this by overriding the css
COPY CODE.tpl-3rr article .article-meta { width: 100px !important; float: left !important; text-align: right !important; } .tpl-3rr article .article-meta .post-meta .meta-links { display: block !important; } .single .container .tpl-3rr.with-meta .article-content { margin-left: 130px; } .single .with-meta .article-media { margin-left: 130px !important; margin-bottom: 40px; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorCan you send me a link so I can see this mystery purple?
Wait, are you talking about the left border of the title? If so, that purple means its a standard post, blue is for video posts, green is for sliders, and orange is for images. So if you want to get rid of the border, try something like.
COPY CODE.masonry-listing .format-gallery .post-title, .masonry-listing .format-standard .post-title, .masonry-listing .format-image .post-title, .masonry-listing .format-video .post-title, .masonry-listing .format-image .post-title, .masonry-listing .format-audio .post-title { border-left: none !important; }
Here’s the selector for the read more.
COPY CODE.post-footer span.muted.pull-right { color: purple; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 24, 2015 at 16:54 in reply to: Linking KLEO pop up login screen to custom made image. #47408sharmstrModeratorYou cant mix shortcode and non shortcode elements AFAIK with Rev Slider. If you have to have the kleo_restrict shortcode, then I suggest trying to use it with the Single Image shortcode instead of adding an image layer.
example
COPY CODE[vc_single_image image="4985" border_color="grey" img_link_large="" img_link_target="_self" css_animation="right-to-left" el_class="kleo-show-login"
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorI could never get that to work either. Here’s what I use on my sites. It will add another option in WP Admin > Settings > Discussion
COPY CODE/** * Add a default avatar to Settings > Discussion **/ add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' ); define ( 'BP_AVATAR_DEFAULT', 'http://yoursite/wp-content/uploads/2014/10/default_avatar.jpg' ); define ( 'BP_AVATAR_DEFAULT_THUMB', 'http://yoursite/wp-content/uploads/2014/10/default_avatar_thumb.jpg' );
Obviously change the url and image names, then set it in Discussions
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorBut those options are ONLY for ajax. Its not broken and works as designed. Only posts show up when you hit enter because that’s how wordpress works. If you want a results page that shows results from every possible context, you’ll need to find a plugin. That’s why there are options in the ajax results to take you to the results for a specific context.
Ajax is slow because your site is slow. Its fast on my sites. Also, kleo gives you the option to disable submit on enter by changing the value of Form Type.
Copy /kleo/search.php to your child theme and add the following right after get_template_part(‘page-parts-general-before-wrap’);
COPY CODE<div class="widget_search"> <?php echo get_search_form( $echo ); ?> </div>
All the other results pages have a search form.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorI forgot to change another bit of the code when I copied it over. Sorry. Try this
COPY CODEadd_action( 'bp_directory_members_item', 'display_user_info' ); function display_user_info() { echo "Favorite Game Character?: "; bp_member_profile_data('field=Favorite Game Character?'); echo "</br>"; echo "City: "; bp_member_profile_data('field=City'); }
and some css to center it.
COPY CODE#buddypress #members-list div.item { text-align: center; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
Attachments:
You must be logged in to view attached files.sharmstrModeratorTry this instead
COPY CODEadd_action( 'bp_directory_members_item', 'display_user_info' ); function display_user_info() { echo "Favorite Game Character?: " . bp_profile_field_data('field=Favorite Game Character?'); echo "</br>"; echo "City: ". bp_profile_field_data('field=City'); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorAlso, if you want to add the field name before it, change it to this
COPY CODEadd_action( 'bp_profile_header_meta', 'display_user_info' ); function display_user_info() { echo "Favorite Game Character?: " . bp_profile_field_data('field=Favorite Game Character?'); echo "</br>"; echo "City: ". bp_profile_field_data('field=City'); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorI feel like the above code is for sweetdate. Try this instead.
COPY CODEadd_action( 'bp_profile_header_meta', 'display_user_info' ); function display_user_info() { bp_profile_field_data('field=Favorite Game Character?'); echo "</br>"; bp_profile_field_data('field=City'); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorSorry for the delay in responding
1 – Correct
2 – Correct
3 – Correct
4 – Try thisCOPY CODE.kleo-main-header .container { max-width: 100% !important; }
5 – It shouldn’t be there by default. Its a VC shortcode, not a Kleo shortcode.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorCOPY CODEadd_action('init', 'remove_admin_bar'); function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorCOPY CODE.pagination-sticky { display:none; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorCOPY CODE.posts-listing .meta-author.author.vcard img { display: none; }
Do you have PMs turned on in Buddypress?
You can get to “all posts” by clicking on the pages icon if you’ve enabled
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 10, 2015 at 17:01 in reply to: Need to change the font size in an Accordion's title bar… #45433sharmstrModeratorCOPY CODE.panel-kleo .panel-title { font-size: 25px; }
Don’t go digging in style.css. Make any css overrides in either your child style.css file or in Theme Options > General Settings > Quick CSS
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorTry this.
COPY CODE.navbar-transparent .navbar .kleo-main-header { background-color: rgba(0,0,0,0.5); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
Attachments:
You must be logged in to view attached files.sharmstrModeratortry this css
COPY CODE.item-likes:before { font-size: 30px; } .post-footer .item-likes:before { font-size: 20px; }
What do you mean ‘change the number’?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorTry this
COPY CODE.bp-login-widget-user-avatar { display: none; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorSorry, I tested with a single select dropdown. Try this, which assumes that ‘specialty’ is your multiselect
COPY CODEadd_action( 'bp_profile_header_meta', 'display_user_info' ); function display_user_info() { bp_profile_field_data('field=dropdown'); echo '</br>'; if ( $specialities = xprofile_get_field_data( 'speciality') ) { foreach ( $specialities as $speciality ) { echo $speciality . '</br>'; } } }
For your cover question, give me a link so I can see what you’re trying to do.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
February 8, 2015 at 14:25 in reply to: Adding shortcodes to members profile header and profile fields. #45156sharmstrModeratorTry this in your functions.php file
COPY CODEadd_action( 'bp_profile_header_meta', 'display_shortcode' ); function display_shortcode() { echo do_shortcode('[shortcode]'); }
Change shortcode to the shortcode you want to run.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorI’m not going to pretend to know much about this, but if its a matter of ‘primary’ vs ‘main’, you can copy the kleo_widgets_init function to your functions.php file and name it primary.
COPY CODEfunction kleo_widgets_init() { register_sidebar( array( 'name' => __( 'Main Sidebar', 'kleo_framework' ), 'id' => 'sidebar-1', 'description' => __( 'Default sidebar', 'kleo_framework' ), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', ) ); register_sidebar(array( 'name' => 'Footer column 1', 'id' => 'footer-1', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'Footer column 2', 'id' => 'footer-2', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'Footer column 3', 'id' => 'footer-3', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'Footer column 4', 'id' => 'footer-4', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'Extra - for 3 columns pages', 'id' => 'extra', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'Shop sidebar', 'id' => 'shop-1', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>', )); }
After that function call, all references to that side bar (at least as far as Kleo is concerned) is ‘sidebar-1’.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorThis works for me with a dropdown
COPY CODEadd_action( 'bp_profile_header_meta', 'display_user_info' ); function display_user_info() { bp_profile_field_data('field=role'); echo "</br>"; bp_profile_field_data('field=speciality'); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorWhen I first glanced at the code, all I saw was buddypress functions. I missed the one little bit of Kleo code which was sq_option.
Kleo has so many personalized functions that i cannot just “try the same code on different theme”.
Can you point out where in all of that code you are using Kleo functions other than sq_option?
As far as sq_options goes, you can replace that line with
COPY CODE'&per_page=' . sq_option('bp_members_perpage', 24)
with
COPY CODE'&per_page=24'
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorYou should read up on wordpress actions. They allow you to inject things into places that theme/plugin developers have specified. If you look at kleo/header.php you’ll see a do_action called ‘kleo_before_main’. That action lets you inject whatever you want before the title/breadcrumb section. So instead of editing core files, you can use a add_action routine in your functions.php file.
COPY CODEadd_action('kleo_before_main','display_advertising'); function display_advertising() { echo "my ads here"; //you could put a shortcode here if you want, too. }
So, its add_action(‘where’,’what’);
I dont specifically see an action for adding it just after the title/breadcrumb and before the page divides itself into sections, but you can add your own action. Copy /kleo/page-parts/general-title-section.php to your child theme and add do_action(‘kleo_after_title’); to the very bottom. Then you can use the above example, but put in kleo_after_title instead of kleo_before_main.
If you want to target the area just above the content, but not above the sidebar, then use ‘kleo_after_main_content’
You can even get tricky with it and specific pages like.
COPY CODEadd_action('kleo-after-title','display_advertising'); function display_advertising() { if ( is_front_page() ) echo "my ads here"; }
The is_front_page() will only inject it into the front page.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorI dont understand your question. Are you asking how to adjust the size? If so, you can do that with css
COPY CODEarticle .post-header .post-meta .meta-author img { height: 25px; width: 25px; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorBut that’s my point. It has only found the comment that says “for better garbage collection”. Its not actually initiating WP session garbage collection. It finds it in qTip2 which is a jquery script that provides tool tip functionality. That jquery script doesnt have access to the db and doesnt make calls to the db. “Garbage Collection” is a global term and not specific to wordpress, php or sql. In this case its merely saying, unhook all these IDs so we dont waste resources. Here’s the code
COPY CODE// Remove ID from used id objects, and delete object references // for better garbage collection and leak protection this.options = this.elements = this.cache = this.timers = this.plugins = this.mouse = NULL; // Delete epoxsed API object delete QTIP.api[this.id];
Compare that to wpdatables which is actually initiating garbage collection via “public function garbageCollect()”.
You haven’t specifically said that they are still seeing erroneous sql calls with datatables disabled. Can you confirm? If they are, can you switch to WP 2014 or 2015 theme and see if they persist?
@abe: Can you put eyes on this and confirm I’m making sense here?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorTry this instead
COPY CODEadd_action( 'after_setup_theme', 'move_fb' ); function move_fb() { remove_action( 'kleo_before_login_form', 'kleo_fb_button', 10); add_action( 'kleo_after_login_form', 'kleo_fb_button', 10 ); }
You’ll have to sort out styling of the fb box when its on the bottom.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorYou need to put the img src there.
COPY CODEecho '<img src="path-to-image.jpg" />';
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorCOPY CODE#activate-page > p { display: none !important; } #activate-page .bp-template-notice {display:none !important;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorTry this code
COPY CODE<script> jQuery('.group-create').on( 'click', function(event) { document.location.href = '/groups/create/'; return; }); </script>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorPut this is your functions.php file
COPY CODEadd_action('kleo_after_main','inject_image'); function inject_image() { if ( is_front_page() ) echo "image code here"; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorSorry. My mistake. The fb button is added using an action. Instead of copying the file, try this in your functions.php file
COPY CODEremove_action( 'kleo_before_login_form', 'kleo_fb_button', 10 ); add_action( 'kleo_after_login_form', 'kleo_fb_button', 10 );
If that moves the fb button, but not exactly where you want it, then you will have to edit the page I gave you before. Good luck.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorcopy /kleo/page-parts/general-popups.php to your child theme and customize to your liking.
Put #buddypress in front of the css to isolate it to the registration form.
COPY CODE#buddypress .kleo-fb-wrapper.text-center { width: 50%; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorCOPY CODE.w2dc-content .w2dc-location-input { margin-top: 0; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorIf you want to turn off the profile header all together, you can just hide it. I’m putting this here instead of the feature request topic, because I’d still like to see an toggle for this in theme options.
COPY CODE#kleo-bp-home-wrap #item-header { display: none; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorThis works for me
COPY CODE.woocommerce ul.products li.product .new-badge, .woocommerce-page ul.products li.product .new-badge { background: red; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModeratorPut this in your child css or quick css in theme options
COPY CODE.kleo-online-status { display: none !important; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
sharmstrModerator@connectclever Not sure if you noticed this or not, but if you have social login set to use the social network avatar, the members avatar will not display correctly in the main menu. I’ve narrowed this down to the fact that SL (social login) does their own filtering routines of BPs get_avatar. In the main menu, Kleo uses the html=false argument to so it can add a class to the avatar which makes it rounded, but more importantly, removes the border. In any case, I’ve contacted the developers of SL and asked them that they support html=false. Its a standard/supported BP arguments, so seems to me they should respect it.
In the meantime or if they decide not to support it, you can use the attached code in your functions.php file.
And this in your child css
COPY CODE.kleo-avatar-menu img { border: none !important; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
Attachments:
You must be logged in to view attached files. -
AuthorPosts