Forum Replies Created
-
AuthorPosts
-
This can be closed
Guenni007′ suggestion solves the problem – thank you!!
Login info here:
That was it! Thanks for finding that!
I already did this.
(Just to proove thats not the issue I have completely removed the override shortcode file)- This reply was modified 5 years, 9 months ago by christiemade.
Thank you very much! That was the solution I needed.
For anyone else following allowing, the code above works except that $template_url is not defined so I replaced those with get_template_directory(), so the code would be://Load child theme avia.js function wp_change_aviajs() { wp_dequeue_script( 'avia-default', get_template_directory().'/js/avia.js', array('jquery')); wp_deregister_script( 'avia-default', get_template_directory().'/js/avia.js', array('jquery')); wp_enqueue_script( 'avia-default', get_stylesheet_directory_uri().'/js/avia.js', array('jquery')); } add_action( 'wp_enqueue_scripts', 'wp_change_aviajs', 100 );
My avia.js file is loaded and the enfold one is not anymore and there are no longer any JS console errors.
- This reply was modified 5 years, 9 months ago by christiemade.
Here you go
I assume you’re looking on staging now, the credentials weren’t setup there but the ones from above should work on staging now, too.
I am not following, this code still loads enfold/js/avia.js onto the page. I do not want that script loading. MY copy of avia.js loading last was never the problem. The problem is that enfold’s avia.js is loading at all. I cannot have BOTH scripts on the page at the same time. Mine is meant to be a replacement, not sitting on top of it.
When I use wp_dequeue_script the site still loads enfold/js/avia.js.
Here is what I have right now:function vmc_scripts() { wp_deregister_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/scripts/avia.js', array('jquery'), false, true ); } add_action( 'wp_enqueue_scripts', 'vmc_scripts', 100 );
Not quite, I am using ‘wp_enqueue_scripts’ action with ‘wp_deregister_script’. Your method makes both copies of avia.js load on the page. I do not want the enfold copy to load, just the child theme copy.
That sounded promising but unfortunately, did not help!
I’ve made a staging copy that displays the errors.
- This reply was modified 5 years, 10 months ago by christiemade.
I reuploaded Enfold through FTP, this didn’t fix the problem. Same error thrown in error logs, for what it’s worth.
This reply has been marked as private.I think I am good on this issue, updating my overrides (functions.php) to match latest version of Enfold seems to have fixed the problem!
I didn’t turn off the editor…and don’t have any plugins enabled that would hide it… isn’t that turned off by Enfold? Plugins menu should be there. Can you check again? Do you need FTP instead?
For those curious, there is a style on the video called ‘object-fit’, provided by my browser (chrome, pc) it was set to “contain”. I added some CSS to the video {} tag like:
.ls-background-videos video { object-fit: cover; }
And that fixed the issue in Firefox/Chrome/Safari. I still see the issue in IE and it sounds like IE doesn’t support object-fit.Is there any other interim solution? Even if it’s hacky, that’s OK – the copy of Enfold is “hacked” and cannot be updated at this time – we plan to do it eventually when we have enough budget to rebuild the custom pages. I just need something that will make this work. I am on a dev server anyway so just for kicks I have updated Enfold just so you can see that it doesn’t fix the problem, anyway. I’d love to set it back though for the time being.
Just to get the shortcode in… I switched to the LayerSlider widget instead but the margins are still there.
Okay, I tried removing the SVG and that didn’t help – which shortcode are you referring to? There’s a custom one at the bottom of the page, but that’s not where the issue is….
I am not sure I understand your last question, either… They want the header to float over the video.Here is a page with nothing but the video on it and you can see the mobile issue is still happening here, too:
- This reply was modified 6 years, 1 month ago by christiemade.
This reply has been marked as private.December 8, 2016 at 9:25 pm in reply to: Notice: Undefined variable: http_response_header in function-set-avia-frontend #722182Where is there a reference to that video file? Running WP Optimize did not help. I searched the entire database and see no reference to Fran-Connect-2-0-FINAL.webm. Just Fran-Connect-2-0-FINAL.mp4 which is used on the homepage and exists.
- This reply was modified 7 years, 11 months ago by christiemade.
November 30, 2016 at 11:51 pm in reply to: Notice: Undefined variable: http_response_header in function-set-avia-frontend #719030This is a dev site so you don’t need to hide it, we already have it hidden on the live site. I want to see the errors so I know they’ve gone away.
I don’t know anything about that video file – is that what is causing the issue?November 25, 2016 at 7:44 pm in reply to: Notice: Undefined variable: http_response_header in function-set-avia-frontend #717020FTP info below:
November 23, 2016 at 3:06 am in reply to: Notice: Undefined variable: http_response_header in function-set-avia-frontend #715688We already tried this an it did not help.
November 10, 2016 at 12:17 am in reply to: error message in "function-set-avia-frontend.php" line 637 #710488We are having the same issue here:
http://unlikelyheroine.com/Same errors at the top of the page, I’ve already reinstalled twice and disabled plugins, nothing is helping. What can we do?
-
AuthorPosts