Forum Replies Created
-
Author
-
Radu
ModeratorHi,
There you need to have the kleo child theme installed and then to paste that code into functions.php file from wp-content/themes/kleo-child/functions.php
Also you can remove some items using the next snippet
Using this you can remove it.
COPY CODE// Remove profile tabs function bp_remove_profile_tabs() { global $bp; unset($bp->bp_nav['media']); } add_action('bp_init', 'bp_remove_profile_tabs', 9999);
using this you can rename them
COPY CODEfunction mb_profile_menu_tabs(){ global $bp; $bp->bp_nav['groups']['name'] = 'Cities'; } add_action('bp_setup_nav', 'mb_profile_menu_tabs', 201);
There it’s nothing that it can be changed like regular wp menu and that can be done using snippets.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
1. You can change the order using the next function
COPY CODEfunction my_change_profile_tab_order() { global $bp; $bp->bp_nav['settings']['position'] = 10; $bp->bp_nav['activity']['position'] = 20; $bp->bp_nav['friends']['position'] = 30; $bp->bp_nav['groups']['position'] = 40; $bp->bp_nav['blogs']['position'] = 50; $bp->bp_nav['messages']['position'] = 60; $bp->bp_nav['profile']['position'] = 70; } add_action( 'bp_setup_nav', 'my_change_profile_tab_order', 999 );
The function will be added to wp-content/themes/kleo-child/functions.php
10,20,30,40,50 etc represents order
Child theme needs to be installed and activated.
2. Go to wp-admin -> theme options -> buddypress -> Enable member navigation* -> OFF
3. Menus can be managed under wp-admin -> appearance -> menus ->
For KLEO and Buddypress links you need to enable them in screen options to go in WP Admin > Appearance > Menus and open the panel at the very top right of the page titled ‘Screen Options’, check the option “KLEO and Buddypress”
Then from Buddypress menu add the settings link
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 30, 2018 at 15:29 in reply to: Profile Picture and Activity/Profile/Notifications/Messages/Friends/Groups/Forums/Media/Settings change size #212415Radu
ModeratorHi,
Try with this css
COPY CODE#buddypress div#item-nav ul li a { padding: 0 15px !important; }
Decrease the 15px value until they fit better
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 solutionOctober 30, 2018 at 15:28 in reply to: Grid Builder spacing; Buddypress and BBpress Integration #212414Radu
ModeratorNot marked as solutionRadu
ModeratorHi,
Ah sorry, you can add that css into a media query where it will be applied only on certain resolution up
COPY CODE@media(min-width:768px) { .logged-in #main { margin-top: 30px !important; } }
OR
COPY CODE@media(min-width:991px) { .logged-in #main { margin-top: 30px !important; } }
IT should be ok with this,
Let me know, tried to take a look on your site to see how the menu looks with that css and the credentials not works.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 22, 2018 at 13:58 in reply to: Combine two codes for showing the title on buddypress & adding css classes on breadcrumbs #212010Radu
ModeratorNot marked as solutionRadu
ModeratorHi,
I see i will forward to the developer that, you an use this function to stop our schema to be added
to body.The code will be added in wp-content/themes/kleo-child/functions.php
COPY CODE/* SQR Remove Schema org for body */ if ( ! function_exists( 'kleo_get_schema_org_markup' ) ) { function kleo_get_schema_org_markup() { $schema = 'http://schema.org/'; if ( is_singular( 'post' ) ) { $type = "Article"; } elseif ( is_singular( 'portfolio' ) ) { $type = "VisualArtwork"; } elseif ( function_exists('bp_is_active') && bp_is_user() ) { $type = 'ProfilePage'; } elseif ( is_author() ) { $type = 'ProfilePage'; } // Is search results page elseif ( is_search() ) { $type = 'SearchResultsPage'; } else { $type = 'WebPage'; } $type = apply_filters( 'kleo_schema_org_type', $type ); // return 'itemscope itemtype="' . $schema . $type . '"'; } }
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
ModeratorI think i know why, somehow in a case serve the 404 page from child and the other from parent and the parent theme 404.php file has by default right sidebar, try the next snippet
COPY CODEfunction sqr_404_full_layout() { if ( is_404() ) { kleo_switch_layout('full'); } } add_action ('kleo_header', 'sqr_404_full_layout');
Most sure there we have 404 there because it’s a wrong link.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
What version you was running before to update to 3.x ?
I think this function causes those for you
COPY CODE/*Make xprofile fields translable fix*/ if ( ! function_exists( 'make_x_profile_fields_name_translable' ) ): function make_x_profile_fields_name_translable( $fieldname ) { return __( $fieldname, 'kleo_framework' ); } add_filter( 'bp_get_the_profile_field_name', 'make_x_profile_fields_name_translable' ); endif;
path : wp-content/themes/sweetdate/custom_buddypress/bp-functions.php from line 2960
It can be overwritten in child as you need.
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,
The dynamic.css file it’s generated when you . change from example something in theme options or in customizer not sure why that… i cannot reproduce that issue on my local end
Try to use this snippet
COPY CODEfunction sq_print_inline_css() { add_action( 'wp_head', 'kleo_custom_head_css' ); remove_action( 'wp_enqueue_scripts', 'kleo_load_dynamic_css', 22 ); } add_action('init', 'sq_print_inline_css');
Add the code into child theme functions.php file.
Let me know
The snippet will add the css in head instead in the dynamic.css file
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
Do you know if you currently have debug enabled? Please try disabling it to see if this resolves the issue. Please enable the WordPress debug log. More Info: https://codex.wordpress.org/Debugging_in_WordPress
1. Edit wp-config.php and insert the following lines:
COPY CODEdefine( 'WP_DEBUG', false ); define( 'WP_DEBUG_LOG', false ); define( 'WP_DEBUG_DISPLAY', false );
Anyway i see that the notice it’s thrown outside the theme folder and not sure if that our theme issue.
if the issue persists even with debug off try to switch child theme and plugins off and check if the notice disappears or not.
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 solutionOctober 8, 2018 at 16:51 in reply to: How to remove “Send message” button apeparing with profiles in membership directory list. #211289Radu
ModeratorHi,
Just use this css
COPY CODE.directory div#send-private-message { 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 solutionOctober 4, 2018 at 17:02 in reply to: https://wordpress.org/plugins/bp-events-calendar/ cannot add event #211154Radu
ModeratorNot marked as solutionRadu
ModeratorHi,
You can update the theme sure why not, better to have always latest version.
They are predefined and it different the colors represents the post format
You can customize the line colors using the next CSS
COPY CODE.masonry-listing .format-video .post-title { border-left: 3px solid #07baf4; } .masonry-listing .format-standard .post-title { border-left: 3px solid #8a52ad; } .masonry-listing .format-image .post-title { border-left: 3px solid #fc604a; } .masonry-listing .format-gallery .post-title { border-left: 3px solid #43ae9e; } .masonry-listing .format-audio .post-title { border-left: 3px solid #367bb7; } .masonry-listing .format-link .inner-content { margin-top: 10px; border-left: 3px solid #00c5c4; } .masonry-listing .format-aside .post-title { border-left: 3px solid #ee2534; }
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 solutionOctober 2, 2018 at 15:29 in reply to: WP Baker Page Builder new update has disfigured my site #211043Radu
ModeratorHi,
Can you check if caused or not by a custom change like CSS or Child theme templates ?
Anyway use this css to handle the icons sizes
COPY CODE#buddypress div#item-nav li a:before { font-size: 50px !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,
1. The menu icon issue, it’s displayed for me on all pages
2. You can do that in two ways or you add padding for the form container in visual composer or you add this css in quick css in theme options -> general settings
COPY CODE@media(max-width:600px) { .home form#register_form {padding:0 20px;} }
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, in this case did you know if that your membership plugin will add those roles in the body or html class ? if yes the solution will be simple add beside this snippet
.logged-in #main {
margin-top: 30px;
}Those ones
COPY CODE.MLT-Club #main { margin-top: 30px; } .administrator #main { margin-top: 30px; }
Practically you can look via browser inspector at the body classes or html classes for a specific class for those memberships and to replace on snippet above
from what i know the .logged-in will be always added there no matter the membership, if you are logged in the class will be added, not sure if your plugin removes that.
You can try to set important for the css rules
Example
COPY CODE.logged-in #main { margin-top: 30px !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,
We need to enable wp_debug to can see exactly what error it’s triggered there, follow the next.
Follow these steps to enable wp debug:
- Connect to your server by FTP
- Look in root directory of your WordPress install and open wp-config.php
- Search for define( ‘WP_DEBUG’, false ); and change FALSE value to TRUE
COPY CODEdefine( 'WP_DEBUG', true );
- After this line add this:
COPY CODEdefine( 'WP_DEBUG_LOG', true );
WP_DEBUG_LOG is a companion to WP_DEBUG that causes all errors to also be saved to a debug.log log file inside the /wp-content/ directory. This is useful if you want to review all notices later or need to view notices generated off-screen (e.g. during an AJAX request or wp-cron run).
Repeat the described actions and then check the debug.log file and let me know what error appears.
If this is useless please try to deactivate additional plugins except Visual Composer, K-elements, BuddyPress, Paid memberships pro and revolution slider.
After you have disabled the plugins try to see if the error persists.
Cheers
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 css in wp-admin -> theme options -> general settings -> quick css
COPY CODE.logged-in #main { margin-top: 30px; }
Cheers
RHi 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 in theme options-> quick css
COPY CODE.bp-overlay-menu #buddypress div#item-nav { z-index: 20 !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
I looks like the tabs container comes over the whole page and the buttons under that div cannot be touched.
USe this css
COPY CODE.wpneo-tabs { display: inline !important; }
Add it to wp-admin -> theme options -> 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 solutionSeptember 24, 2018 at 17:07 in reply to: Theme only shows only the last 10 messages – No time or date #210289Radu
ModeratorReplace the code with this one
COPY CODE.profile span.activity {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
ModeratorI understand that there are some notices showing up at the top of your site. Do you know if you currently have debug enabled? Please try disabling it to see if this resolves the issue. Please enable the WordPress debug log. More Info: https://codex.wordpress.org/Debugging_in_WordPress
1. Edit wp-config.php and insert the following lines:
COPY CODEdefine( 'WP_DEBUG', false ); define( 'WP_DEBUG_LOG', false ); define( 'WP_DEBUG_DISPLAY', false );
2. Browse to the page with the issue and/or reproduce the issue.
Are you still seeing the notice messages?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRadu
ModeratorHi,
In this case maybe that wooocommerce filter doesn’t not allow content with html class or any attribute, that’s the correct html structure that opens the pop-up.
So you will have to ask the woocommerce team how you can allow this type of content on their filter.
COPY CODE<a class="kleo-show-login" href="#">Please 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,
I had tested the snippet from you and adding the link that i had suggested to you and it works
I had printed the output of the function and it works… make sure to be logged out for showing the login popup
COPY CODEfunction my_woocommerce_add_error( $error ) { return str_replace( 'An account is already registered with your email address. Please log in', 'Hi, you must be a returning customer. To keep your data safe login is required to purchase a membership. If you know your password <a class="kleo-show-login" href="#">Please Login</a> ' ,$error); } add_filter( 'woocommerce_add_error', 'my_woocommerce_add_error' );
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts