-
Author
-
March 6, 2017 at 15:34 #154879sheltonjbParticipant
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
March 7, 2017 at 10:00 #154952LauraModeratorHello, 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 solutionLaura 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 🙂
March 19, 2017 at 12:11 #155984sheltonjbParticipanthi 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
March 20, 2017 at 13:27 #156091LauraModeratorHello, 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 solutionLaura 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 🙂
March 20, 2017 at 13:50 #156096sheltonjbParticipantLaura 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.March 22, 2017 at 03:20 #156290LauraModeratorHello, 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 solutionLaura 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 🙂
March 25, 2017 at 02:05 #156636sheltonjbParticipanti 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
March 27, 2017 at 12:48 #156768LauraModeratorHello, 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 solutionLaura 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 🙂
March 27, 2017 at 17:35 #156807sheltonjbParticipantYeh 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
March 27, 2017 at 17:36 #156808sheltonjbParticipanti meant: “backend development IS beyond me!”
duh
March 29, 2017 at 03:24 #157022LauraModeratorHello, 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 solutionLaura 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 🙂
March 30, 2017 at 18:44 #157230RaduModeratorHi,
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 CODEif ( ! 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 solutionApril 1, 2017 at 12:53 #157360sheltonjbParticipantThanks 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
April 1, 2017 at 12:55 #157361sheltonjbParticipantinfact 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
}April 1, 2017 at 12:58 #157362sheltonjbParticipanthmm, 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?
April 1, 2017 at 13:01 #157363sheltonjbParticipantI 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?
April 1, 2017 at 13:10 #157364sheltonjbParticipantah 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
April 1, 2017 at 13:24 #157365sheltonjbParticipantit 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 ??
April 4, 2017 at 19:27 #157594RaduModeratorThe 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 solutionApril 4, 2017 at 19:36 #157597sheltonjbParticipantCustom modification? Where?
I did what you said and it broke everything!
April 4, 2017 at 19:39 #157598sheltonjbParticipantSo 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
April 5, 2017 at 19:09 #157732RaduModeratorHi 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 solutionApril 5, 2017 at 19:53 #157737sheltonjbParticipantHi, 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
April 6, 2017 at 19:20 #157832RaduModeratorProvide 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 solutionApril 11, 2017 at 11:06 #158154sheltonjbParticipanthi 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.April 11, 2017 at 11:15 #158157sheltonjbParticipantit’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.April 12, 2017 at 20:32 #158343RaduModeratorYou 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
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.