This topic has 9 replies, 3 voices, and was last updated 9 years by sharmstr.

  • Author
  • #74288
     DiegoBRRSPF
    Participant

    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.
    #74290
     DiegoBRRSPF
    Participant

    It 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.

    #74497
     sharmstr
    Moderator

    It 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #75121
     DiegoBRRSPF
    Participant

    OK, tks.

    #76022
     Suite Com
    Participant

    Hi!

    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!

    #76025
     sharmstr
    Moderator

    copy 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #76032
     Suite Com
    Participant

    Thank 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!

    #76039
     sharmstr
    Moderator

    right. looks like its been set as a default in the vc_map config. Try this

    COPY CODE
    
    add_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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #76188
     Suite Com
    Participant

    That 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

    #76200
     sharmstr
    Moderator

    awesome!

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 10 posts - 1 through 10 (of 10 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?