-
AuthorPosts
-
May 31, 2019 at 8:54 am #1105619
Hi,
We seem to have semi regular issues wth 2 items
1. You Tube video background (with NO AUDIO) not loading on first load (or incognito)
Is there any simple explanation as to why this is happening and how we can fix it?
2. Layer slider also sometimes fails to run on first load or incognito
Is there any fix for this?
I believe I’m running the latest versions of WP, Enfold, plugins, etc
Thanks in advance
CameronMay 31, 2019 at 8:56 am #1105620This reply has been marked as private.June 1, 2019 at 4:06 pm #1106104Hi CBurgo,
Best regards,
VictoriaJune 2, 2019 at 5:52 am #1106269Hi Victoria,
Thanks for this.
I’m unclear on what you mean by “regular mode”?
The video will play on Chrome via you tube.
Are you referring to a different mode in Enfold or Layer slider?
We use Ontraport for our forms. Has there been any discussion about errors in relation to Ontraport?
Thanks for your help and clarification.
Kind regards
CBurgoJune 2, 2019 at 11:35 am #1106339Hi CBurgo,
You were talking about the incognito mode in your original post. I was talking about the regular mode as opposed to incognito. The videos do not load on my end.
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
I have not seen any discussion on Ontraport, unfortunately.
Best regards,
VictoriaJune 3, 2019 at 1:07 am #1106508Hi Victoria,
Ahh, gotcha. :)
Yes, admin access provided below. Thanks in advance for your help. :)
June 4, 2019 at 10:04 am #1106963Hi CBurgo,
You have the footer and the header in your child theme. Did you update them with a fresh copy?
Best regards,
VictoriaJune 6, 2019 at 1:00 am #1107766Hi Victoria,
Thanks for your help with this….
I generally update all items on the site, ie themes and plug ins, as required when there is an update available.
Please forgive me if I’m not 100% clear on whether you’re suggesting I should be doing something other than that?
Can you clarify please?
June 9, 2019 at 7:52 pm #1108675Hi CBurgo,
Yes, when you have a child theme, the files copied to it are not updated when the parent theme is updated. The files in the child theme have to be manually updated and the changes made in them need to be added on top of the fresh copy.
Best regards,
VictoriaJune 11, 2019 at 12:07 am #1108927Hi Victoria,
Ok, thanks for that clarification.
Do you have some simple instructions on exactly what needs to be done & how to do it?
A step by step guide or something? I’m ok at handling our website bit’s and pieces, but I’m certainly no expert, so can you point me to some instructions on how to get this done?
Thanks in advance and kind regards
CameronJune 11, 2019 at 6:06 am #1109014Hi Cameron,
If you need to update the files in your child theme then all you need to do is to copy the file(s) from the parent into your child theme. You could do that either via FTP or by copying the content of them manually using the Theme Editor in the backend of WordPress. But if you are not actually overriding anything from the files in question then they can be deleted, do you know why they have been added in the first place? That is the first question you need to get the answer to.
Best regards,
RikardJune 13, 2019 at 2:28 am #1109637Hi Rikard,
So, my understanding of a Child theme is that it includes any customisations to the Parent theme, that way, when UPDATES are made to the Parent, they are reflected in the Child Theme, but these updates DO NOT remove or impact those customisations in any way.
If that’s correct, then that is the full extent of my knowledge about Child themes. :)
We do have some customisations which is why we use a Child theme.
I thought Updating the Main theme was all we needed to do to keep the site up to date? (At least that’s what I read here – https://kriesi.at/support/topic/how-to-update-enfold-theme-with-a-child-theme/)
So, please accept my ignorance here, but;
1. I’m not sure which files I should be copying over from the Parent Theme – ALL of them??? Won’t that write over any customisations we’ve made?
2. I’m also not clear on which exact files you’re talking about when you talk about the ones that “have been added in the first place”? I assume you mean in the Child Theme, but I just want to be clear before I go & do anything drastic. :)
I appreciate your help and education on how to keep our Enfold Theme working correctly.
Thanks in advance and kind regards
Cameron- This reply was modified 5 years, 6 months ago by CBurgo.
June 13, 2019 at 1:30 pm #1109856Hi Cameron,
You have understood what a child theme does, and what you are saying is correct; you shouldn’t have to update the child theme in most circumstances. The only time you would have to do that would be when something has changed in the parent, such as a function changing names, or a different structure in a file or folder. Then your overrides might have to be updated too.
Answer to your questions:
1. You only have to copy over the files which are already in your child theme, simply add your override to the new file instead of the old one.
2. The files I’m referring to are only the ones which are present in your child theme now, no other files need to be added or updated.
I would recommend that you do changes like this in a staging version of your site, then you don’t have to worry about the production site in case you should make a mistake. I’m not sure if this makes any sense, please let us know if you need clarification on anything else.
Best regards,
RikardJune 14, 2019 at 8:37 am #1110245Hi Rikard,
Thanks.
Just so I’m clear, you’re saying that I should REPLACE the “Theme Footer” and “Theme Header Files” in my Child Theme, with the ones from the Parent Enfold Theme, as per Viktoria’s message below?
June 4, 2019 at 10:04 am #1106963REPLY
Victoria
Moderator
Hi CBurgo,
You have the footer and the header in your child theme. Did you update them with a fresh copy?
Best regards,
VictoriaAnd then I need to re-add any overrides to those files to ensure we don’t lose any customisations?
If that’s the case, is there any easy way to compare the files and SEE if there are Customisations that will be lost if I update from Parent to Child?
Also, is it likely that the “Stylesheet” and “Theme Functions” files will also need replacing to fix the video loading issue?
Thanks and regards
CameronJune 15, 2019 at 5:52 am #1110559Hi Cameron,
Yes, you can compare files using services like this for instance: https://www.diffchecker.com/. You should be able to do so using local software as well but I’m not sure which software to use exactly. The easiest way to keep track of your changes would be to keep proper comments of everything, for instance:
/* * *THIS IS A OVERRIDE TO DO THE FOLLOWING: DESCRIPTION * */ function camerons_function() { do_things_here(); } //End of override
I know that this might not be optimal for you but this is the way it works unfortunately.
I’m not sure exactly what needs to be done to fix the issues you initially opened this thread for, but updating everything would be the first step.
Best regards,
RikardJune 17, 2019 at 1:27 am #1110880Thanks Rikard,
And I’m ‘assuming’ that generally, all customisations would simply be added underneath existing code?
Like in the Stylesheet, it’ll mostly be added to the bottom? Not amended in the Parent code itself?
Thanks!
June 17, 2019 at 5:35 am #1110919Hi Cameron,
Yes, if it’s CSS then you simply add the CSS you want to override in the child theme, you don’t have to add the code which you are actually overriding. It’s a bit different when it comes to templates though, in that case you should try to copy the whole file from the parent, then make your edits in there.
Best regards,
RikardJune 17, 2019 at 9:25 am #1110957Hi Rikard,
What I’m talking about is WHERE in the file the customisations sit, (eg in the Stylesheet they tend to sit underneath the main body)
So I can be clear, if you were going to go through this process with the 4 files in our Child theme, how would you make those updates making sure you don’t override anything that has been customised?
Can you list that chronologically?
That would really help, thanks.
June 18, 2019 at 11:08 am #1111261Hi,
If you are adding modifications to functions.php and style.css files, you can add your codes to bottom of the file. If you are modifying files such as header.php, then it would be the best to check files differences using https://www.diffchecker.com/ as Rikard suggested and then add your modification to updated file in the same location, for example above or below Body tag.
If we are still not on the same page, please elaborate :)
Regards,
YigitJuly 1, 2019 at 6:51 am #1114796Hi Yigit,
Thanks for your message.
I’ve just started going through this process and will do so for Footer and Header files to begin with…..
In relation to Theme Functions – the CHILD functions.php file is VERY different to the Parent theme functions.php file.
The child ONLY has the below
START
<?php//set builder mode to debug
add_action(‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug()
{
return “debug”;
}
END
Whereas the Parent has 739 lines of code.Is that normal?
What is your suggestion there?
Thanks
CameronJuly 1, 2019 at 7:11 am #1114800Hi Yigit,
My Child Theme Header file is completely different to Parent and I’m a bit confused as to how to proceed.
See Content below.
I’m not sure if I should replace everything in the Child down to ?><!DOCTYPE html> OR <!– mobile setting –> ???
This all stemmed from my initial question about background videos and layer slider not playing on first load (Even though all the settings suggest they should)
Is the Header and Footer code likely to be responsible for that? It kinda feels like I’m on a wild goose chase here???
Can you provide an example of what you’re suggesting I should do to Update the Child Header File using the Parent Header File?
Thanks in advance
July 4, 2019 at 10:49 pm #1115927Hi,
Who has done your modifications? Please ask them as you will need to go through a process.
Best regards,
BasilisJuly 5, 2019 at 12:59 am #1115944Hi Basilis,
We used an Upwork contractor. Not sure if we’ll be able to connect with them again? I believe many of the modifications were made to improve the Page score of the standard theme. (minifying javascript etc)
I’m still a bit confused as to why we need to update the Child Theme files. I thought the whole point of them was that any updates made to the Parent theme would reflect in the Child Them EXCEPT for the customisations that had been made in the Child Folders?
Can you suggest any other things I can do to make sure the background video loads properly on our site on first load?
Cameron
July 6, 2019 at 1:22 pm #1116268Hi Cameron,
If you copy theme files to the child theme, you need to update them from time to time, there might have been changes in them and the theme will not work properly with the old one in the child theme.
Best regards,
VictoriaJuly 10, 2019 at 12:34 am #1117228Hi all,
Ok, I have had a developer update the Child Theme with current Parent details.
The FIRST Load of the background video STILL FAILS.
So updating the CHild theme did not resolve the problem
Can you advise what the next steps are to see if we can resolve the issue please?
Thanks
July 10, 2019 at 12:35 am #1117230See below for staging site details with CHild theme updates
July 12, 2019 at 11:58 am #1118039Hi,
Thank you for the update.
Which browser are you using? It loads properly on Microsoft Edge Windows 10 regardless of the browsing mode. I have visited the site for the first time. It is a bit delayed, probably because of my terrible connection, but it does load eventually.
Best regards,
IsmaelJuly 15, 2019 at 6:51 am #1118687Hi Ismael,
The developer has continued working on the site and has fixed the loading problem, I’ll need to confirm what the issue was exactly, but they’ve gone on leave.
So….the video loads, BUT it now has a weird BLIP before the main video shows….
Can you see that when you load the page? The screen is black…..then BLIP….a quick snapshot of an image appears….then goes black again…then the video loads.
See the below screencast example.
July 16, 2019 at 12:23 am #1118994Hi,
That’s the default behavior of Youtube videos and there’s no way to disable that according to the documentation.
// https://developers.google.com/youtube/player_parameters
You can possibly cover the video with another container and then hide that container as soon as the video starts playing. Unfortunately, we can’t help you with that.
Best regards,
IsmaelJuly 16, 2019 at 1:45 am #1119009Hi Ismael,
I’m not sure what you’re referring to. f you could point specifically to the part of that document you refer to, that would be helpful.
Regardless, our developer seems to have been able to have fixed the problem, making these comments….
“…There were some tricky caching issues and problems with the order in which the files were being called but now it is all sorted….”
regards
Cameron -
AuthorPosts
- You must be logged in to reply to this topic.