Forum Replies Created
-
Author
-
sharmstrModerator
Try this in your quick css
COPY CODE.profile .bp-widget .dl-horizontal dt { overflow: auto !important; white-space: normal !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
sharmstrModeratorDo a google search for code that will produce the menu you want. Then you can inject it into the pages below the menu using this code in your child theme’s functions.php file
COPY CODEadd_action('kleo_before_content','my_header_menu'); function my_header_menu() { // yourcode 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 in your quick css
COPY CODE.single-post .edit-link { 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
sharmstrModeratorPlease search before posting. This has been asked and answered before. Try this in your quick css. Change the size to suit your needs.
COPY CODE.navbar-nav > li a { font-size: 20px; }
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
sharmstrModeratorIts okay.
COPY CODE.post-item .post-content { background-color: #000; }
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’re link doesnt work.
In any case, add this your child theme’s functions.php file and try to save theme options again
COPY CODEadd_filter( 'kleo_theme_options_ajax', '__return_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
sharmstrModeratorNot sure what you mean by “thumnails description.” But… The background under the post thumbnail is the same size of the thumbnail, so you wont see it if you change it. You can get close by trying this:
COPY CODE.post-item .col-sm-3 { background-color: #000 !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
September 26, 2015 at 16:46 in reply to: customising blog items for CPT with custom templates #79573sharmstrModeratorIf I’m understanding you correctly, you just need to do multiple get_the_term_list calls. So for taxes related to a Movies custom post type….
COPY CODEif (get_post_type() == 'movies') { $categories_list .= get_the_term_list( $post->ID, 'genre', '', ', ' ); $categories_list .= ', '; $categories_list .= get_the_term_list( $post->ID, 'rating', '', ', ' ); } else { // Translators: used between list items, there is a space after the comma. if ( in_array( 'categories', $meta_elements ) ) { $categories_list = get_the_category_list(__(', ', 'kleo_framework')); } }
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 forum always screws up those tags. Just use the code you had before but make sure you put this before
COPY CODE<?php
and this after
COPY CODE?>
Also, make sure you put the file in /kleo-child/buddypress/members/single/home.php
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
September 24, 2015 at 16:50 in reply to: customising blog items for CPT with custom templates #79331sharmstrModeratorTo add your custom categories/taxonomies, read this: https://archived.seventhqueen.com/forums/topic/custom-post-type-meta-not-showing-on-single-posts-and-post-archieves#post-59185
This is wrong
COPY CODEget_template_part( ‘/post-content-myCPT.php’ . $blog_type );
basically you’ve just told it to open a file called /post-content-myCPT.phpmasonry or /post-content-myCPT.phpstandard
First, you dont add .php to get_template_part calls. Its assumed. Second, since you only copied the masonry layout, adding $blog_type makes no sense. All you need is
COPY CODEget_template_part( '/post-content-myCPT' );
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
sharmstrModeratorahhhh. The difference was that I had my profile cover set to full width. There’s no way to inject it between the cover photo and the buddypress nav if you dont have “full width cover” turned on. You’ll have to edit the core buddypress profile file and remember to check for changes after every kleo/buddypress update.
Copy /kleo/buddypress/members/single/home.php to your child theme. Put the following code starting on line 18
COPY CODE<?php $n = 5; if( $user_id = bp_displayed_user_id() ) { $model = new RTMediaModel(); $results = $model->get( array( 'media_type' => 'photo', 'media_author' => $user_id ), 0, $n ); if( $results ) {?> <div class="rtmedia-item-thumbnail" id="foto-home-perfil"> <ul> <?php foreach( $results as $image ) { ?> <li> <a>id ); ?>" title="<?php echo $image->media_title; ?>"> <img />id ); ?>" alt="<?php echo rtmedia_image_alt( $image->id );?>" /> </a> </li> <?php } ?> </ul> </div> <div id="ver-mas-fotos" class="generic-button" ><a>">Ver más fotos</a></div> <?php } } ?>
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
sharmstrModeratorStill wasnt able to get into your site without issues. It kept redirecting me.
Anyhow, try this in your quick css
COPY CODEul.dropdown-menu ul { left: -190px !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
sharmstrModeratorThen you’re doing it wrong. Not sure what link you were referring to in your first post. Here are the directions that you need to follow: https://archived.seventhqueen.com/documentation/kleo#vector-icons
In your screenshot you show that you’ve named the font “store”. You dont need to rename anything. Just upload the fonts .json file to the fontello website as indicated. Select your additional icons. Download the files and copy them to your server. If you’re running Kleo 3.0.8 or 3.0.9, you can now save them to your child theme so they wont be overwritten during a Kleo upgrade.
Once you’ve uploaded them to your server, then the final step is to add this your your child css OR to your quick css in theme options
COPY CODE#buddypress div#item-nav ul #mi-producto-personal-li a:before { content: '\e8a3'; }
You shouldnt be editing any files at all except your childs style sheet as noted above.
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 quick css
COPY CODE.header-color a, .header-color .navbar-nav .dropdown-menu li a { color: #303030 !important; } .header-color .navbar-toggle .icon-bar { background-color: #303030 !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
sharmstrModeratorI should mention that you can remove the status update from the header all together by copying /kleo/buddypress/members/single/member-header.php to your child theme and removing the bp_last_activity line.
Or you can hide it with css, but that’s not as secure
COPY CODE#latest-update { 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
sharmstrModeratorTry this instead
COPY CODEadd_action('bp_init', 'add_user_images', 2); function add_user_images () { if (bp_is_user()){ add_action('kleo_before_main_content', 'show_last_n_images', 99); } }
BP has built in functions to get the path to a profile. https://codex.buddypress.org/developer/template-tag-reference/ (bp_core_get_user_domain(bp_displayed_user_id()) . ‘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
September 22, 2015 at 21:44 in reply to: Built in Privacy setting for your social networks built on Kleo #79026sharmstrModeratorPlayed with this some more. Try this instead
COPY CODEif ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&max=' . $number . '&object=' . $show ) ){
Again, I have no idea how the security plugin filters based on privacy settings, so this may not help at all. However, if it does, let me know and I’ll see about getting a code change approved.
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
September 22, 2015 at 20:00 in reply to: Built in Privacy setting for your social networks built on Kleo #78989sharmstrModeratorI was comparing the shortcode to the main activity loop. It may be that the privacy plugin taps into the bp_ajax_querystring function, which the shortcode doesnt use. You can try changing the shortcode, but you will lose the “number” of activities to show.
Change line 44 of /plugins/k-elements/shortcodes/templates/buddypress/kleo_bp_activity_stream.php from this
COPY CODEif ( bp_has_activities( $params ) ){
to this
COPY CODEif ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) )
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
sharmstrModeratorMy code didnt show up. Please see attached for example on how to post code
COPY CODEyour 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
Attachments:
You must be logged in to view attached files.sharmstrModeratorPlease repost your code. Put ‘
COPY CODE' before and '
‘ after. Alternatively, put it in a text file and attach.
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
sharmstrModerator1 – Try changing the action call to this
COPY CODEif ( bp_is_user() ) { add_action( 'kleo_before_main_content', 'show_last_n_images', 99 ); }
2 – Doesnt work where? If you are talking about in a menu, it would be ##profile_link##/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
sharmstrModeratorquestion 1 – For a 3 column layout, kleo calls the kleo_extra_sidebar function. Copy it from kleo/functions.php to your child theme and as suggested in my first answer, do a get_post_type check to load the correct sidebar for your cpt.
question 2 – hard to answer since i have no idea how you’ve coded your template. I will say you have fancy quotes in your code that shouldnt be there.
COPY CODE<?php kleo_switch_layout('3lr'); ?>
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
sharmstrModeratorIts pretty easy to figure these things out. Right click on the image and inspect it. That will bring up your browsers developer tools. You’ll be able to see the class name to use. In this case its
COPY CODE.comp-user-avatar img { border-radius: 100% !important; }
Here’s a link to the chrome dev tools documentation: https://developer.chrome.com/devtools
Hopefully this will help you in the future with all of the non-kleo standard plugins you’ll be using 🙂
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.sharmstrModeratorI assume that you use it like I’ve shown you how to use the other ones
COPY CODE.sabai-user-with-thumbnail { border-radius: 100% !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 in your quick css
COPY CODE.top-menu { z-index: 1600 !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 in your quick css
COPY CODE.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: transparent !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
sharmstrModeratorIts not happening when I select it. But you can try this in your quick css
COPY CODEmedia="all" { .main-color ::selection { background-color: #000000 !important; color: #fffff !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
sharmstrModeratorI was able to style the avatar in the comments as well
COPY CODE.sabai-comment-avatar img { height: 30px !important; width: 30px !important; border-radius: 100% !important; }
So, I think that leaves the avatar for the person who started the question as the one that cant be styled.
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
sharmstrModeratorIn the future, please provide a link when you’re asking for css support for a plugin that isnt standard with Kleo. It will help us help you faster. I was able to find a link to your site by going through your old replies.
So, unfortunately, the avatars dont have a class associated with them, so we cant target it to change the css. The style of the avatar is produced inline by the plugin. Ask the plugin developers how to increase the avatar size and add a border-radius:100% to it.
I was able to style the avatars in the sidebar widget. Try this in your quick css
COPY CODE.sabai-wordpress-widget-image img { width: 30px !important; height: 30px !important; border-radius: 100% !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
sharmstrModeratorNot sure. Guess you could try adding geodir_is_page(‘search’) to the original function I gave you.
COPY CODEadd_action('kleo_before_content','add_map'); function add_map() { if (geodir_is_page('search') || is_post_type_archive() && in_array(get_post_type(), geodir_get_posttypes())) { echo do_shortcode('[gd_homepage_map width=100% height=600px maptype=roadmap zoom=1 autozoom=true child_collapse=true scrollwheel=false marker_cluster=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
sharmstrModeratorOn the kleo demo site, the “padding” is actually in the image. But since you dont have that, try this in your quick css
COPY CODE#logo_img { padding-top: 5px; }
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
sharmstrModeratorUse this in your child theme and replace the img src
COPY CODEadd_action('kleo_before_content','my_header_image'); function my_header_image() { echo '<img src="http://seventhqueen.com/themes/kleo/wp-content/uploads/2015/02/kleo_demo_pages_01.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
sharmstrModeratorTry this in your quick css
COPY CODE#main .main-color h3 a, #main .alternate-color h3 a { color: #00b9f7 !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
sharmstrModeratorPersonally, I use this on most of my sites
COPY CODE//Block certain activity types from being added function bp_activity_dont_save( $activity_object ) { $exclude = array( 'updated_profile', 'new_member', 'new_avatar', 'friendship_created', 'joined_group' );
However, those options will still be available in the dropdown filter. If you want those removed from that as well, ask on the bp forum.
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
sharmstrModeratorThose settings are for the post only have dont effect anything buddypress related. You’ll have to ask for a solution on the buddypress forums.
Or you can try hiding it with css. Try this in your quick css
COPY CODE.new_blog_post .activity-inner img { 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
sharmstrModeratorYou have your link settings set to white in theme options > styling > main
but you can use this css
COPY CODE.portfolio-filter-tabs li a { color: red !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
September 4, 2015 at 02:04 in reply to: Changing box color and add a border in a Feature Item #76152sharmstrModeratorThere isnt a way to target a specific featured item within a featured item grid because there isnt an extra class name field in the item settings. There is on the featured item grid though. So I guess you could create a grid with only one item, add an extra class name then use css like this…
COPY CODE.your-class-name .feature-item { background-color: red !important; border: 1px solid green; }
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
September 3, 2015 at 17:24 in reply to: Site problems after KLEO 3.0.7 / WordPress 4.3 UPDATE #76039sharmstrModeratorright. looks like its been set as a default in the vc_map config. Try this
COPY CODEadd_action('vc_before_init', 'custom_vc_manipulate_shortcodes'); function custom_vc_manipulate_shortcodes() { global $kleo_config; vc_remove_param('vc_row', 'padding_top'); vc_remove_param('vc_row', 'padding_bottom'); vc_add_param("vc_row", array( "type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Top padding"), "param_name" => "padding_top", "value" => "0", "description" => __("Allowed measures: px,em,%,pt,cm."), )); vc_add_param("vc_row", array( "type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Bottom padding"), "param_name" => "padding_bottom", "value" => "0", "description" => __("Allowed measures: px,em,%,pt,cm."), )); }
It will add the padding fields to the bottom of the row settings though. I dont know of a way around this other than overriding every setting.
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 in your quick css
COPY CODE#buddypress .activity-timeline { border-right-width: 0 !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
September 3, 2015 at 14:14 in reply to: Changing box color and add a border in a Feature Item #76006sharmstrModeratorThe background controlled by a whatever section style you have set on the row. Then it uses the alternate background color set in Theme Options > Styles > Watever section style you set.
There isnt a border by default, so you’ll have to add it with this css
COPY CODE.kleo-block.feature-item { border: 1px solid green; margin-bottom: 0px !important; padding-bottom: 0px !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
-
AuthorPosts