Forum Replies Created
-
Author
-
fundlrParticipant
Hey,
Can you show me a screenshot? Which plugin is générations these style choice?
We do not see them.
Cheers,
Denis
fundlrParticipantPlease address your questions to the relevant support team. (FaceWP in your case)
(i’m just a user, not part of any support team)fundlrParticipantNo sorry.
You might want to ask to VC support team if you can tweak their filters behaviour.fundlrParticipantFinally I did not use the default VC component.
I used FacetWP to get my filters done.fundlrParticipantThis topic was about how to customize the appearance of single items in a carousel (with custom fields and so on), not on how to add a carousel in a template, which seems to be your question here. (” i have hard time finding how to put carousel into my custom single-post php template”)
This is how i did it, but i’m not sure this answers your question. (you might have to search in this forum, or create your own support topic)
As suggested by sharmstr, I made a copy of post-content-carousel.php from the main theme (/kleo/page-parts/) folder, and placed in my child theme (kleo-child/page-parts/post-content-carousel.php)
And inside, I replaced the contents with my own.
(displaying custom fields values with<?php echo get_field("fieldName") ?>
)This PHP file is used to render each single item of the carousel.
fundlrParticipantThis topic was about how to customize the appearance of single items in a carousel (with custom fields and so on), not on how to add a carousel in a template, which seems to be your question here. (” i have hard time finding how to put carousel into my custom single-post php template”)
This is how i did it, but i’m not sure this answers your question. (you might have to search in this forum, or create your own support topic)
As suggested by sharmstr, I made a copy of post-content-carousel.php from the main theme (/kleo/page-parts/) folder, and placed in my child theme (kleo-child/page-parts/post-content-carousel.php)
And inside, I replaced the contents with my own.
(displaying custom fields values with<?php echo get_field("fieldName") ?>
)This PHP file is used to render each single item of the carousel.
fundlrParticipantHi,
This is what I’ve done:
– Remove the “Socket” area in Theme General Settings (as it’s not translatable as-is)
– Duplicate sidebar-footer.php in my child theme and make it one single column
– Create a new menu, translated with WPML.
– In Appearance / Widgets, into Footer Column 1
– Add a UberMenu widget (automatically gets the menu in selected language)
– Add several widgets “Multilingual Text” (one per language, with corresponding one in settings)fundlrParticipantHi,
I’m not sure to understand the way to proceed to achieve what you’re suggesting…
Is this set in General settings of the theme? (can’t find any widgets there)Note: using v.3.0.1 of Kleo (no updates available directly from WordPress)
Thanks again
fundlrParticipantHi, thanks for your answer.
I was able to make a custom post-content-carousel.php part by replacing with my own content.fundlrParticipantDamn, code has been screwed up
Hi,
The class is not automatically added by UberMenu on the
<a>
element, but only on the<li>
holder:COPY CODE<li id="menu-item-11351" class="kleo-show-login ubermenu-item ubermenu-item-type-custom ubermenu-item-object-custom ubermenu-item-11351 ubermenu-item-level-0 ubermenu-column ubermenu-column-auto"> <a class="ubermenu-target ubermenu-item-layout-default ubermenu-item-layout-text_only" href="http://site.com/wp-login.php" tabindex="0"><span class="ubermenu-target-title ubermenu-target-text">Login</span></a> </li>
I can add the class in the menu item settings, resulting in:
COPY CODE<li id="menu-item-11351" class="kleo-show-login ubermenu-item ubermenu-item-type-custom ubermenu-item-object-custom ubermenu-item-11351 ubermenu-item-level-0 ubermenu-column ubermenu-column-auto"> <a class="ubermenu-target kleo-show-login ubermenu-item-layout-default ubermenu-item-layout-text_only" href="http://site.com/wp-login.php" tabindex="0"><span class="ubermenu-target-title ubermenu-target-text">Login</span></a> </li>
Modal isn’t fired, just link to page http://site.com/wp-login.php
No Javascript errors in console.BTW it seems that none of KLEO menu items are working
I tried with Live Notifications, and My Account :COPY CODE<li id="menu-item-11354" class="kleo-menu kleo-notifications-nav kleo-toggle-menu ubermenu-item ubermenu-item-type-custom ubermenu-item-object-custom ubermenu-item-11354 ubermenu-item-level-0 ubermenu-column ubermenu-column-auto"> <a class="ubermenu-target ubermenu-item-layout-default ubermenu-item-layout-text_only" href="#" tabindex="0"><span class="ubermenu-target-title ubermenu-target-text">Live Notifications</span></a> </li> <li id="menu-item-11355" class="kleo-menu kleo-user_avatar-nav ubermenu-item ubermenu-item-type-custom ubermenu-item-object-custom ubermenu-item-11355 ubermenu-item-level-0 ubermenu-column ubermenu-column-auto"> <a class="ubermenu-target ubermenu-item-layout-default ubermenu-item-layout-text_only" href="#" tabindex="0"><span class="ubermenu-target-title ubermenu-target-text">My Account</span></a> </li>
Nothing happens on hover or click on these 2 items.
fundlrParticipantHi,
The class is not automatically added by UberMenu on the
<a>
element, but only on the<li>
holder:
<li id="menu-item-11351" class="kleo-show-login ubermenu-item ubermenu-item-type-custom ubermenu-item-object-custom ubermenu-item-11351 ubermenu-item-level-0 ubermenu-column ubermenu-column-auto"><a class="ubermenu-target ubermenu-item-layout-default ubermenu-item-layout-text_only" href="http://site.com/wp-login.php" tabindex="0"><span class="ubermenu-target-title ubermenu-target-text">Login</span></a></li>
I can add the class in the menu item settings, resulting in:
<li id=”menu-item-11351″ class=”kleo-show-login ubermenu-item ubermenu-item-type-custom ubermenu-item-object-custom ubermenu-item-11351 ubermenu-item-level-0 ubermenu-column ubermenu-column-auto”><span class=”ubermenu-target-title ubermenu-target-text”>Login</span>Modal isn’t fired, just link to page http://site.com/wp-login.php
No Javascript errors in console.BTW it seems that none of KLEO menu items are working
I tried with Live Notifications, and My Account :COPY CODE<li id="menu-item-11354" class="kleo-menu kleo-notifications-nav kleo-toggle-menu ubermenu-item ubermenu-item-type-custom ubermenu-item-object-custom ubermenu-item-11354 ubermenu-item-level-0 ubermenu-column ubermenu-column-auto"><a class="ubermenu-target ubermenu-item-layout-default ubermenu-item-layout-text_only" href="#" tabindex="0"><span class="ubermenu-target-title ubermenu-target-text">Live Notifications</span></a></li> <li id="menu-item-11355" class="kleo-menu kleo-user_avatar-nav ubermenu-item ubermenu-item-type-custom ubermenu-item-object-custom ubermenu-item-11355 ubermenu-item-level-0 ubermenu-column ubermenu-column-auto"><a class="ubermenu-target ubermenu-item-layout-default ubermenu-item-layout-text_only" href="#" tabindex="0"><span class="ubermenu-target-title ubermenu-target-text">My Account</span></a></li>
fundlrParticipantI’ve solved the issue by :
comment line 125 from file: wp-content\themes\kleo\kleo-framework\kleo.php
add_filter(“pre_set_site_transient_update_themes”, array(&$this,”themeforest_themes_update”));
so it is now
//add_filter(“pre_set_site_transient_update_themes”, array(&$this,”themeforest_themes_update”));
(found on this topic)
Maybe is it linked to the fact that we’re in Git updates mode on our server? (and that FTP is disabled?)
For next theme updates, 2 options:
– Doing them manually
– Fix this issue so we can do the automatic update from the backend.fundlrParticipantAdditional info:
nothing modified since yesterday.
Browser gets 504 error on my dev server. Error trace is the same as Gunanithy’s original post.
Front-end works fine.Urgent actions required, please.
-> This is related to the “Helper function to query the marketplace API via wp_remote_request.”
@Kleo team: If for any reason the connection to marketplace or any updating or external ressource fails, it SHALL NOT block access to the back-end.
Failing to check if theme is latest version shall not prevent me to update my site contents.Thanks
fundlrParticipantThanks, i’ll wait until theme release to make sure all functionalities are operational.
fundlrParticipantSo installing 4.5 will “probably” break Kleo, but you still provide it to us?
Not sure if it’s safe to do so or not…fundlrParticipantHi there,
any news on that update?
I’m considering buying VC directly to get sooner updates and support from their team, but not sure if it’s a good idea for possible compatibility issues with Kleo…fundlrParticipantAndrei, you’re my hero!
Many thanks !Here’s my full code, for people who need it.
It displays a bootstrap progress bar in a Grid Element (Post Grid), based on custom fields values (keys: ‘current’ and ‘total’) from custom post type.In a grid element, add a Text block with this content:
{{ post_meta_value:get_custom_progress }}
In functions.php:
COPY CODEfunction get_post_id_as_custom_field($meta_value, $post_id, $meta_key, $single ){ if($meta_key == 'get_post_id'){ return $post_id; } if($meta_key == 'get_custom_progress'){ $current = (int)get_post_meta($post_id, 'current', true); $total = (int)get_post_meta($post_id, 'total', true); $prct = round($current / $total * 100); return '<div class="progress"><div class="progress-bar" aria-valuemin="0" aria-valuemax="' . $total . '" aria-valuenow="' . $current . '" style="width:' . $prct . '%">' . $prct . '%</div></div>'; } return $meta_value; } add_filter('get_post_metadata', 'get_post_id_as_custom_field', 10, 4);
One can extend this, with other than ‘get_custom_progress’, getting the needed values, and returning other markup.
Thanks again, Andrei !
fundlrParticipantWow, seems like a life saving !!!
I can now get my values in a shortcode!! Hurray!!
Here is how it looks:
[create_progress current="{{ post_meta_value:current }}" total="{{ post_meta_value:total }}"]
But i’m having difficulties treating them as numbers.
If i do this:
return $atts['total'].'": '.gettype($atts['total']).' ('.strlen($atts['total']);
This is what I get:
50000: string (29)
and intval($atts[‘total’]) will return 0
So i’m not sure what kind of value it is, and why I get this 29 length for all values (whatever it is).
My custom fields types are Number.(I guess this is a bit out of your theme scope, indeed)
I’ll post the final complete code when working, for others who’d like to achive similar.fundlrParticipantYes, i’ll try this in a second phase.
The main issue now is that I can’t even get values with shortcodes.
fundlrParticipant….and I just realized that I have to do some operations on the fields…
I have the current value, the total, so I have to calculate the current percentage to display my bar…
e.g. [current]/[total]*100complicates the need, I guess…
Or might be done with nested shortcodes, if possible.
something like
[calculate]
[acf field=”current”][/acf]
[acf field=”total”][/acf]
[/calculate]fundlrParticipantAdditional info:
If I output the $post_id from the returned value in the custom shortcode (from here), it outputs nothing.
Which lead me to think that within a grid element, this is not the proper way to get the current post ID…
$post_id = (NULL === $post_id) ? $post->ID : $post_id;
Example:
My content in text block in Grid Element:
test: [field "price"]
In the shortcode function in my functions.php, I Changed
return get_post_meta($post_id, $field, true);
to
return (get_post_meta($post_id, $field, true) . '<b>'. $post_id .'</b>');
and the output is:
COPY CODE<div class="kleo_text_column wpb_content_element "> <div class="wpb_wrapper"> <p><span class="test">test: <b></b></span></p> </div> </div>
fundlrParticipantHi,
I’m not sure about this.
Because if I use a Custom Field or Advanced Custom Field item in my Grid Element (same key), it is displayed fine.
It renders the value as a div, with optional label.Except the “bug” with ACF with image type which renders nothing (as this field is an Array. It should detect its an image, and create an tag, with [‘url’] array item as src property – as well as alt, title, etc. if available)
fundlrParticipantHi,
Doesn’t work either…
Too bad we can’t have support from VC team without useless additional purchasing of their plugin…
fundlrParticipantHi,
thanks for the reply.1. Found that CPT UI was loaded after VC, so VC can’t get declared custom post types.
I fixed this by changing the CPT UI plugin priority to high.
i.e. in custom-post-type-ui/custom-post-type-ui.php changing:
add_action( 'init', 'cptui_create_custom_post_types');
to:
add_action( 'init', 'cptui_create_custom_post_types', 0 );
2. and 3. Doesn’t work…
Outputs nothing for me. With or without quotes around key/field value. (double quotes seems needed according to snippet author)
Yet the shortcode function is called because I changed the return by
return get_post_meta($post_id, $field, true) . '---';
And the display of
<span class="test-class">[field "price"]</span>
is
<span class="test-class">---</span>
So it doesn’t get the value at all.I’m sure this value is set because it is displayed using Custom field or Advanced Custom Field in my Grid Element.
Cheers
fundlrParticipantHi, thanks for the reply
1. The plugin I use is CPT UI.
This is my query in the custom query field:
post_type=project&post_status=publish&posts_per_page=10
Navigation is not displayed. (besides, i don’t know how I would have a choice between lazy loading and classic pagination this way)
Adding paged=1 does nothing (no pagination either)
Adding nopaging (to true OR false), will lead into all posts to be displayed.2. The code is missing.
3. I guess this has to be done in some of the php pages of the child theme?
Couldn’t find in Grid Element (grid builder) a way to add some code based on retrieved values from custom fields.fundlrParticipantHi,
Thanks for the reply.
I posted a comment on ThemeForst comments section, I guess here is more appropriate.
Here it is:1. I want the Grid to display Custom Posts (using a custom Grid Element, because I want to display custom fields in there), but the type is not listed in the Source setting. (only have Post, Page, Attachment, Acf, Kleo_clients, Kleo-testimonials, Portfoli, Custom query, List of IDs) The workaround I found is to make a Custom query: post_type=project (where obviously “project” is the name of my custom post type) But then, we lose all settings for posts per page, and pagination. -> I read somewhere that CPT should be listed in the Source dropdown list. Any idea why it’s not? How to get the pagination back, if not possible?
2. In my Grid Element, i’d like to retrieve the custom post image (set as a custom field for this CPT). I’ve tried Custom Field and ADF element, none of them displays the “image” custom field. (neither url of the image, or the image itself)
3. I want to add a bar chart to that Grid Element (just a progress bar actually, e.g. 40/100 achieved) Not sure it’s possible to do that, or how. A workaround could be get the values from my custom fields, and do a bit of CSS on them. But I can’t find a way to build custom HTML from there, by retrieving values. A possible resulting markup, with my example: <div class=”progress-bar”><div class=”progress” style=”width:40%” /></div> (where the 40 value would be calculated from total/current*100)
-> I guess i should wait for the next update and pray for these topics to be possible?
fundlrParticipantWorks, but with default WP query parameters: 10 posts per page, no pagination…
And no parameter in VC Post Grid to change this when you build a custom query…
Damn…fundlrParticipantNever mind, after intensive search in the interwebz, I found the solution.
(not thanks to VC’s poor documentation on this topic)Although CPT should appear in Source setting, it doesn’t for me. (can’t find why)
Then the Custom Query must be without quotes, like this for my need:
post_type=project
(where project is the name of my CPT)fundlrParticipant(not really related, but do we get support from VC by buying Kleo, as it’s included? The purchase code from ThemeForest won’t allow to register on their site)
-
AuthorPosts