Forum Replies Created
-
Author
-
RaduModerator
Hi,
I see, at this moment using visual composer in posts, having fill width it’s not possible because it may break the layout.
At this moment you can use this css workaround
COPY CODE.single .container-full .with-meta .article-content, .posts-listing.standard-listing.with-meta .article-content { display:none !important; }
Will hide that and the layout will no more breaked.
We will take this into consideration i will speak with the core developer to find a solution for this.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRaduModeratorHi,
Tried a workaround and cannot remove only that tried with css to target all links from there that contains the main category slug but it removes also the second one.
So there is no easy way to remove only that… another workaround may be this… but i’m not sure how will behaves when you have only a category there.
COPY CODEarticle .post-header .post-meta .meta-category a:first-child{ display:none !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 solutionRaduModeratorHi,
Use this css
COPY CODEdiv#login_panel ul.inline-list a {color:red;font-weight:bolder;}
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 7, 2018 at 16:31 in reply to: Where to edit excerpt length and the “Read More” text on button after excerpt? #205689RaduModeratorHi,
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; }
Child theme needs to be installed and activated.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRaduModeratorHi,
Just add also this css and let me know
COPY CODE@media (min-width: 992px) { #main-container { max-width: 1200px !important; } }
You can remove the last Kieran CSS
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRaduModeratorHi,
Just use this css and change the red color with you desired color code or color name
COPY CODE.sidebar.sidebar-right { background: red !important; }
For the left sidebar here’s the code
COPY CODE.sidebar.sidebar-left { background: green !important; }
The css will be added to wp-admin -> theme options -> General settings -> Quick CSS
Let me know
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRaduModeratorHi,
I see the redirection it’s handled by that plugin “Buddypress Members Only” and this redirect english to french version.
A workaround my be to de-activate that plugin and to use two snippets that handles the redirection for every language from example, so that plugin should be compat with wpml.
Homepage french : domain.com/fr/ -> will redirect guests to domain.com/fr/register
Homepage english : domain.com/en/ -> will redirect guests to domain.com/en/registerThis snippet should handle both of them cuz it’s using relative urls
COPY CODEfunction sqr_prevent_search_guest_user() { if ( class_exists( 'BuddyPress' ) ) { if (!is_user_logged_in() && bp_is_directory() && is_front_page()) { wp_redirect(home_url() . '/register/'); exit; } } } add_action('template_redirect', 'sqr_prevent_search_guest_user');
The snippet may be added to wp-content/themes/sweetdate-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 solutionRaduModeratorIf certain CSS rule and value doesn’t work add them !important at the end.
example
div a {
font-size:12px;
}try with important
COPY CODEdiv a { font-size:12px !important; }
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRaduModeratorHi,
Just add this css to wp-admin -> theme options -> styling options -> quick css
COPY CODE.register div#main-content { width: 100%; } .register aside.four.columns { display: none; }
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRaduModeratorHi,
Using the next snippet simply all guests will be redirected to /register/ page but allow the homepage to be viewed also for guests
COPY CODEfunction sqr_prevent_search_guest_user() { if ( class_exists( 'BuddyPress' ) ) { if (!is_user_logged_in() && !is_front_page() ) { wp_redirect(home_url() . '/register/'); exit; } } } add_action('template_redirect', 'sqr_prevent_search_guest_user');
Code will be added to wp-contnet/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 solutionRaduModeratorHi,
Did you had modified something there ? (css,html,js) ? If yes we cannot debug that since they are custom non-default
Try to use this CSS
COPY CODE.property-sticky-box-wrapper .sticky-element { height:85 !important; } .burger-modal-styles:not(body) {bottom:0 !important}
Did you see the same issue on our demo ?
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 19, 2018 at 20:51 in reply to: I’d like to change the language of the comments section on Facebook, but what should I change? #204282RaduModeratorNot marked as solutionRaduModeratorHi, Just use this css.kleo_framework.breadcrumb a[href="https://cute8.net/bs/"] {display:none !important;} .kleo_framework.breadcrumb .sep:nth-child(2) { display: none !important; }
The css will be added to wp-admin -> theme options -> General settings -> Quick CSS Cheers RJuly 18, 2018 at 17:58 in reply to: I’d like to change the language of the comments section on Facebook, but what should I change? #204156RaduModeratorNot marked as solutionRaduModeratorAh, sorry
Use this one
COPY CODE.bp-light-icons #buddypress div#item-nav ul li a { padding: 20px 10px; }
To can make additional space change 10px to 5px or lower
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRaduModeratorHi,
Use the next css to make there for few icons then the more button will be displayed highlited.
COPY CODE@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 css
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 solutionRaduModeratorHi again
1. I saw your homepage and the cards and they are displayed as it should and they shown the back when you hover so what’s the issue ?
2.
There might me some conflifct with other plugins or child so you will have to de-activate all plugins and child theme off then check if they are displayed as it should, if you had done eny kinf of speed optimizations from cloudflare, from server cpanel, frmo htaccess or any caching cnd plugin can cause that switch all off and test. On our demo cannot see similar.Also you can use this snoippet to make all animations visible directly !
COPY CODE.animated,.wpb_animate_when_almost_visible { /*CSS transitions*/ -o-transition-property: none !important; -moz-transition-property: none !important; -ms-transition-property: none !important; -webkit-transition-property: none !important; transition-property: none !important; /*CSS transforms*/ -o-transform: none !important; -moz-transform: none !important; -ms-transform: none !important; -webkit-transform: none !important; transform: none !important; /*CSS animations*/ -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; -ms-animation: none !important; animation: none !important; opacity: 1 !important; filter:none !important; }
3.
Replace this file content : wp-content/themes/kleo/vc_templates/vc_row.php
with the content of this one : https://pastebin.com/raw/1m5KbcWK
It’s a bug that it will be fixed in next theme update
4. The theme comes with no plugin installed, the theme suggest you to install the used one in our demos, so you are free to delete it and to re-install it using latest fresh version.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRaduModeratorHi,
You can add the next function into child theme functions.php fileCOPY CODE/* Deqeue the google fonts */ function sq7r_deque_kleo_gogole_fonts() { if( function_exists('bp_is_active') && !bp_is_members_component()) { wp_deregister_style('kleo-google-fonts', $google_link, array(), '', 'all' ); wp_dequeue_style('kleo-google-fonts'); } } add_action('wp_enqueue_scripts', 'sq7r_deque_kleo_gogole_fonts',999);
It will prevent google fonts loading also you can go to wp-admin -> theme options -> fonts -> and to set for every heading Arial font a standard one.
Then, you can load and set any font you want to following this method follow this : https://archived.seventhqueen.com/forums/topic/how-can-register-japanese-font/#post-106881
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionRaduModeratorHi,
There is a fix for wordpress to allow russian / ukrainian characters on username, if you will check to create a new user with russian you will cannot do that cuz the wordpress it not allow, please test the function and let me know
this it’s a old function that some users used in the past, just replace the characters with your specific greek ones
COPY CODEfunction kleo_translate_special_chars($str){ $tr = array( "А"=>"a", "Б"=>"b", "В"=>"v", "Г"=>"g", "Д"=>"d", "Е"=>"e", "Ё"=>"yo", "Ж"=>"zh", "З"=>"z", "И"=>"i", "Й"=>"j", "К"=>"k", "Л"=>"l", "М"=>"m", "Н"=>"n", "О"=>"o", "П"=>"p", "Р"=>"r", "С"=>"s", "Т"=>"t", "У"=>"u", "Ф"=>"f", "Х"=>"kh", "Ц"=>"ts", "Ч"=>"ch", "Ш"=>"sh", "Щ"=>"sch", "Ъ"=>"", "Ы"=>"y", "Ь"=>"", "Э"=>"e", "Ю"=>"yu", "Я"=>"ya", "а"=>"a", "б"=>"b", "в"=>"v", "г"=>"g", "д"=>"d", "е"=>"e", "ё"=>"yo", "ж"=>"zh", "з"=>"z", "и"=>"i", "й"=>"j", "к"=>"k", "л"=>"l", "м"=>"m", "н"=>"n", "о"=>"o", "п"=>"p", "р"=>"r", "с"=>"s", "т"=>"t", "у"=>"u", "ф"=>"f", "х"=>"kh", "ц"=>"ts", "ч"=>"ch", "ш"=>"sh", "щ"=>"sch", "ъ"=>"", "ы"=>"y", "ь"=>"", "э"=>"e", "ю"=>"yu", "я"=>"ya", " "=>"-", "."=>"", ","=>"", "/"=>"-", ":"=>"", ";"=>"","—"=>"", "–"=>"-" ); return strtr($str, $tr); } function kleo_extra_validate_username($valid, $username){ if( !$valid ){ $sanitized = sanitize_user( $username, true ); $valid = ( ! empty( $sanitized ) ); } return $valid; } add_filter('validate_username', 'kleo_extra_validate_username', 10, 2); function kleo_extra_sanitize_user($user, $raw_user, $strict) { $user = kleo_translate_special_chars($raw_user); return $user; } add_filter('sanitize_user', 'kleo_extra_sanitize_user', 10, 3);
It should work
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts