Forum Replies Created
-
Author
-
sharmstr
ModeratorYou 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
sharmstr
Moderatorbbpress doesnt support it well. They have known about this for years but its not a priority for them. For buddypress, ask over in their forums.
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 6, 2015 at 14:12 in reply to: Main blog page uses only main sidebar instead of the one assigned #44940sharmstr
ModeratorOh ok. Its hard to guess who knows what already around here 🙂
These work for me
Forums: is_bbpress() && !bp_is_members_component() && !bp_is_user()
Blog: is_home()
Members: bp_is_members_component()
Members “own” profile: bp_is_home()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
sharmstr
Moderator1 – Yes. The current version is compatible as well.
2 – Very soon
3 – The download package will include VC 4.4.2. As always, you will need to install it.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
sharmstr
ModeratorI 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
February 6, 2015 at 02:57 in reply to: Child theme removes logo image & screws page some pages (css) #44900sharmstr
ModeratorLogos and such are set in theme options. if you’ve been running the Kleo parent theme to set up your site, you need to re-enable it, export the settings, enable kleo-child and import the settings. Either that or manually reconfigure your settings: http://sharmstr.com/saving-importing-and-exporting-kleo-settings/
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
sharmstr
ModeratorHmmm. Maybe a permissions issue, but that seems like it would error out. Can you try enabling wp debugging and try importing By Content Type > Pages
To turn on debugging, open up wp-config.php and look for WP_DEBUG. Set it to this
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_DISPLAY’, 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
sharmstr
ModeratorIf you’re talking about VCs new Grid Elements that they recently released, its not supported until Kleo 2.4 which will be released soon. 2.4 has been delayed due to the new VC and all its changes AND Buddypress 2.2 which was released today.
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
sharmstr
ModeratorSoon. It was due to already be released, but Visual Composer had a major update and Buddypress released 2.2 today. Kleo had to be modified to support both of those updates.
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
sharmstr
ModeratorI had that issue when I was hosted on a slow server. They eventually showed up (30 mins later?). The script was still being processed on the slow server. Give it some time and report back if the pages still dont show up.
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
sharmstr
ModeratorYou should not install newer versions than the ones provided in the Kleo install. VC 4.4.2 made significant changes/additions that have been undergoing compatibility testing with the next version of Kleo. As a matter of fact, the release of VC 4.4.2 actually delayed the release of Kleo 2.4.
Kleo 2.4 will be released very soon and will have VC 4.4.2. (I actually got a copy of it today and its working nicely). In the meantime, download Kleo 2.3.1 from themeforest. It has VC 4.3.5 which works with with Kleo 2.3.1 AND fixes some issue that VC 4.3.4 (the version you tried to upgrade) had with WP 4.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
sharmstr
ModeratorBut 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
February 6, 2015 at 00:42 in reply to: Main blog page uses only main sidebar instead of the one assigned #44884sharmstr
ModeratorWe can all replicate the issue. WP controls that, just like Buddypress controls their pages. For example, try typing something into the editor for the blog page. It doesnt display. WP takes over displaying any page you set to being your “blog” page. Just like Buddypress takes over pages like Register, Members, Activate, etc. I know its confusing because you see the sidebar option. Unfortunately it doest work for certain pages that are merely placeholders for processing that happens outside of the standard page routines.
Instead of content aware sidebars, try using Widget Logic. You can use one sidebar, then set only certain widgets to display if its the blog page. https://wordpress.org/plugins/widget-logic/
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
sharmstr
ModeratorDoes it work in a different theme?
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
sharmstr
ModeratorCan you ask them for the part of the log that shows its the kleo framework? There is a mention garbage collection in a commented out part of the script in the framework. But it doesnt actually initiate or schedule garbage collection.
Also, can you reply privately with a link and credentials to your site.?
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
sharmstr
ModeratorThe copy and paste doesn’t work because of the pretty formatting of the single quotes as @Norman found.
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
sharmstr
ModeratorOr try this plugin http://wordpress.org/plugins/peters-login-redirect/ I think that works with the bp widget
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
sharmstr
ModeratorI suggest asking over on the buddypress forum since its their widget.
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
sharmstr
ModeratorAlso, lets take this offline. Email me the results.
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
sharmstr
ModeratorIt appears that BP Custom Reg is not working with BP 2.2. As far as injecting the message. Try removing all of the css and see if the BP Custom Reg message even shows up anymore.
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
sharmstr
Moderatorbtw – you can set up a test site using sitegrounds staging feature.
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
sharmstr
ModeratorIts because you upgraded BP to 2.2. Early on I warned you about setting up a test site to make sure everything works before upgrading your production site. There are several things that don’t work in Kleo as well.
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
sharmstr
ModeratorNope.
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
sharmstr
ModeratorJust so you know I’m not crazy. This is from that test site I set up for you.
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.sharmstr
ModeratorIts worked on the test site.
The issue is that second message doesnt have a css class associated with it so its hard to target it. Arrrrg. Hold 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
sharmstr
ModeratorDid you remove the .error one that radu gave you? You should only have what I posted. Nothing 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
sharmstr
ModeratorGood on ya! I’m sure there will be plenty of others who dont follow that golden rule.
btw – that code will not be part of 2.4. Its merely a temporary workaround and should be removed when Kleo supports BP 2.2
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
sharmstr
ModeratorYou should ask over on the PMPro forum or if you dont want to pay, then search their support forum on their wp plugin 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
sharmstr
ModeratorTry 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
sharmstr
ModeratorYou 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
sharmstr
ModeratorCOPY 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
sharmstr
Moderator@radu I’ve been working with him. I’ll handle it.
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
sharmstr
ModeratorTry 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
sharmstr
ModeratorThey changed their js code. Those changes obviously aren’t in Kleo yet. You can try putting this into your Theme Options > General Settings > javascript code, but I dont know what it will break.
EDIT: Code has issues. Working on a better solution.
In the future, you should wait for Kleo to support new versions of VC, Rev Slider, bbPress, WP and BP before upgrading.
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
sharmstr
ModeratorIf you mean having the author avatar in the author meta, I’ve added that to 2.4.
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.sharmstr
ModeratorYes, please add them to the feature requests.
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
sharmstr
ModeratorNo. I haven’t.
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
sharmstr
ModeratorPut 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
sharmstr
ModeratorIts happening because your site is generating a bunch of extra li tags. If I manually correct it using the inspector, the label correctly positions itself.
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.sharmstr
ModeratorSorry, got pulled away.
No, I dont see any issue with that. I’m still trying to figure out why you need it though. Its not happening on any of my sites.
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