Forum Replies Created
-
AuthorPosts
-
July 13, 2020 at 5:39 am in reply to: Shoutbox – Disable 18 Additional Images from being generated #1229832
Hi,
Please try this css:#custom_html-3 #aswift_3 { left: -60px !important; }Feel free to adjust to suit.
After applying the css, please clear your browser cache and check.Best regards,
MikeHey freeethinka,
Sorry for the late reply, and thanks for the link. The alt title attributes are plain text and can not display HTML tags such as<strong>, but the problem with it being plain text is that when trying to adjust it you can’t remove just the HTML tags or a single word.
But with this script the title is hidden on hover so the user doesn’t see it, and it is restored on mouse-out so the Googlebot will see it.
Try adding this code to the end of your functions.php file in Appearance > Editor:function custom_script(){ ?> <script> (function($){ $('a.av-masonry-entry').hover(function(e){ $(this).attr('data-title', $(this).attr('title')); $(this).removeAttr('title'); }, function(e){ $(this).attr('title', $(this).attr('data-title')); }); $('.av-masonry-image-container').hover(function(e){ $(this).attr('data-title', $(this).attr('title')); $(this).removeAttr('title'); }, function(e){ $(this).attr('title', $(this).attr('data-title')); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_script');Then clear your browser cache and check.
Best regards,
MikeJuly 13, 2020 at 4:39 am in reply to: Shoutbox – Disable 18 Additional Images from being generated #1229822Hi,
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:.sidebar1 > #custom_html-3 { background: #F8F8F8 !important; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0) !important; box-shadow: 0 1px 1px rgba(0, 0, 0, 0) !important; }Best regards,
MikeJuly 13, 2020 at 2:00 am in reply to: Shoutbox – Disable 18 Additional Images from being generated #1229817Hi,
Glad to hear this helped, for your next issue, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:.sidebar1 > #custom_html-4 { padding: 0 !important; } .sidebar1 > #custom_html-4 > .custom-html-widget { height: 250px !important; }After applying the css, please clear your browser cache and check.
Best regards,
MikeHi,
Glad to hear this helped, for the account area, the dropdown does toggle and link for my Android phone, it has a screen resolution of 360×640 but I notice that the link in the button is narrow, so this css will make it bigger and perhaps you will be able to toggle the button with your iPhone.
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:#menu-item-350 > a { height: 40px; } #menu-item-350 { padding-bottom: 0px !important; }After applying the css, please clear your browser cache and check.
I took another look at your post above before submitting my reply and perhaps you meant that the menu is not closing for you, but opening fine. In that case,
Try adding this code to the end of your functions.php file in Appearance > Editor:function custom_menu_toggle(){ ?> <script> (function($){ var width = $(window).width() $(document).ready(function() { if ((width <= 768)) { $("#menu-item-350").click(function() { $("ul.av-visible-mobile-sublist").toggle(); }); } else {} }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_menu_toggle');Best regards,
MikeHey mfuji,
Sorry for the late reply and thanks for the link. I ran a Mobile-Friendly Test and see that the image of the page in the test is without css. When you click “view details” it shows that 26 css files were not loaded with a status of “Other error”.
I researched this and found other reports of this with other themes and the suggestion is to add this to your robots.txtUser-Agent: Googlebot Allow: .js Allow: .css User-Agent: Googlebot Allow: /wp-content/uploads/dynamic_avia/*.js Allow: /wp-content/uploads/dynamic_avia/*.cssI see that your robots.txt already has some statements and that should be enough, but please give this a try.
Best regards,
MikeJuly 12, 2020 at 9:30 pm in reply to: The Events Calendar single event page customization guide #1229796Hey 40eleven,
Sorry for the late reply, as I understand you would like your “Tickets” registration section in the event meta sidebar.
The following script will do this, but the sidebar is too narrow for the element, so one way to increase the sidebar width is to increase the page max-width, this css will do this only on single event pages.
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:@media only screen and (min-width: 990px) { .responsive #top.tribe_events-template-default.single-tribe_events .container { max-width: 95% !important; } }Then add this code to the end of your functions.php file in Appearance > Editor:
function custom_event_page_script(){ ?> <script> (function($){ $(document).ready(function(){ $('.tribe_events.type-tribe_events').each(function() { $(this).find('#tribe-tickets').insertAfter( $(this).find('.tribe-events-event-meta.secondary') ); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_event_page_script');The ticket element may look low in the sidebar but that is because the map element is taking space, but it seems unused, if you are not going to use the maps I can move the ticket element up, or even put it at the top of your sidebar.
After adding these please clear your browser cache and check.Best regards,
MikeHi,
Sorry for the late reply and thanks for the login, I tested your menu items for your portfolio tabs and they are working correctly, I can click on any tab link and scroll down to it and open that tab. Since your menu is a burger style it stays open so you can click each link and watch the tab open correctly.
I tested with Chrome, Firefox, & Edge on Windows 10, and Safari & Chrome on a Mac.
Are you still experiencing this?
I do note that your page is locked up until your video downloads, do you have gzip compression enabled? Also, I see your file is an mp4, try converting it to WEBM and OGG and upload those files via FTP (not the media library) to the same folder as your mp4, web browsers typically check for these extensions before mp4 and it often helps speed up the video load.Best regards,
MikeHi,
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,
Mike -
AuthorPosts

