Hamburger Menu not working on reduced browser size

I'm currently working on my site but having a small issue with the hamburger menu. It works fine on an actual mobile device, but when I reduce the browser size so that the hamburger appears, nothing happens when I click on it. It does not show my menu. The only thing that happens is a '#' symbol appearing at the end of my URL when I click on it. Any idea on whats going on?
Category: Web

WebP issue on new 5.8 version

the new WordPress 5.8 version includes WebP Image support which is great. But some browsers (safari older than version 14) do not support them. How can it be done that in this case it will fall back to the .jpg file? I thought wordpress would manage this but it does not. Thanks.
Category: Web

Why is my page displaying small A+Japanese character icons?

I have a Wordpress page that, upon load, displays a couple small icons in the left margin. When I left-click on them, they disappear. When I right-click, they appear to be a local Mozilla image under a moz-extension://<hash>/icons/512.png Does anyone know what these are and how to make them go away? The icons do not appear in Chrome or Edge. I am a Wordpress novice, so please bear with me.
Category: Web

Internet explorer not finding right content from multisite

Okay, so this is at weird one. I only encounter this issue in IE and no other browser. I have a wordpress multisite installation where I have content on: example.com and example.com/sub-installation So there is a front page when a user accesses: example.com/sub-installation The front page does show up when you access it. However, the content of that page is supposed to change if the user is logged in. SOMETIMES that content won't change when the user is logged in. …
Category: Web

How to fix samesite attribute in wordpress for chrome errors?

I have several wordpress sites that run on a rhel7 box that I admin. All of the sites use a custom SSO plugin that I wrote. Today I was told that other sites were having issues accessing one of our sites. So site x.com has our site (y.com) iframed on one of its pages and gets stuck in a loop and gets the following browser error below. I did set php (7.3) session variable for samesite to Secure and I …
Category: Web

Jquery not working on mobile browser

I have a following jquery code that runs fine on desktop but doesn't run on mobile browser on my wordpress website. It attaches a parameter on ajax based search box but not doing on mobile browsers. Any idea why? <script> jQuery(document).ready(function($){ $("input.orig").mouseout(function() { var stt = $(this).val(); setTimeout(function() { $("a.asp_res_url").each(function() { var $this = $(this); var _href = $this.attr("href"); var _href2 = $this.attr("href").split('?')[0]; $this.attr("href", _href2 + '?s='+stt); }); }, 0); }); }); </script>
Category: Web

admin-ajax return error 400 for Chrome/Edge but not Firefox

I have a bug with an Ajax request but it works on Firefox. You can test it clicking here For Edge/Chrome I got a 400 error. In Edge I got this error : HTTP400: INCORRECT REQUEST - the request could not be processed by the server due to invalid syntax. What could be the problem in my request ? Request : https://www.passerellepouremploi.com/wp-admin/admin-ajax.php?action=getH4ACustomPostTypeByAjax&data%5Bh4a-list-post-status%5D=false&data%5Bh4a-list-view-mode%5D=card&data%5Bh4a-list-post-type%5D=formation&data%5Bh4a-list-spec-cat%5D=false&data%5Bh4a-list-cat%5D=false&data%5Bh4a-list-order%5D=false&data%5Bh4a-list-orderby%5D=false&data%5Bh4a-list-meta-key%5D=false&data%5Bh4a-posts-per-page%5D=false&data%5Bh4a-list-pagination%5D=false&is_count=true Why it works for Firefox but not for others browsers ?
Category: Web

Browser back button does not work on firefox and safari

I created an online shop using WordPress, Woocommerce and one of the mikado themes. The problem is that when I go to a subpage and click the back button in my browser the url changes to the previous one but the page is empty. This happens only in Mozilla and Safari. Chrome, Opera and Edge work correctly. Anyone have any idea what could be the problem, and how to deal with it? *All plugins are updated to the latest version
Category: Web

What are WordPress admin supported browsers?

I am developing a plugin which exposes custom client components, html/css in the admin area. I want to test the cross-browsing compatibility of these components sticking to the actual browsers supported by WordPress. Is there an official list of browsers supported by WordPress and by which versions?
Category: Web

