Forum Replies Created
-
AuthorPosts
-
September 30, 2024 at 10:00 am in reply to: Sidebar Logo and Main Menu Sticky option not working anymore #1468091
Hello everybody
I was out of town, so I did not have the opportunity to try Guenni’s solutions. Between today and tomorrow I would like to compare my solution and Guenni’s and then draw conclusions. Give me please a couple of days before closing the thread.Hello Ismael
For now I’ve solved the issue by adding a scrollbar to the header to have the menu visible in every screen height.#header_main { overflow: auto !important; max-height: calc(100vh - 40px); /* the -40px works for me but it depends on the lenght of your header */ }
Of course it would be nicer to have a function to make it scrollable as in the Left Sidebar Menu without the sidebar but my knowledge of php and js is very poor
Best wishes
Manu- This reply was modified 1 month, 4 weeks ago by manurimini.
Hello Guenni
First of all, I would like to thank you for all the interventions you make on this forum that have helped me over the years to solve various issues.
When you use General Layout > Logo And Main Menu > Left Sidebar you have three choices in the tab Sticky Sidebar Menu (You can choose if you want a sticky sidebar that does not scroll with the content):
1 – Never Sticky
2 – Always Sticky
3 – Sticky if Sidebar is smaller then the screen size, scroll otherwise
You have this choices only if you use the Left Sidebar Menu
If you switch to Right Sidebar Menu the options tab Sticky Sidebar Menu is not available and as Ismael wrote with CSS unfortunately the feature “Sticky if Sidebar is smaller then the screen size scroll otherwise” when the right sidebar is enabled is impossible to set.
So, for now I’ve solved the issue by adding a scrollbar to the header to have the menu visible in every screen height.#header_main { overflow: auto !important; max-height: calc(100vh - 40px); /* the -40px works for me but it depends on the lenght of your header */ }
Of course it would be nicer to have a function to make it scrollable as in the Left Sidebar Menu without the sidebar but my knowledge of php and js is very poor
Best wishes
Manu- This reply was modified 1 month, 4 weeks ago by manurimini.
Hey Ismael
The code works partially, because it does not have the “scroll otherwise” feature.
Best wishes
ManuJune 30, 2024 at 2:49 pm in reply to: [Security Alert]: Polyfill.io Issue for Google Maps Platform users #1460626Hi
I’m trying to understand if there is a link to polyfill.io somewhere in the theme but couldn’t find it.
The only hint I could find is that the plugin OpenStreetMap may be affected.
https://www.wordfence.com/threat-intel/vulnerabilities/detail/various-plugins-various-version-use-of-polyfillio
Hope it helps.
Best Regards
Manu- This reply was modified 4 months, 3 weeks ago by manurimini.
June 29, 2024 at 1:06 pm in reply to: [Security Alert]: Polyfill.io Issue for Google Maps Platform users #1460051Hi
I also received the notification. It is a warning that clearly relates to the use of maps. We got the message, because we have a project on google cloud to integrate the google maps api.
I’ve found several posts related to the issue.
1 – Polyfill.io, a domain used by more than 110,000 websites to deliver javascript code, has been used for a supply chain attack, potentially leading to data theft and clickjacking attacks.
https://www.spiceworks.com/it-security/cyber-risk-management/news/polyfill-supply-chain-attack-infects-websites/
2 – It’s important to clarify that, while the utility of polyfills today is somewhat debatable, the problem is not in the library’s code itself. This is a deliberate malicious act by the new owners of one (but the most popular) 3rd-party CDN service that distributes the library.
Note also that WordPress bundles a local copy of the library (/wp-includes/js/dist/vendor/wp-polyfill.min.js). If these plugin and theme developers are following basic WordPress coding standards, they should be enqueuing the local copy instead of hotlinking to an external one.
Best Regards
ManuThank you Ismael
The website now seems to be scrolling quite smoothly.Best Regards
Manu- This reply was modified 4 months, 3 weeks ago by manurimini.
Hi Ismael,
This is the link to the website we are building: https://www.clinicagrafica.it/domus
We have also prepared login credentials for you. You’ll find the credentials in Private Content.
The issue (the lagging scrolling behavior) is particularly visible in Safari if you are using MacOs, while on Microsoft the issue is on all browsers.
Best Regards
ManuHi Ismael,
After many tests on different installations, I have come to the conclusion that the lagging scrolling behavior is given by the function:
https://kriesi.at/documentation/enfold/fullwidth-sub-menu/#toggle-id-4/** * Full Width Submenu active */ function activateMenuItem(){ ?> <script> jQuery(document).scroll(function() { var sections = jQuery('.avia-section'), menu = jQuery('.av-submenu-container'), nav_height = menu.outerHeight(); jQuery(window).on('scroll', function() { var cur_pos = jQuery(this).scrollTop(); sections.each(function() { var top = jQuery(this).offset().top - 300, bottom = top + jQuery(this).outerHeight(); if (cur_pos >= top && cur_pos <= bottom) { menu.find('li').removeClass('active-menu-item'); menu.find('a[href="#' + jQuery(this).attr('id') + '"]').parent('li').addClass('active-menu-item'); } }); }); }); </script> <?php } add_action('wp_head', 'activateMenuItem');
Is there another way to set active on the ALB Fullwidth Sub Menu?
Thank you
Best Regards
ManuSorry Ismael,
I had to delete this comment because I need further investigations
Best Regards
Manu- This reply was modified 5 months ago by manurimini.
- This reply was modified 5 months ago by manurimini.
Hi
Sorry Guenny 007 but I don’t understand how this solution, although very interesting, can help me. It may also be that I misunderstood how to use the files you kindly make available, but the links on the example page point to other pages, while I am trying to solve scrolling within the same page so that the anchorpoint content does not go under the Fullwidth Sub Menu of the ALB of tablets and mobiles.Trying to resolve this issue, I had problems with pages scrolling in a jerky motion, but I figured out what my error was.
Mike had given me a function to solve the problem involving two screen widths < 989 and > 990.
Mike’s code works very well and gives no smooth scrolling problems.
I did, however, need a third screen width (> 768 < 989) because the Fullwidth Sub Menu of the ALB on mobile phones would go on two rows.
So I tried adding to the script:
else if ((width > 767 && width < 989)) {
At this point the scrolling of the site started to work horribly on all pages. It is obvious that I messed up something when I added the third screen width.
This is Mike’s code that works:function custom_change_offset() { ?> <script> (function($) { var width = $(window).width(); if ((width < 989)) { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top - 140 //offset }, 1000); return false; } } }); //Executed on page load with URL containing an anchor tag. if($(location.href.split("#")[1])) { var target = $('#'+location.href.split("#")[1]); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top - 140 //offset }, 1000); return false; } } } else if ((width > 990)) { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top - 150 //offset }, 1000); return false; } } }); //Executed on page load with URL containing an anchor tag. if($(location.href.split("#")[1])) { var targett = $('#'+location.href.split("#")[1]); if (targett.length) { $('html,body').animate({ scrollTop: targett.offset().top - 150 //offset }, 1000); return false; } } } }(jQuery)); </script> <?php } add_action( 'wp_footer', 'custom_change_offset', 99 );
And this is the code revised by me that makes the whole site scroll badly even though it puts the anchor points in the right place:
function custom_change_offset() { ?> <script> (function($) { var width = $(window).width(); if (width < 767)) { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top - 220 //offset }, 1000); return false; } } }); //Executed on page load with URL containing an anchor tag. if($(location.href.split("#")[1])) { var target = $('#'+location.href.split("#")[1]); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top - 220 //offset }, 1000); return false; } } } else if ((width > 768 && width < 989)) { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top - 170 //offset }, 1000); return false; } } }); //Executed on page load with URL containing an anchor tag. if($(location.href.split("#")[1])) { var targett = $('#'+location.href.split("#")[1]); if (targett.length) { $('html,body').animate({ scrollTop: targett.offset().top - 170//offset }, 1000); return false; } } } else if ((width > 990)) { $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top - 180 //offset }, 1000); return false; } } }); //Executed on page load with URL containing an anchor tag. if($(location.href.split("#")[1])) { var targett = $('#'+location.href.split("#")[1]); if (targett.length) { $('html,body').animate({ scrollTop: targett.offset().top - 180//offset }, 1000); return false; } } } }(jQuery)); </script> <?php } add_action( 'wp_footer', 'custom_change_offset', 99 );
If anyone can help me, I’d like to figure out where I went wrong and be able to use three different offsets for the three different screen widths.
- This reply was modified 5 months ago by manurimini.
Hi,
As I previously wrote the code works fine so we can close the topic.If I may suggest I would love to have the possibility to use a sticky menu on tablets and mobiles and be able to select it directly in the HEADER settings.
And have calculated by the theme all the top margins of the containers perfectly.Best Regards
ManuThank you Ismael
I only changed the code a little bit
if ((width > 768 && width < 990)) {
Now it works like a charme!
Best Regards
Manu- This reply was modified 5 months, 4 weeks ago by manurimini.
Hello Mike
Sorry for the late reply. The code works.
Thanks!September 22, 2021 at 12:07 pm in reply to: Improve Tab Section UX – Make it Sticky or Show Tabs Above and Below Content #1321888Hello
The code works, but if you have long content the new tab doesn’t load on the top so that you have to scroll to see the tab from its beginning.
Is there a way to make the new tab enter on top so that you can read the content from the beginning without scrolling to the top?
Best Regards
Manu- This reply was modified 3 years, 2 months ago by manurimini.
Hello Ismael
I think this is a little bit too difficult for me. Is there a way to solve it with a function to put in functions.php that says something like: if the category name is CATX rename it with CATY?
Thank you
Best Regards
ManuJuly 1, 2021 at 9:07 am in reply to: Page scrolls to Google Maps automatically when Text-marker is shown #1308256Hello Joana
ALB = Advanced Layout Builder or Advanced Layout Editor. You will find this acronym often in the Enfold Forum.Back to the 1st option of the Google Maps issue, if you’re using the Advanced Layout you have to edit the Google Map Element inside the page.
In the Google Map Element in the same window where you set the Location (Street address, Postcode, City, etc) if you scroll down you’ll find Marker And Tooltip. Uncheck Display Tooltip by default.If you don’t use ALB but Shortcodes look in your shortcode for tooltip_display=’aviaTBaviaTBtooltip_display’ and erase it.
https://kriesi.at/documentation/enfold/google-map/
Best Reagrds
Manu- This reply was modified 3 years, 4 months ago by manurimini.
June 30, 2021 at 8:54 am in reply to: Page scrolls to Google Maps automatically when Text-marker is shown #1308050Hi Joagin,
There are two temporary solutions as you can read above.1 – You disable the Tooltip in ALB (Google Map > Google Map Location > Display Tooltip by default = unchecked). In this case you will see the Tooltip by cliccking on the ping on the map.
2 – Add the following code in your Quick CSS and let Display Tooltip by default checked. The page will load correctely, but you will not be able to close the Toolpit once set, because the X to close the window will not be displayed.
Go to Theme Options > General Styling > Quick CSS and add the following code:.gm-ui-hover-effect { display: none !important; }
I hope this explanation will help
Best Regards
ManuThank you Mike, it works perfectly! Do you think this code will be added in the next release?
For anyone who will use this code:
don’t forget to add.grid-content { cursor: pointer; }
in your custom CSS
Great job Mike
Best Regards
Manu- This reply was modified 3 years, 4 months ago by manurimini.
Hello Mike
Unfortunately the Masonry Element doesn’t have the feature for the Grid Settings “No Scaling (Original Width X Original Height)”. So, for the project I’m developing, I’m forced to use the Portfolio Grid.
In the Masonry Element the “av-masonry-entry-content” is inside the “av-inner-masonry-content-pos-content” that contains the image, which is actually the clickable element. In the Portfolio the Excerpt is in the “grid-content” which is posed under the image container “grid-image avia-hover-fx”. I think that’s why in the Portfolio Grid you can manage image sizes much better.
But since if you insert “Show Only Title” in the Portfolio Grid the “grid-content” is clickable, there should be a way to make it clickable also when you choose “Only Excerpt”. As I mentioned before Yigit tried many years ago to solve the problem but the function is not working fine anymore LINK. Maybe we can ask him if he has a solution.
Best Regards
Manu- This reply was modified 3 years, 4 months ago by manurimini.
Hello Mike
I have tried your solution on different installations by using “Overwrite Portfolio Link setting” but it doen’t work if the Portfolio Grid is set on “Only Excerpt”.
In Private Content the credentials to access to a test installation.
In any case it would be usefull a function to automatize the process without adding in every portfolio page the custom link.
Best Regards
ManuHello Mike
In your exemple you have set the Portfolio Grid on “Title and Excerpt”. In this case it works as desired. But if you set “Only Excerpt” it doesn’t work, also if you use Define Custom Link.
The only way I could find to make it work is to set an href in the Excerpt (eg<a href="https://mywebsite/portfolio/title/">Excerpt</a>
) and the code I’ve mentioned above in functions.php. In this case it works but is pretty annoying to write the href in every Excerpt.Best Regards
Manu- This reply was modified 3 years, 5 months ago by manurimini.
June 15, 2021 at 9:20 am in reply to: Page scrolls to Google Maps automatically when Text-marker is shown #1305741Hi Enfold staff
I think the topic should remain open until a real solution is found. I would like to use the tooltip as I was used to.
Best Regards
ManuJune 10, 2021 at 9:11 am in reply to: Page scrolls to Google Maps automatically when Text-marker is shown #1305023Hello Yigit
I think I could have find something interesting. The problem is given by the class .gm-ui-hover-effect (basically the X to close the window)
If you set:.gm-ui-hover-effect { display: none !important; }
then the page loads correctely. Of course you cannot close the Toolpit once set.
For now I don’t know why. Hope this helps
Best Regards
ManuIf you don’t check Display Tooltip by default it works fine, otherwise it scrolls to the bottom. I didn’t found yet a solution to have the Tooltip displayed without the scrolling to the bottom of the page.
whdsolutions have you tried with Display Tooltip by default checked? If you don’t check Display Tooltip by default it works fine, otherwise it scrolls to the bottom. I have tried it in different installation with different WordPress and Enfold versions.
See this other thread Page scrolls to Google Maps automatically when Text-marker is shown
Best Regards
Manu- This reply was modified 3 years, 5 months ago by manurimini.
June 7, 2021 at 6:48 pm in reply to: Page scrolls to Google Maps automatically when Text-marker is shown #1304467Hello
I have noticed the same issue. If Display Tooltip by default is checked then the page scrolls down instantly upon loading the page.
I don’t think it’s related to the Enfold version. I had a client website running Enfold 4.5.2 and some days ago this strange behavior started. I have done some tests and no matter how new your theme or WordPress is the issue persists. At this point I think it’s something related with some parameters of Google but I really don’t know what the cause can be.
Best Regards
Manu- This reply was modified 3 years, 5 months ago by manurimini.
May 5, 2021 at 1:12 pm in reply to: Sidebar Logo and Main Menu Sticky option not working anymore #1298538Hi,
Thank you Ismael. It works perfectly. Perhaps you should provide a link to download the file for other users with the same issue.
Best Regards
ManuMay 4, 2021 at 12:19 pm in reply to: Sidebar Logo and Main Menu Sticky option not working anymore #1298253Hello Ismael
I have to correct my previous thread. The option Always Sticky works.
But the option “Sticky if Sidebar is smaller than the screen height, scroll otherwise” doesn’t. I have tested it on different installations.
You can easily check it on your own installation, but I still leave you access to mine in the private area.Thank you for your help
Manu- This reply was modified 3 years, 6 months ago by manurimini.
Hi
Great. Thank you so much. How could I miss the dot too?!?
I’ve used several themes over the years, but none have a support like Enfold. I hope this thread will be of help to everyone who uses the modal popup (e.g. ginnywills). Before asking for assistance, I always look for a solution in the Forum and I often find it. Thanks again.Will the issue be fixed in the next release?
Best Regards
Manu- This reply was modified 3 years, 7 months ago by manurimini.
-
AuthorPosts