Forum Replies Created
-
AuthorPosts
-
Here is a dev site with all plugins turned off and child theme empty except for custom post type. Still happens…
Yes, but I already went through all the code and couldn’t find any issues. I literally strip the theme to nothing but the custom post type declaration and it’s still happening. Could it be something with the way the post type is configured?
Nope, it only happens in the child theme
Yes, it still happens even with all plugins turned off.
Yep, it was me :) Thanks!
Here you go
March 18, 2019 at 10:45 pm in reply to: Portfolio Grid: Remove Current Portfolio Post from Related Portfolio Grid #1080127That did the trick! Thanks!
Will it be available in the next Enfold update?
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 6 years 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 6 years 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 6 years, 1 month 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, 4 months ago by
christiemade.
This reply has been marked as private. -
This reply was modified 6 years ago by
-
AuthorPosts