How to save history in the client's browser without login?

I know that we can use some snippets or plugins to save the client history but this work for the login clients as I know. My question is how to do the same thing but for unlogin users. Let's say I am a user without an account and I have viewed some posts in the website. So the next time I want to visit this site I want to see my latest posts that I have seen from the last …
Category: Web

External content won't load in iframe in Safari

I'm trying to load external content into an iframe, & it is working in Chrome & Firefox, but it won't load in Safari. In Safari I get the error message: Refused to display 'my_content' in a frame because it set 'X-Frame-Options' to 'sameorigin' I think the issue may be that my WordPress install is in a subdirectory: WordPress Address (URL): https://example.com/wp Site Address (URL): https://example.com The header for my external content includes the following: X-Frame-Options: sameorigin Content-Security-Policy: frame-ancestors 'self' https://example.com …
Category: Web

My new WordPress blog keeps refreshing in Chrome browser

My new WordPress [blog]: http://wuyajun.info/ keeps refreshing in Chrome browser, gets loading error in Firefox, but works normal in IE. Plugins installed that may cause the problem: Facebook AWD All in One. Hope someone can help me on this, thank you. Nathan Nov 15, 2011 update Just to clarify the refreshing problem was not due to PHP cache, for my situation. The function "Activate FB Connect" of WP plugin "Facebook AWD All in One" caused this problem. After I deactivates …
Category: Web

Edge browser sets zoom level on website, when first visiting the site

We've just launched a website based on the Total Theme: https://themeforest.net/item/total-responsive-multipurpose-wordpress-theme/6339019 The site is one among many websites we've build using this theme, but the only one that is acting up in the Edge browser. Go to : Cricket.dk and have a look. (in Edge). For some, the issue is that the zoom is above 100% eg. 195% - the website looks fine though, since it does what you'd expect, fill out the entire browserwindow. For others - the zoom …
Category: Web

Browser extension to allow users to submit posts front end

Can anyone think of a good starting point of how I could create a simple browser extension to allow submitting of posts to my wordpress website. At the moment, the user can login and via the front end submit posts to their profile. What they are submitting is actually their favourite websites. So.. I want to try and create a browser extension that enables this whilst visiting other websites, like a super slick bookmarking tool. Very vague question I know, …
Category: Web

Fixing Access-Control-Allow-Origin (CORS origin) for multiple subdomains

Following from my previous question Is it safe to fix Access-Control-Allow-Origin (CORS origin) errors with a php header directive? The only solution that worked for me was: header("Access-Control-Allow-Origin: http://mozilla.com"); However, I have 4 subdomains that I need to enable them to access the data on the main domain. I tried to repeat the command, like this: header("Access-Control-Allow-Origin: http://site1.com"); header("Access-Control-Allow-Origin: http://site2.com"); header("Access-Control-Allow-Origin: http://site3.com"); but it did not work. I tried the solution posted by @yesthatguy in this response to this question: …
Category: Web

WP user agent returns random variables

I am using a PHP function in order to return the user browser, using the WP global variables. It used to work perfectly, but recently it started doing random things on Safari. I use chrome and everything is fine at home. My colleague uses Safari and depending on the test, he has different results. On sidebar.php : <div class="sidebar s2 <?php echo 's2_'.detecter_user_agent(); ?>"> In functions.php : function detecter_user_agent() { $cl = ''; global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, …
Category: Web

Conditional Redirect

I'm looking to do a redirect based on browser, but only for a specific page (or 2). I'd like to send the user to an alternative page if the browser is IE7 or less. The alt page will have completely different setup and everything to work for their old crap. I can't find a plugin. I'm looking at doing a php inject plugin to make this page specific. Any advice?
Category: Web

What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript?

I'm new in wordpress theme development, I want ask some question here, I want to make a parallax effect for my theme header like this: TestParallax.com this is made by using some JS code, I want to know what is the best way for WP Theme ?? using pure CSS or using JS ?? what is the most compatible for web browser ?? please help me guys ..
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.