Forum Replies Created
-
AuthorPosts
-
Hi,
Sorry for the late reply and thanks for the login, I researched your error/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Loader.phpand found this woocommerce thread were the woocommerce support explains what it is and how to correct:It sounds like there is a product remnant in your database that was not properly deleted. Search your database for butterbean and purge any entries.
and their final advice was:
Your errors are php notices only. They will not interrupt any functionality and should not display to begin with. You can hide them completely by adding this to your
wp-config.php:define( 'WP_DEBUG', false ); define( 'WP_DEBUG_DISPLAY', false );I see that WP_DEBUG is enabled on your site, so you can try purging your database or disabling WP_DEBUG.
I also researched the Loader.php file and the errors are pointing to the woocommerce header being created and adding admin body classes, so this seems to point to something clashing with this. I see that you have many premium woocommerce plugins so I suspect one of these, have you tried disabling your plugins and clearing your cache one at a time to find the error?
Since this is a “notice” for admin users I would say it is safe to follow the woocommerce support recommendation and disable your WP_DEBUG
Best regards,
MikeHey Empatica,
Sorry for the late reply and thanks for the login, I see that you have the option “Disable adding unique timestamps” set, and that enough time should have past that the server cache should have caught up by now. I see that your SG Optimizer plugin has the Memcached option disabled, but the Dynamic NGINX cache is enabled. I also noticed that you have Enfold Theme Options > Performance > Load jQuery in your footer activated and I believe the timestamp option is triggered with jQuery so I recommend disabling this option temporarily.
I also note that the theme settings are different for each language, so I changed your settings to apply timestamps and allow jQuery in your header for each language and I forced your theme settings to be saved by adding an empty space in your Quick CSS and saved. I then tried clearing your cache and then I changed all of the settings back to disable timestamps, but I allowed the jQuery in the header for now until you can check the size of the dynamic_avia directory.
In my test on my localhost changing the settings back and forth like this triggered the directory to be cleared.
Please check the size of the dynamic_avia directory and let us know if this helped.Please also check your child theme functions.php, there are a few rouges text strings “I didn’t know” that should not be there, but the theme editor is behaving as if there is a conflict, try cleaning the file via FTP, or disable your plugins until the theme editor behaves correctly. This is probably not related to your current issue, but you should look at it.
If this doesn’t help, please include ftp access in the private content area so we can check the dynamic_avia directory while investigating for feedback.
Best regards,
MikeHi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
MikeHi,
Perhaps it was the code I warned about above? Did you try removing it?
If you would like us to look, please include an admin login & FTP access in the Private Content area.Best regards,
MikeHi,
We are happy to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
MikeHi,
Sorry for the late reply, unfortunately, this is not possible. Each sub-menu is a child of a main menu item and it’s left edge is position zero for that tree of elements, but that position is different for each menu item. When you center the sub-menu it is within its tree, not the page, to place all of the sub-menus in the same location the calculations will need to be done on the screen size instead of the parent location.
I hope I have explained this well, from your video it looks like you are using a laptop sized screen, on my desktop the sub-menus move much more, so perhaps they looked like they are very close to being superimposed.
I tried to write a script to move the sub-menus based on the screen size in order to find a fixed location, and while it works for the most part, its limitations are that after the sub-menus are moved its hard to move your mouse from the main menu into the sub-menu without losing focus on a desktop, and it’s based on screen size.I’ll post the script here, perhaps it can be used for something else.
function bad_custom_script(){ ?> <script> (function($){ $(document).ready(function() { jQuery.fn.center = function () { this.css("position","fixed"); this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 3) + $(window).scrollTop()) + "px"); this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 6) + $(window).scrollLeft()) + "px"); return this; } $('.menu-item-top-level.dropdown_ul_available ul.sub-menu').center(); }); })(jQuery); </script> <?php } add_action('wp_footer', 'bad_custom_script');I tried to think of some other ways such as if the sub-menus were actually a moral, or lightbox, but I think you would have the same issues with the mouse unless it was triggered by click instead of hover.
Sorry, but I believe the best solution is @Yigit’s css.@media only screen and (max-width: 1080px) { .main_menu .menu li#menu-item-2120 ul { left: -520px; } .main_menu .menu li#menu-item-2127 ul { transform: translate(13%); } .main_menu .menu li#menu-item-2098 ul { transform: translate(-21%); }}Best regards,
MikeHi,
Sorry for the late reply and thanks for the login, I took a look at your page and added this css in your WordPress > Customize > Additional CSS field:@media only screen and (min-width: 1440px) { #top.page-id-2524 #main > div.container_wrap_first.container_wrap > div { width: 73% !important; float: left !important; max-width: 1350px !important; } #top.page-id-2524 #main > div.container_wrap_first.container_wrap { width: 90% !important; margin: auto !important; } #top.page-id-2524 #wrap_all #main .sidebar { width: 352px !important; } #top.page-id-2524 #main > div.container_wrap_first.container_wrap > div > main { width: 100% !important; } }I also found that your inner page height didn’t match your content height so I added this script to your functions.php
function custom_script(){ ?> <script> (function($){ $(window).load(function(){ var s1 = $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap > div ').height(); var s2 = $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap').height(); if (s1 > s2) $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap').css('height', s1 + "px"); else $('#top.page-id-2524 #main > div.container_wrap_first.container_wrap > div').css('height', s2 + "px"); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_script');please clear your browser cache and check.
Best regards,
MikeHi,
Thanks, I adjusted the script to add that and make the leading number change based on the pagination 😅
Please clear your browser cache and check.This is the updated script:
function custom_pagination(){ ?> <script> (function($){ $(document).ready(function(){ var url = document.URL; var theURL = url.split("page")[0]; var countURL = url.split("/")[5]|| "1"; $new_pagination = '<nav class="pagination"><span class="pagination-meta">Page '+countURL+' sur 5</span><a href="'+theURL+'" class="p1">1</a> <a href="'+theURL+'page/2/" class="p2">2</a> <a href="'+theURL+'page/3/" class="p3">3</a> <a href="'+theURL+'page/4/" class="p4">4</a> <a href="'+theURL+'page/5/" class="p5">5</a> </nav>' if ($("body").is('.page-id-5480')){ $( "nav.pagination" ).replaceWith( $new_pagination ); } else {} $('#top:not(.paged-2):not(.paged-3):not(.paged-4):not(.paged-5) .pagination .p1').addClass('current'); $('#top.paged-2 .pagination .p2').addClass('current'); $('#top.paged-3 .pagination .p3').addClass('current'); $('#top.paged-4 .pagination .p4').addClass('current'); $('#top.paged-5 .pagination .p5').addClass('current'); }); })(jQuery);Best regards,
MikeHi,
Sorry for the late reply, please excuse me while I try to catch up on your thread, I believe I have found the correct page, linked in the Private Content area, I see that this:#top .sticky_placeholder { display: none; }is hiding the yellow line but I believe what you should use is this css to remove the white space above the yellow line on mobile.
@media only screen and (max-width: 987px) { #top.page-id-291 .sticky_placeholder { height: 0 !important; } }Please note that this is for the one page only, for now.
I also see that you have two sub-menus, one with a button menu, the other with a menu, so to have the first sub-menu sticky I enabled the “Sticky Submenu” option and now it is sticky at the top until you scroll, which the second sticky menu rolls over it and sticks to the top. This is the correct behavior, one sub-menu sticks to the top until the next one is scrolled to the top, please see this demo page for reference.
Please note that for testing this I disabled the “admin toolbar” in the user profile (kstm), because the toolbar covers some of the sticky sub-menu and your visitors do not see the admin toolbar.
Please see the animated gif in the Private Content area.
So I assume that this is still not quite the way you want it, please explain how you would like this to be.Best regards,
MikeHi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
MikeHi,
Glad it helps, on your other pages the pagination looks like this:

and on the page we are working on I see this:

Where do you see “1 of 5”, “2 of 5”, “3 of 5” ?
In the script above for the pagination links you can change the number “2” to “2 of 5”, for example, like this:function custom_pagination(){ ?> <script> (function($){ $(document).ready(function(){ var url = document.URL; var theURL = url.split("page")[0]; $new_pagination = '<nav class="pagination"><a href="'+theURL+'" class="p1">1 of 5</a><a href="'+theURL+'page/2/" class="p2">2 of 5</a><a href="'+theURL+'page/3/" class="p3">3 of 5</a><a href="'+theURL+'page/4/" class="p4">4 of 5</a><a href="'+theURL+'page/5/" class="p5">5 of 5</a></nav>' if ($("body").is('.page-id-5480')){ $( "nav.pagination" ).replaceWith( $new_pagination ); } else {} $('#top:not(.paged-2):not(.paged-3):not(.paged-4):not(.paged-5) .pagination .p1').addClass('current'); $('#top.paged-2 .pagination .p2').addClass('current'); $('#top.paged-3 .pagination .p3').addClass('current'); $('#top.paged-4 .pagination .p4').addClass('current'); $('#top.paged-5 .pagination .p5').addClass('current'); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_pagination');But this will change the size of your pagination, and not match the rest of your site.
Am I understanding correctly?Best regards,
MikeHi,
That looks like it is the cause, but you can only control the autoplay with the layerslider option, it doesn’t have an option to override. The layerslider adds the “autoplay” even if you remove it from the iframe code before you publish or after the page load with jQuery.
We seem to be at road block for this customization, I don’t believe this will work without re-writing the layerslider script, which is quite complicated.Best regards,
MikeHi,
Please include an admin login in the Private Content area so we can take a look, or export your slider and upload to DropBox so we can check.Best regards,
MikeHi,
You can add a line break with\Aand the css rulewhite-space: pre;like this:@media only screen and (max-width: 767px) { #top.single-calendar article.calendar.type-calendar:before { content: "When the calendar is viewed on a mobile device please view horizontally\A\A"; color: #777 !important; font-size: 1em; white-space: pre; } }Note I added two
\Abecause one didn’t seem to be enough of a break, as an alternative you could use margin or padding to add space below this.Best regards,
MikeHi,
As I understand your opening post, the reason you were having issues with the solution in the other thread, is because you want it to work on one page only and you want the pagination to display the highlighting for the current page, I adjusted the previous solution to achieve both of these.
Please clear your browser cache and check.
This is the new script:function custom_pagination(){ ?> <script> (function($){ $(document).ready(function(){ var url = document.URL; var theURL = url.split("page")[0]; $new_pagination = '<nav class="pagination"><a href="'+theURL+'" class="p1">1</a><a href="'+theURL+'page/2/" class="p2">2</a><a href="'+theURL+'page/3/" class="p3">3</a><a href="'+theURL+'page/4/" class="p4">4</a><a href="'+theURL+'page/5/" class="p5">5</a></nav>' if ($("body").is('.page-id-5480')){ $( "nav.pagination" ).replaceWith( $new_pagination ); } else {} $('#top:not(.paged-2):not(.paged-3):not(.paged-4):not(.paged-5) .pagination .p1').addClass('current'); $('#top.paged-2 .pagination .p2').addClass('current'); $('#top.paged-3 .pagination .p3').addClass('current'); $('#top.paged-4 .pagination .p4').addClass('current'); $('#top.paged-5 .pagination .p5').addClass('current'); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_pagination');Best regards,
MikeJuly 11, 2020 at 4:17 pm in reply to: Hide one specific category from product_meta on product pages #1229636Hi,
Glad we were able to help 🙂, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
MikeHi,
The masonry calculates the height of the entry in a script after the page load and sets absolute values for the grid and the “figcaption” is an inner container of the “figure” container. So even moving the “figcaption” container out of the “figure” container and then try to adjust the height of the entries doesn’t help because of the absolute values each entry has which to change would be a major re-write of the script.
But looking at your mockup I believe you could try using the “flexible masonry” styling option and then upload your images with a black section below your images for the text to show over. the “flexible masonry” styling option doesn’t crop the images.Best regards,
MikeHi,
Thank you for the feedback, so I didn’t get the “String translation” to work for this, but I did add a script to the end of your functions.php that changes the socket copyright on all English pages by looking forhtml[lang="en-GB"] span.copyrightand using the.replaceWithjQuery function. Please clear your browser cache and check.Best regards,
MikeHi,
When I use the HTML layer the video shows the YouTube iframe, please see the example link in the Private Content area.
This slider is using the default skin, no settings were changed.Best regards,
MikeHi,
I looked for the pastebin clip in your functions.php, I didn’t see it so I added it and since your “pages” are actually “archives” I changed the “IF” statement to this:if(is_archive(array( 99))) { $pages = 5; }because the term for the archive is “99”, but it still is not working well, I will have to research more unless @Ismael sees the error and can correct 🙂
PS, I also commented out the woocommerce pagination function because I understood from above that this was not the issue.
Best regards,
MikeJuly 10, 2020 at 2:04 pm in reply to: Hide one specific category from product_meta on product pages #1229423Hi,
Glad to hear this helps, shall we close this then?
I will take a look at your other thread.Best regards,
MikeHi,
Thanks for the login, I see that you have used the String translation for a portion of the copyright text, but when I check your French homepage the copyright is in French, yet on the English homepage the copyright is also in French, so you want this in English on the English page, correct?For #2 I do not get an error when I click your logo on your English homepage, I tested logged in and out. Try clearing your browser cache and check again.
Best regards,
MikeJuly 10, 2020 at 12:18 pm in reply to: Header is not sticky at bigger mobile screens / smaller tablets, transparency #1229399Hi,
Glad to hear it’s sorted out now, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
MikeJuly 10, 2020 at 12:15 pm in reply to: Add date to portfolio pages (Updated 2017 for Enfold 4) #1229397Hi,
The above script doesn’t look like it’s changing the date format, so to change the date format for your site go to WordPress > Settings > General > Date Format and adjust there.Best regards,
MikeHi,
Unfortunately, if you use the “video” layer in your slider the layerslider creates it’s own div to display the thumbnail that it grabs and placing a button over it, it is not using the YouTube iframe.

So your options are to use css to create a button you like, or use a custom image, or use the “HTML” layer to display the YouTube iframe code.The layerslider does have a “no skin” mode, go to the Slider Settings, choose the Appearance tab. The first parameter will be the Skin, choose “no skin”

but this will not change the video element for the reasons above, but it does remove other styles you may like to remove.While I was investigating I reverse-engineered some of the other skins css solutions for the video play button, you may find this helpful as a starting place for your custom css, if you choose that path.
.ls-playvideo { width: 50px; height: 50px; margin-left: -29px; margin-top: -29px; background: rgba(0, 0, 0, 0.7) none repeat scroll 0 0; border: 2px solid rgba(255, 255, 255, 0.7); -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; } .ls-playvideo:before { position: absolute; top: 16px; left: 20px; display: block; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent rgba(255, 255, 255, 0.8); -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; content: ""; } .ls-playvideo:hover:before{ border-color: transparent transparent transparent rgba(255, 255, 255, 1); } .ls-playvideo:hover { background: rgba(0,0,0,1); border: 2px solid rgba(255, 255, 255, 1); }Best regards,
MikeJuly 9, 2020 at 12:21 pm in reply to: Hide one specific category from product_meta on product pages #1229131Hi,
Glad to hear, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:#woocommerce_product_categories-6 .product-categories .cat-item.cat-item-361 { display: none !important; }After applying the css, please clear your browser cache and check.
Best regards,
MikeHi,
@Jason this code does change the title length, for 20 characters and “…” try adding this code to the end of your functions.php file in Appearance > Editor:function max_title_length( $title ) { $max = 20; if( strlen( $title ) > $max ) { return substr( $title, 0, $max ). " …"; } else { return $title; } } add_filter( 'the_title', 'max_title_length');If this is not working for you then try clearing your browser cache and any cache plugin, and any server cache and check.
Otherwise, I recommend opening a new thread so we can assist, and include your admin login in the Private Content area, but as this is not your thread your login info will not be private if posted here.Best regards,
Mike -
AuthorPosts

