This topic has 26 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #154879
     sheltonjb
    Participant

    Hi, i can’t for the life of me find where the option is to remove the floating contact icon in the bottom right hand corner. is there an option to or shall i just use css to hide it?

    thanks

    Shelton

    #154952
     Laura
    Moderator

    Hello, at theme options you can hide the contact form 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #155984
     sheltonjb
    Participant

    hi laura, i’m trying to find where to submit questions, it’s hard to find a way to get support. i have no idea how i manged to ask this one previously!

    I wanted to ask about how videos are displayed on the homepage, i cant seem to make them appear like the images do (within the top of the individual post containers)

    also is there a way to remove the portoflio stuff as it’s not needed..

    thanks

    SHelton

    #156091
     Laura
    Moderator

    Hello, can you share a screenshot of the video issue?
    About portfolio, you can turn off that module using theme options 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #156096
     sheltonjb
    Participant

    Laura you legend! i found it, so simple but there’s soooo much stuff i can never find anything!

    OK i got the video thing pulling through (so it shows a thumbnail at the top of the pinterest style post on homepage) but i noticed another issue, when you click the post and go through to the page it displays 2 of the embedded videos!? know anything about that?

    Videos are my main focus so need to get it right

    thanks again

    Shelton

    Attachments:
    You must be logged in to view attached files.
    #156290
     Laura
    Moderator

    Hello, that can be fixed with simple css, can you share access so i can see the post?

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #156636
     sheltonjb
    Participant

    i found that thanks Laura, though can you tell me where the h1 and breadcrumb html is please? i want to wrap them in a div and do something with them..

    thanks

    #156768
     Laura
    Moderator

    Hello, the html? The site is builded with php, there are no html pages but php with html, and it depends on where exactly you want to change it

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #156807
     sheltonjb
    Participant

    Yeh I can see it’s php 🙂 i’m a senior frontend developer at a large company, but backend development isnt beyond me! i found it in theme-functions, i wanted to wrap the h1 and breadcrumb in a div and then run an ad alongside them in the grey space rather than the provided space above. got it now, cookin on gas 🙂

    thanks

    #156808
     sheltonjb
    Participant

    i meant: “backend development IS beyond me!”

    duh

    #157022
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #157230
     Radu
    Moderator

    Hi,

    In first instance please replace the content of this file : /Applications/XAMPP/htdocs/kleo/wp-content/themes/kleo/lib/theme-functions.php with this one : https://pastebin.com/raw/0DmHYS25

    The HTML markup for the breadcrumbs it’s on this file: /wp-content/themes/kleo/lib/theme-functions.php

    But it’s not recommended to modify in theme cuz on theme update the changes will gone , after you replace the file content add next function to child theme wp-content/themes/kleo-child/functions.php

    COPY CODE
    
    if ( ! function_exists( 'kleo_title_section' ) ) {
    
    	function kleo_title_section($args = false)
    	{
    		$defaults = array(
    			'title' => get_the_title(),
    			'show_title' => true,
    			'show_breadcrumb' => true,
    			'link' => '',
    			'output' => "<section class='{class} border-bottom'><div class='container'>{title_data}<div class='breadcrumb-extra'>{breadcrumb_data}{extra}</div></div></section>",
    			'class' => 'container-wrap main-title alternate-color ',
    			'extra' => '<p class="page-info">' . do_shortcode(sq_option('title_info', '')) . '</p>',
    			'heading' => 'h1'
    		);
    
    		// Parse incoming $args into an array and merge it with $defaults
    		$args = wp_parse_args($args, $defaults);
    		$args = apply_filters('kleo_title_args', $args);
    
    		// OPTIONAL: Declare each item in $args as its own variable i.e. $type, $before.
    		extract($args, EXTR_SKIP);
    
    		if (!empty($link)) {
    			$title = "<a href='" . $link . "' rel='bookmark' title='" . __('Permanent Link:', 'kleo_framework') . " " . esc_attr($title) . "'>" . $title . "</a>";
    		}
    
    		$breadcrumb_data = '';
    		if ($show_breadcrumb) {
    			$breadcrumb_data = kleo_breadcrumb(array(
    				'show_browse' => false,
    				'separator' => ' ',
    				'show_home' => __('Home', 'kleo_framework'),
    				'echo' => false
    			));
    		}
    
    		$title_data = '';
    		if ($show_title) {
    			$title_data = '<{heading} class="page-title">{title}</{heading}>';
    		}
    
    		if (!$show_breadcrumb && $extra == '') {
    			$class .= ' title-single';
    		}
    
    		$title_layout = sq_option('title_layout', 'normal');
    		if (is_singular() && get_cfield('title_layout') && get_cfield('title_layout') != '') {
    			$title_layout = get_cfield('title_layout');
    		}
    		if ($title_layout == 'center') {
    			$class .= ' main-center-title';
    		} elseif ($title_layout == 'right_breadcrumb') {
    			$class .= ' main-right-breadcrumb';
    		}
    
    
    		$output = str_replace('{title_data}', $title_data, $output);
    		$output = str_replace('{class}', $class, $output);
    		$output = str_replace('{title}', $title, $output);
    		$output = str_replace('{breadcrumb_data}', $breadcrumb_data, $output);
    		$output = str_replace('{extra}', $extra, $output);
    		$output = str_replace('{heading}', $heading, $output);
    
    		return $output;
    	}
    
    }
    
    

    Now you can make the breadcrumb structure updateproof.

    Where i can see a post with youtube video displayed twice ? URL + admin credentials in a private reply

    Cheers
    R.

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

    Thanks Radu, but you’ve killed my site, i now have an error on line 58 within child fucntions.php

    while you’re here, what is ‘featured’ tag supposed to do? i don’t notice that it does anything….?

    thanks

    #157361
     sheltonjb
    Participant

    infact it’s complaining about 3 areas:

    line 58
    if (!$show_breadcrumb && $extra == ”) {
    $class .= ‘ title-single’;
    }

    line 63
    $title_layout = sq_option(‘title_layout’, ‘normal’);
    if (is_singular() && get_cfield(‘title_layout’) && get_cfield(‘title_layout’) != ”) {
    $title_layout = get_cfield(‘title_layout’);
    }

    and line 80, which is just an ending curly bracket
    }

    #157362
     sheltonjb
    Participant

    hmm, it’s stripped some of the code out.

    looks like it doesn’t like the hash tags, seems to be commenting everything out after it. What are they for? is it for character symbols?

    #157363
     sheltonjb
    Participant

    I figured it out Radu, it was the ‘&&’ it was only doing one & then the ascii code for the second one

    so they should be &&, right?

    OK that’s all working now, so as it’s in ‘kleo-child’ that means it wont get touched by updates is that right?

    #157364
     sheltonjb
    Participant

    ah maybe not.

    i now have:

    Fatal error: Call to undefined function kleo_translateColumnWidth() in /home/*/*/wp-content/themes/kleo/vc_templates/vc_column.php on line 27

    on my homepage

    #157365
     sheltonjb
    Participant

    it was asking for this:

    /**
    * Translate column proportions to classes
    *
    * @param string $width
    *
    * @return string
    */
    function kleo_translateColumnWidth( $width ) {
    if ( preg_match( ‘/^(\d{1,2})\/12$/’, $width, $match ) ) {
    $w = ‘vc_col-sm-‘ . $match[1];
    } else {
    $w = ‘vc_col-sm-‘;
    switch ( $width ) {
    case “1/6” :
    $w .= ‘2’;
    break;
    case “1/4” :
    $w .= ‘3’;
    break;
    case “1/3” :
    $w .= ‘4’;
    break;
    case “1/2” :
    $w .= ‘6’;
    break;
    case “2/3” :
    $w .= ‘8’;
    break;
    case “3/4” :
    $w .= ‘9’;
    break;
    case “5/6” :
    $w .= ’10’;
    break;
    case “1/1” :
    $w .= ’12’;
    break;
    /* custom 5 columns */
    case “1/5” :
    $w = ‘col-sm-1-5’;
    break;

    default :
    $w = $width;
    }
    }

    return $w;
    }

    so i’ve put it back in, until you can update me. or should i just remove the reference to it in vc_column.php ??

    #157594
     Radu
    Moderator

    The code provided by me has correct syntax, i don;t know what you change there we cannot offer support for custom modifications

    Cheers
    R.

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

    Custom modification? Where?

    I did what you said and it broke everything!

    #157598
     sheltonjb
    Participant

    So how do i fix it? The updated code for vc broke everyrhing. It was asking after things that werent there thats why i had to add it back in

    #157732
     Radu
    Moderator

    Hi again,

    Please do the things again, on my local install there is no error and the solution it;s ok it allows you to change the breadcrumb html structure.

    1. Replace the content of this file : /Applications/XAMPP/htdocs/kleo/wp-content/themes/kleo/lib/theme-functions.php with this one : https://pastebin.com/raw/0DmHYS25

    2. Paste the code from pastebin to wp-content/themes/kleo-child/functions.php : https://pastebin.com/raw/dabyZiWc

    Here you will do the html structure change.

    You should be able to handle php errors if you are php dev.

    Cheers
    R.

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

    Hi, i’m not a php dev. I’m a frontend dev. So not fully understanding where its broken.

    I did this and it complains about a function looking for the vc column stuff so i had ro put it back in. Or do you recommend i remove the function thats asking for it?

    Cheers

    #157832
     Radu
    Moderator

    Provide FTP details to do this for you, in a private reply.

    Cheers
    R.

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

    hi Radu,

    When i just replace the code you supplied, i get the errors attached.

    it complains in both vc_column.php and vc_column_inner.php

    looks like it’s failing because of this:$width = kleo_translateColumnWidth( $width ); when i remove that from both the files it works fine. the question is, does it require those? or will it crash something?

    thanks

    Attachments:
    You must be logged in to view attached files.
    #158157
     sheltonjb
    Participant

    it’s because the function that it references is removed from the header. (see attached)

    so is it safe to remove them from vc_column and vc_column_inner as mentioned above? how come we don’t need the widths in there anymore?

    Attachments:
    You must be logged in to view attached files.
    #158343
     Radu
    Moderator

    You can remove those but make a copy of those for later use maybe you need it. If it works as you need it’s ok

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 27 posts - 1 through 27 (of 27 total)

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

Log in with your credentials

Forgot your details?