-
Author
-
August 24, 2015 at 06:11 #74288DiegoBRRSPFParticipant
Hi!
I’ve just updated my site with the KLEO 3.0.7 and WordPress 4.3 versions.
Right after that, I noticed a strange problem in almost all my pages – a space between the title and the content below (please check the image). Everything was OK before the update – I had KLEO 3.0.6.
Some of the pages wasn’t affected, but I didn’t found a reason, because most of them are very similar.
This is kind of frustrating, because I didn’t remember a single KLEO or WordPress update that I haven’t had any problems… 🙁
Any ideas?
Thanks.
Attachments:
You must be logged in to view attached files.August 24, 2015 at 06:52 #74290DiegoBRRSPFParticipantIt seems I found the “problem”…
I edited a page with just a line (Visual Composer) and a text box on it. I clicked at the “Line Settings” and found a setting “Top padding”, with the “40” value. I didn’t remember if this setting was there before but the site was correct, so I guess is a new setting or the value I filled before was replaced for “40” after the KLEO or WordPress update.
Any ideas?
Thanks.
August 25, 2015 at 13:09 #74497sharmstrModeratorIt has always been an VC default. K-elements had an issue where some defaults weren’t being set. Its been fixed, so that’s why you’re seeing it now. Just adjust them.
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 16:20 #76022Suite ComParticipantHi!
I’d like to follow up on this, if possible.
Is there a hack for preventing VC from automatically inserting “40” by default in the Top padding and Bottom padding for rows? My client prefers a more compact page layout, and it’s a bit of a pain to have to delete each “40” manually from each row.
Thanks in advance!
September 3, 2015 at 16:34 #76025sharmstrModeratorcopy kleo/vc_templates/vc_row.php to your child theme and edit the default padding_top and padding_bottom values. Be sure that you verify that no code changes have been made to that file after every kleo update.
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:00 #76032Suite ComParticipantThank you for the very fast reply!
I had actually tried that and emptied the browser cache, but it still seems to be ignoring my child theme version of vc_templates/vc_row.php, in which I’ve set padding_top and padding_bottom to ” [empty].
Is there another mod I need to make somewhere so that KLEO calls my child theme’s vc_row.php instead?
Cheers!
September 3, 2015 at 17:24 #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
September 4, 2015 at 12:12 #76188Suite ComParticipantThat works just fine!
Thank you very much for your help.
Great theme, and excellent customer service! I’ll be using this theme for a number of client sites 🙂
Cheers
September 4, 2015 at 15:08 #76200sharmstrModeratorawesome!
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
The forum ‘KLEO’ is closed to new topics and replies.