Forum Replies Created
-
Author
-
sheltonjb
ParticipantHi Radu,
Thanks for the reply, i was after where the actual code for those blocks are, i’d like to make them more SEO friendly, and tidy it up a bit 🙂
Thanks
p.s. any thoughts on the search block?
sheltonjb
Participanti forgot to ask something else, is there an option to replace the search with google search?
thanks
sheltonjb
ParticipantHey again,
no I spotted that part, was meaning the one in the right hand column, doesn’t have one with it, so can a link be added to it?
thanks
sheltonjb
ParticipantAh yeh, i see what you mean. i thoght they did something ‘out of the box’ and mine werent doing it.
that makes sense, thanks again Laura
sheltonjb
ParticipantThat’s the one Laura, you little legend!
wouldn’t have expected it to be in there
thanks 😉
sheltonjb
Participanthi, i realise this isnt the right place to post, but i cant post a question! i never see any buttons to add a question, only reply boxes… is my account restricted?
i have a few support questions to ask
thanks
sheltonjb
Participantit’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.sheltonjb
Participanthi 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.sheltonjb
ParticipantHi, 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
sheltonjb
ParticipantSo 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
sheltonjb
Participantit 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 ??
sheltonjb
Participantah 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
sheltonjb
ParticipantI 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?
sheltonjb
Participanthmm, 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?
sheltonjb
Participantinfact 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
}sheltonjb
ParticipantThanks 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
sheltonjb
ParticipantYeh 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
sheltonjb
Participanti 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
sheltonjb
ParticipantLaura 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.sheltonjb
Participanthi 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
-
AuthorPosts