Forum Replies Created
-
Author
-
sharmstrModerator
put this in you child css
COPY CODE.main-title { 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
sharmstrModeratorOkay. I think I got it working. I dont know how to use this is the child theme to make it upgrade safe, but probably wont be and issue if @abe makes it part of the core. Anyhow, as mentioned before, the issue was with the regular expression. To fix it
– open /plugins/k-elements/shortcodes/templates/kleo_grid.php
– comment out line 44 (verify this is the correct line!!)
– add the new regular expression below itso this
COPY CODE$sh = preg_match_all('~\[kleo_feature_item([^\[\]]*)]([^\[\]]+)\[/kleo_feature_item]~', $content, $childs);
should be this
COPY CODE//$sh = preg_match_all('~\[kleo_feature_item([^\[\]]*)]([^\[\]]+)\[/kleo_feature_item]~', $content, $childs); $sh = preg_match_all('~\[kleo_feature_item([\s\S]*)]\[/kleo_feature_item]~', $content, $childs);
I havent tested all scenarios, but seems to be working without breaking other things. Again, I suck at regular expressions :/
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.sharmstrModeratorYou dont have properly formatted html markup in your info: Theme Options -> Header Options -> Main menu info
I think you’re just missing a double quote at the end of the phone number (after the ‘4’)
COPY CODE<a href> Telphone
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 can hide it via css
COPY 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
sharmstrModeratorSorry. I assumed you knew how to use the functions.php file. First, you shouldn’t have copied a text file over. There should have been a functions.php file there already. You just needed to add the code. The reason its printing out is because your file doesnt have the php stuff in it. Put this at the top of the file
COPY CODE<?php /** * @package WordPress * @subpackage Kleo * @author SeventhQueen <themesupport@seventhqueen.com> * @since Kleo 1.0 */ /** * Kleo Child Theme Functions * Add custom code below */
Or use the file attached. Remember to remove .txt
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.sharmstrModeratorbbpress controls that, not Kleo. You’d have better luck asking over there https://buddypress.org/support/
I was curious about this, so I searched through the bbpress code and found two actions that fire when an edit is made to a topic or a reply. I tried using remove_action in my functions.php file, but that didn’t work. It still created a new activity.
The only way I could get it to work is to comment out the action calls within bbpress core code. That’s not ideal. So again, I suggest you post this question over on the bbpress forum.
If you want, you can tell them I tried
COPY CODEglobal $BBP_BuddyPress_Activity; remove_action( 'edit_post', array( $BBP_BuddyPress_Activity , 'topic_update' ) ); remove_action( 'edit_post', array( $BBP_BuddyPress_Activity , 'reply_update' ) );
It could be that I’m just doing it wrong. 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
sharmstrModeratorDid you try what I suggested?
COPY CODE@media (min-width: 768px) { .view-your-menu { float: right; } }
email me an account that I can use to see what’s going on?
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
sharmstrModeratorwidget-title is a class, not an ID. So instead of a hash in front of it, it needs to be a period
COPY CODE.widget-title
For the height, are you saying you want the browser to be in fullscreen mode?
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 nearly impossible to figure out what’s going on without knowing how you coded it or the css you have applied to it. But to take a guess… you’ll have to adjust your media query to remove the float right when the screen size is smaller than a certain size. What happens if you remove float right when the screen is that small? Test it and if it looks okay, then you’ll have to account for that.
COPY CODE@media (min-width: 768px) { label { float: right; } }
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 might be confused by your question so dont shoot me:
COPY CODE<a href="www.yoursite.com/pagewherethetabislocated#tab-1405319581-1-31" rel="nofollow"><i class="icon-basket-full-alt"></i> Order</a>
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
sharmstrModeratorHaving different colors for the same icon within the same featured item grid isn’t easy. You’d probably have to edit the shortcode to add a icon color field, or add the colored icons to the drop down list.
If you just want to target the icons in your dashboard without changing the color of the icon sitewide as the css above does, then you can add a class to the Featured Items Grid Settings and use it in your css.
COPY CODE.my_featured_colors span.feature-icon.el-appear.icon-angle-left { color: red; } .my_featured_colors span.feature-icon.el-appear.icon-align-center { color: blue; }
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
sharmstrModeratorHere’s the code for adding a new shortcode item (Post count) within the Kleo shortcode menu to get the amount of published posts by type. When you click on it in the menu, you need to edit the shortcode so that there is only one option
So from this
COPY CODE[colabs_post_count type=post|page|custom post type]
to this
COPY CODE[colabs_post_count type=post]
You can use this within the animated numbers shortcode
COPY CODE[kleo_animate_numbers animation="animate-when-almost-visible" timer="3000"][colabs_post_count type=post][/kleo_animate_numbers]
Put this in functions.php
COPY CODE/*add shortcode to get total number of published posts, pages or custom post types */ function colabs_post_count( $atts, $content = null ) { $a = shortcode_atts( array( 'type' => '', ), $atts ); global $wp; $post_count = wp_count_posts($a['type']); $published_count = $post_count->publish; return $published_count; } add_shortcode( 'colabs_post_count', 'colabs_post_count' ); add_filter( 'kleo_tinymce_shortcodes', create_function('$args','$args[""][] = array("name" => "Post count", "code" => "[colabs_post_count type=post|page|custom post type]"); return $args;' ) );
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
sharmstrModeratorchange the following on the “view member results” line
COPY CODEbp_get_members_slug()
to
COPY CODEsite_url()."/".bp_get_members_slug()
I’ll upload a new file when I’m done tweaking a few other things.
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
sharmstrModeratorshould be this…
COPY CODE$image = '<img /> $member-> ID, 'width' => 25, 'height' => 25, 'html' => false)) . '" class="kleo-rounded" alt="">';
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
October 5, 2014 at 23:23 in reply to: … added "a music" = improper language – where is file located? #30702sharmstrModeratorShoot. I had a long response to this but the forum was down when I posted it and it lost it all. Anyhow, short version. That message is controlled by rtMedia so its best to ask over in their forum. Kleo doesn’t do anything with that message. But, you can try this which will probably get you close
COPY CODEfunction rtmedia_change_added_text( $action, $username, $count, $user_nicename, $media_type ) { $action = sprintf( __( '%s added %d %s', 'rtmedia' ), $username, $count, RTMEDIA_MEDIA_SLUG ); return $action; } add_filter('rtmedia_buddypress_action_text_fitler', 'rtmedia_change_added_text', 10, 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
sharmstrModeratorOkay, I threw this together. Put it in your functions.php file. I’ve done some initial testing and seems to work. Let me know how it works out for you.
COPY CODE/*add member results to live search */ function kleo_ajax_search() { //if "s" input is missing exit if(empty($_REQUEST['s'])) die(); $output = ""; $defaults = array('numberposts' => 4, 'post_type' => 'any', 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false); $defaults = apply_filters( 'kleo_ajax_query_args', $defaults); $query = array_merge($defaults, $_REQUEST); $query = http_build_query($query); $posts = get_posts( $query ); $members = bp_core_get_users(array('search_terms' => $_REQUEST['s'], 'per_page' => 4, 'populate_extras' => false)); //if there are no posts if(empty($posts) && $members['total'] == 0) { $output = "<div class='kleo_ajax_entry ajax_not_found'>"; $output .= "<div class='ajax_search_content'>"; $output .= "<i class='icon icon-exclamation-sign'></i> "; $output .= __("Sorry, no pages matched your criteria.", 'kleo_framework'); $output .= "<br>"; $output .= __("Please try searching by different terms.", 'kleo_framework'); $output .= "</div>"; $output .= "</div>"; echo $output; die(); } //if there are members if ($members['total'] != 0) { $output .= "<h4>Members</h4>"; $output .= "<div>"; foreach ( (array) $members['users'] as $member ) { $image = '<img /> $member-> ID, 'width' => 25, 'height' => 25, 'html' => false)) . '" class="kleo-rounded" alt="">'; $link = apply_filters('kleo_custom_url', get_permalink($member->ID)); $classes = "format-".$format; $output .= "<div class ='kleo_ajax_entry $classes'>"; $output .= "<div class='ajax_search_image'>$image</div>"; $output .= "<div class='ajax_search_content'>"; $output .= "<a>ID)."' class='search_title'>"; $output .= $member->display_name; $output .= "</a>"; $output .= "</div>"; $output .= "</div>"; } $output .= "<a>".__('View member results','kleo_framework')."</a>"; $output .= "</div>"; } //if there are posts $post_types = array(); $post_type_obj = array(); foreach($posts as $post) { $post_types[$post->post_type][] = $post; if(empty($post_type_obj[$post->post_type])) { $post_type_obj[$post->post_type] = get_post_type_object($post->post_type); } } foreach($post_types as $ptype => $post_type) { if(isset($post_type_obj[$ptype]->labels->name)) { $output .= "<h4>".$post_type_obj[$ptype]->labels->name."</h4>"; } else { $output .= "<hr>"; } foreach($post_type as $post) { $format = get_post_format($post->ID); if (get_the_post_thumbnail( $post->ID, 'thumbnail' )) { $image = get_the_post_thumbnail( $post->ID, 'thumbnail' ); } else { if ($format == 'video') { $image = "<i class='icon icon-video'></i>"; } elseif ($format == 'image' || $format == 'gallery') { $image = "<i class='icon icon-picture'></i>"; } else { $image = "<i class='icon icon-link'></i>"; } } $excerpt = ""; if(!empty($post->post_content)) { $excerpt = "<br>".char_trim(trim(strip_tags(strip_shortcodes($post->post_content))),40,"..."); } $link = apply_filters('kleo_custom_url', get_permalink($post->ID)); $classes = "format-".$format; $output .= "<div class ='kleo_ajax_entry $classes'>"; $output .= "<div class='ajax_search_image'>$image</div>"; $output .= "<div class='ajax_search_content'>"; $output .= "<a href='$link'>"; $output .= get_the_title($post->ID); $output .= "</a>"; $output .= "<span class='search_excerpt'>"; $output .= $excerpt; $output .= "</span>"; $output .= "</div>"; $output .= "</div>"; } } $output .= "<a>".__('View all results','kleo_framework')."</a>"; echo $output; die(); }
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 see what’s going on. I’m not sure if the 7th Queen intended this, but in the page layout code, they are only checking to see if they are displaying the activity component, but not where. I couldn’t figure out a clean way to do this, so the easiest way for you to do this is copy /kleo/buddypress/buddypress-functions.php to your child theme, then edit the ‘kleo_bp_change_layout’ function. It should be on line 1534.
Within that function you’ll see where it checks for the activity component
COPY CODEelseif (sq_option('bp_layout_activity', 'default') != 'default' && bp_is_current_component( $bp->activity->slug)) { $layout = sq_option('bp_layout_activity', 'right'); }
change it to this
COPY CODEelseif (sq_option('bp_layout_activity', 'default') != 'default' && bp_is_current_component( $bp->activity->slug) && !bp_is_user()) { $layout = sq_option('bp_layout_activity', 'right'); }
All I did was add ‘&& !bp_is_user()’ to tell it to ignore the activity layout setting and use the default buddypress layout setting if the activity is within the buddypress member screen. So if you have your default set to ‘full width” it will display the activity stream on the members page to ‘full width’.
@abe: Couple of things1- As stated above, I’m not sure if the way kleo currently handles the activity layout is what you guys wanted, but I think it makes more sense to have the activity in the member page follow the member layout setting.
2 – My code above it probably not ideal, but it fixes his problem. I think it misses a few checks to work in all set up scenarios. I didnt full test it.
3 – I tried to do this within functions.php by removing the ‘kleo_bp_change_layout’ filter and adding my own custom filter with a ‘custom_kleo_bp_change_layout’ function. The problem is that in your ‘kleo_prepare_layout’ function, you are getting the layout function name from the sq_option name which is ‘kleo_bp_change_layout’ so it will always look for that function instead of my custom function. Hope that made sense.
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
sharmstrModeratorThey are just fonts, so use color
COPY CODE.icon-megaphone:before { color: red; }
obviously change .icon-megaphone to whatever icon it is and color to whatever color you want
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
sharmstrModeratorIt actually is working as far as the number 3 missing. Its supposed to be missing. The reason it doesnt make sense is because the “…” bubble is in the first position and not between 2 and 4. I was a bit confused at first too because when you are on page 2 or 3, all the numbers show. But this is only because you have a total of 4 pages. If you had more pages then it would have been easier to see that it wasnt missing pages, but that the dots were in the wrong place. The screenshot shows it better than I can explain it.
The default css has “.bbp-pagination-links a” set to float: none and the “…” is set to float: left, making it move before the numbers even though the page isnt parsed that way. Here’s the fix.
COPY CODE.bbp-pagination-links a, .bbp-pagination-links span { float: left; }
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.sharmstrModeratorThat’s a two part answer
Size: That’s a BuddyPress function. They have instructions for that https://codex.buddypress.org/getting-started/guides/customizing-buddypress-avatars/ The issue you’ll run into is wanting to do it for groups and not for members. You’ll have better luck asking over in the Buddypress forum
Square: You’ll have to add some custom css to your child theme. This might not get all instances of the group avatar, but try this for the group directory.
COPY CODE#buddypress #groups-list .item-avatar { border-radius: 0 !important; } #buddypress #groups-list .item-avatar.rounded img { border-radius: 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
sharmstrModeratorI see your point. Add a feature request. In the meantime
COPY CODE.main-title { 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
sharmstrModeratorLike most Buddypress pages, they are not editable using the page editor in WP Admin. They are all controlled by template files. You should search this forum. Your questions have been asked and answered in other topics.
Sidebar: Make sure you have a sidebar layout selected in Theme Options -> BuddyPress -> Member Profile Layout. It will use the main sidebar.
Remove active message: https://archived.seventhqueen.com/forums/topic/user-profile-look
Remove show less/more: add the following css to your child theme
COPY CODE#buddypress div#item-header { background: none; } .toggle-header { display: none; }
Change BuddyPress profile nav icons: There’s a stick for that https://archived.seventhqueen.com/forums/topic/change-buddypress-navigation-menu-icons
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
sharmstrModeratorhere’s the css to fix it.
COPY CODEinput[type="text"] { display: inline; }
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
sharmstrModeratorIt would have been helpful for you to say that you had a problem with a plugin and NOT the theme.
COPY CODE.label { text-align: left;}
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 your custom css in your child theme
COPY CODE.kleo-main-header { border-bottom: 3px solid #00f !important; background: #222 !important; border-color: #0074a2 !important; }
You are forcing the background to #222
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 problem is that Kleo looks for either the featured image or the first image of the post by way of the kleo_get_post_thumbnail_url function. Either one of those plugins probably use their own info in the db to store the image location.
I dont see any easy, upgrade safe way of modifying where kleo looks for the image, so what you’ll probably have to do is modify /kleo/page-parts/post-content-masonry.php. You’ll need to ask the developer how they they are storing the image location in the url. More than likely they are using their own meta_key in the postmeta table. Then around line 117 change
COPY CODE$img_url = kleo_get_post_thumbnail_url();
to
COPY CODE$img_url = get_post_meta( get_the_ID(), 'the plugins meta_key name', true );
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 just tested and can confirm h1 issue. @nsb, you can put the following css rule in your child theme until the Kleo team releases a fix
COPY CODEtime.entry-date { font-family: open sans !important; }
Just change ‘open sans’ to whatever you want.
For your second question, you can copy the ‘kleo_entry_meta’ function (kleo/funtions.php around line 513) into your /kleo-child/functions.php file and remove the items you dont want displayed.
Note that this also effects the post meta information that is displayed in your post list.
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 your custom css.
COPY CODE.header-color .social-header {border: none; height: 10px; }
If you get rid of the height, problem goes away. arrgggg
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.sharmstrModerator1 – link modal connection? I dont understand. Are you saying you wanted the login modal?
2 – Sorry, I dont have time to sort that out for you. If you look at function-breadcrumb.php around line 728 you’ll see a conditional statement
COPY CODEelseif ( '%category%' == $tag && 'category' !== $args["singular_{$post->post_type}_taxonomy"] ) {
I think you might be able to tweak that so it will print the category regardless if you have ‘%category%’ set in your permalinks or not. As I quick test, I changed it to the following and the category printed in the breadcrumb but not the url.
COPY CODEelseif ( 1 == 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
sharmstrModerator@catalin: This works great on the homepage, but also effects the rest of the site when the menu is in ‘sticky’ mode. I’m only using a transparent menu on the homepage. The rest of the site isn’t so I dont want the grey background. If you only want it when using a transparent menu, you have to specify that in your css
COPY CODE.navbar-transparent #header .is-sticky .kleo-main-header { background-color: rgba(0,0,0,0.4) !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
sharmstrModeratorInstead of overwriting the show_likes function, you can add a filter for it
COPY CODEadd_filter('kleo_likes_post_types', 'kleo_my_custom_like'); function kleo_my_custom_like( $post_types ) { $post_types[] = 'your-custom-post-type1'; return $post_types; }
https://archived.seventhqueen.com/forums/topic/item-likes-for-custom-post-types
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@Tom: Abe’s right. But you can run shortcodes within the register.php file.
Here’s a few things I’m doing with my setup
1 – Added a rev slider
COPY CODE<?php putRevSlider( "slider2" ) ?>
2 – Added kleo gaps and dividers
COPY CODE<?php echo do_shortcode('[kleo_gap size="20px" class="" id=""]') ?> <?php echo do_shortcode('[kleo_divider type="long" double="yes" position="center" text="Registration: Before You Sign Up" class="" id=""]') ?>
3 – BUT… you can actually run vc code using do_shortcode. Just build the page in wp-admin using vc, then switch to classic mode and copy. I haven’t tested all elements of vc, but what I have tested has worked. Also, I dont think you can output the xprofile fiends in the middle of a vc row, but you can put vc elements around it (top, bottom, sides.)
4 – I make all users accept 3 rules (similar to terms of service). Normally you’d put those fields in the “base” section of x-profile. I, however, didnt want those to show up on the front end when viewing someones base profile, so I created a separate profile group called “Registration”. They still show up in the profile, but under their own tab and away from the other user info people are interested in. Anyhow, to get those to show up on the profile page I use this loop. Note: the “registration” profile group is the “4” in profile_group_id below.
COPY CODE<?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 4, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
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 25, 2014 at 16:08 in reply to: Comments section hr-title does not display with 0 comments #29702sharmstrModeratorRight. Hmmm.
Can you try changing line 24 of /kleo/comments.php to
COPY CODE<?php if ( comments_open() ) : ?> <div class="hr-title hr-long"><abbr><?php comments_number(__('0 Comments', "kleo_framework"), __('1 Comment', "kleo_framework"), __('% Comments', "kleo_framework") ); ?></abbr></div> <?php endif; // comments_open() ?>
and saving it to kleo-child/comments.php?
Basically I just added a check to see if comments were allowed.
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 if this matters or not but you are not specifying 600 in your google font call
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>
http://stackoverflow.com/questions/21332475/bold-fonts-in-google-chrome-are-blurry-font-face
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@abe. This works great. At first I was thinking that it sucked to have to use all of that code just to add a custom post type, but what I realized is now I have complete control over what settings can be changed. My site will have hundreds of authors and I want to give them the ability to add media to their posts, but not change any of the page formatting. Plus I can remove the ‘upload/self hosted’ fields so they have to use youtube and vimeo videos. Thank you! 🙂
COPY CODEadd_filter( 'kleo_meta_boxes', 'kleo_my_metaboxes' ); function kleo_my_metaboxes( array $meta_boxes ) { // Start with an underscore to hide fields from custom fields list $prefix = '_kleo_'; $meta_boxes[] = array( 'id' => 'general_settings', 'title' => 'Story Media', 'pages' => array( 'fiction' ), // Post type 'context' => 'normal', 'priority' => 'default', 'show_names' => true, // Show field names on the left 'fields' => array( array( 'name' => 'Slider', 'desc' => 'Used when you select the Gallery format. Upload an image or enter an URL.', 'id' => $prefix . 'slider', 'type' => 'file_repeat', 'allow' => 'url' ), array( 'name' => 'Media oEmbed URL', 'desc' => 'Used when you select Video format. Enter a Youtube, Vimeo, Soundcloud, etc URL. See supported services at <a target="_blank" href="http://codex.wordpress.org/Embeds" rel="nofollow">http://codex.wordpress.org/Embeds</a>.', 'id' => $prefix . 'embed', 'type' => 'oembed', ) ) ); return $meta_boxes; }
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’ve been thinking about doing something like this as well. Ignore my plugin suggestion above. If you dont want to code your list, you can use https://wordpress.org/plugins/w4-post-list/. Its simple to use and I achieved what you were asking in less than 5 mins. Here’s what I did.
– Create a list for a specific category:
Add new
Select “post” for list type
Select ‘categories’ in Posts: Tax Query and put your category name in the terms box.
When you save it, it will give you a shotcode.– Create the category specific page
Copy /kleo/archive.php to /kleo-child/category-your category name.php.
Delete everything between ‘before-wrap’ and ‘after-wrap’.
Insert the list using the do shortcode commandCOPY CODE<?php echo do_shortcode('[postlist id="593"]'); ?>
** Change 593 to your list id
That’s it. The plugin offers ways to style the list.
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 cant remember off the top of my head how kleo calculates what gets hidden under the + sign. It has to do with adding up the icons width + padding. Without digging into that, you can play with the padding on either side of the icons by putting something like this in your child css and changin 20px to 10px.
COPY CODE#buddypress div#item-nav ul li a { padding: 5px 20px; }
The icons are fonts and the size is determined by
COPY CODE#buddypress div#item-nav ul li a:before font: 400% "fontello" !important; }
You can lower that down to 200% or something. Again, you’ll have to play around with it.
Keep in mind, there are other things you might want to adjust if you go this route. Like the number bubble that overlays the icon and possibly the font size of the labels.
And of course, since its all based on total with of all the icons compared to total width of the screen, results may vary.
One thing I’ve considered doing is rearranging the order of the icons so that the frequently used ones are almost always displayed. I really dont care if ‘settings’ is always shown because it will be rarely used.
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 div that holds the profile cover is injected by this line of code
COPY CODEadd_action( 'bp_before_member_header', array( $this, 'add_profile_cover' ), 20 );
If you want to change where its injected then you’ll have to change ‘bp_before_member_header’ to wherever you want.
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 confused. The plugin shows all posts published by the member that your viewing. The author attribute is needed in order to do this. If you want all posts by all users basically you’re wanting to show the sites blog in every users profile. Is that what you’re trying to do? If so, then remove the author attribute on line 101
COPY CODEecho do_shortcode('[bp-posts-in-profile category="'.$category.'" author="'.bp_core_get_username($bp->displayed_user->id).'"]'); // Displays a shortcode output.
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 entire plugin is based off of Display Posts Shortcode: http://www.billerickson.net/shortcode-to-display-posts/
Here is a list of all possible attributes. I’m only sending ‘category’ and ‘author’, plus a custom one to load the ‘page-parts/post-content-masonry’ template.
COPY CODE$atts = shortcode_atts( array( 'title' => '', 'author' => '', 'category' => '', 'date_format' => '(n/j/Y)', 'display_posts_off' => false, 'exclude_current' => false, 'id' => false, 'ignore_sticky_posts' => false, 'image_size' => false, 'include_title' => true, 'include_author' => false, 'include_content' => false, 'include_date' => false, 'include_excerpt' => false, 'meta_key' => '', 'meta_value' => '', 'no_posts_message' => '', 'offset' => 0, 'order' => 'DESC', 'orderby' => 'date', 'post_parent' => false, 'post_status' => 'publish', 'post_type' => 'post', 'posts_per_page' => '10', 'tag' => '', 'tax_operator' => 'IN', 'tax_term' => false, 'taxonomy' => false, 'wrapper' => 'ul', 'wrapper_class' => 'display-posts-listing', 'wrapper_id' => false, 'template' => false ), $atts, 'display-posts' );
Is it only showing a specific number of posts? Or the masonry auto load isnt working? Or something else?
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