Wordpress Weird autoscroll
Hello dear people of stackoverflow. I have a very though one (At least for me).
There seems to be a problem in this website, if you enter it you might see that it autoscrolls to the bottom of the site once you go past the middle of the website. Here's the site:
I've been going through this problem for about two months and no luck yet, certainly I'm a newbie but I even contacted the people at Qore (The theme developers) and they couldn't give me an answer either and, luckily for them, my support was over. Can someone tell me what the hell is wrong with this site? Any guess? I've re-done the entire homepage, been removing full sections updated the theme, updated wordpress, enabled and disabled plugins... nothing works. Any ideas?
Thanks a lot.
See also questions close to this topic
-
PHP OOP mt_rand() function do it twice by calling method
I write a class for doing FTP stuff When i calling a method from my class to make an directory on FTP, it creates the folder two times if i'm using the mt_rand() function. I use mt_rand() to create unique id/name for my folder to prevent duplicates.
I'm trying also uniqid() function but have the same result. What i'm doing wrong?
Here is my class:
class Ftp { private $host; private $username; private $password; private $port; private $mode; private $stream; private $connected; private $Createdir; private $subdir; private $files; // make FTP connection function __construct( $host, $username, $password, $port = 21, $mode){ $this->host = $host; $this->username = $username; $this->password = $password; $this->port = $port; $this->mode = $mode; } // FTP connect protected function connect(){ return ftp_connect($this->host, $port); } // FTP login and create connection public function open(){ $connect = $this->connect(); if ( $connect == false ){ // give a error if connection failed die( "Kan niet verbinden met " . $this->host ); } if( ftp_login($connect, $this->username, $this->password) ){ $this->stream = $connect; $this->connected = true; } } // create folder public function create_folder( $temp_dir ){ $this->Createdir = $temp_dir; /* if( ftp_mkdir( $this->stream, $this->Createdir ) ){ return true; } */ /* if( $this->folder_exists() === false ) { } */ //return false; } // create subfolder public function create_subfolder( $dir ){ $this->subdir = $dir; if ( ftp_chdir( $this->stream, $this->Createdir ) ){ if ( ftp_mkdir( $this->stream, $this->subdir ) ){ return $this->subdir; } } } // check if folder exists protected function folder_exists(){ if ( ftp_chdir( $this->stream, $this->Createdir ) ){ return true; } return false; } // upload files public function upload( $files ){ $this->files = $files; if ( ftp_put( $this->stream, $this->Createdir, $this->files) ){ return true; } } // close FTP connection public function __destruct(){ if( $this->connected ){ ftp_close($this->stream); } } }
$unique_id = date("Y-m-d",time()) ."_". $_POST["prod_id"] ."_".uniqid(); // creating unique dir into temp_files $ftp = new Ftp( get_option("ftp_host"), get_option("ftp_user"), get_option("ftp_pass") , 21, get_option("ftp_mode")); $ftp->open(); $ftp->create_folder('temp_files'); $ftp->create_subfolder($unique_id);
-
how to bulk add categories and subcategories structure
I'd like to bulk create categories and subcategories in my wordpress site.
I have this file with categories and subcategories levels. How to add this categories hierarchy with wp-cli in bash ? Something like this, but for the whole structure
idlevel1=$(wp term create category name-of-level-1 --porcelain) wp term create category name-level-2_1 --parent=$idlevel1 wp term create category name-level-2_2 --parent=$idlevel1 wp term create category name-level-2_3 --parent=$idlevel1 wp term create category name-level-2_3 --parent=$idlevel1
Thanks
Name BG color category level ALSACE #ffff00 1 GROUPEMENT DU BAS-RHIN #d8d8d8 2 BERNARDSWILLER #ffffff 3 BISCHOFFSHEIM #ffffff 3 EBERSHEIM #ffffff 3 HOCHFELDEN #ffffff 3 MEISTRATZHEIM #ffffff 3 NIEDERNAI #ffffff 3 OBERNAI #ffffff 3 OTTROTT #ffffff 3 SCHIRMECK #ffffff 3 Vallée de la Bruche #ffffff 3 STRASBOURG #ffffff 3 AQUITAINE #ffff00 1 DAX #ffffff 3 SOUSTONS #ffffff 3 BRETAGNE #ffff00 1 GROUPEMENT DU FINISTERE #d8d8d8 2 GROUPEMENT LOIRE-ATLANTIQUE #d8d8d8 2 GROUPEMENT DU MORBIHAN #d8d8d8 2 SECTEUR DE BROCELIANDE #d8d8d8 2 CARO #ffffff 3 RUFFIAC #ffffff 3 St MARCEL #ffffff 3 SECTEUR DU PAYS GALLO #d8d8d8 2 BILLIO #ffffff 3 BULEON #ffffff 3 COLPO #ffffff 3 ELVEN #ffffff 3 GUEHENNO #ffffff 3 LOCMARIA GRAND CHAMP #ffffff 3 LOQUELTAS #ffffff 3 MOHON #ffffff 3 MONTERBLANC #ffffff 3 CONTACT COURRIER TELEPHONE - MONTERBLANC #ffffff 3 PLAUDREN #ffffff 3 PLUMELEC #ffffff 3 SAINT-ALLOUESTRE #ffffff 3 SAINT-JEAN BREVELAY #ffffff 3 SECTEUR DE LANVAUX #d8d8d8 2 BRANDIVY #ffffff 3 CAMORS #ffffff 3 double du courrier de M. LE TUTOUR #ffffff 3 GRAND CHAMP #ffffff 3 PLUMERGAT #ffffff 3 PLUVIGNER #ffffff 3 PLUMELIN #ffffff 3 QUISTINIC #ffffff 3 SECTEUR DU PAYS D'AURAY #d8d8d8 2 PLUNERET #ffffff 3 AURAY #ffffff 3
-
How to access array list in Json by php?
I am currently working with Accessing json using php in wordpress. I have successfully decoded the json but when i try to access the values it doesn't fetch . I am trying to access the Cluster_ID and Image values. Here's my api link http://ec2-13-127-149-66.ap-south-1.compute.amazonaws.com:5000/api/news
I have tried the following code:
<?php /** *Plugin Name: plugin two **/ function myjson8(){ $request = wp_remote_get( 'http://ec2-13-127-149-66.ap-south-1.compute.amazonaws.com:5000/api/news' ); if( is_wp_error( $request ) ) { return false; // Bail early } $body = wp_remote_retrieve_body( $request ); $data = json_decode( $body ); if( ! empty( $data) ) { foreach( $data as $product ) { echo $product->Cluster_ID; foreach($data->data as $news){ echo $news->Image; } } } }
-
how to allow body scrolling after scrollable div reach end
<div class="scrollable-div" style="width:1000px;height:500px;overflow:auto;"> <div style="height:2000px;background:beige;"> scrollable </div> </div> <div style="width:1000px;height:10000px;background:#efefef;"> rest of the page </div>
when we scroll fast(and long) with mouse wheel or touch, page not scrolling after scrollable div reach end...I think it is default by the all browsers. When I move mouse it is kind of focusing to body and keep scrolling body. Is it possible to change this behavior? For example stackoverflow scrollable divs acting like that. When scrollable div reach end if you don't move your mouse it is not switching or keep scrolling body.
Thanks.
-
Flutter web scrolling lags
I build a Website(quyre.de) on flutter Web and it lags while scrolling and if you use a mouse the scroll-steps are very small. If you want to scroll it works fluid for a fraction of a second and then it start a stop and go until it ends scrolling. I heard of performance issues of flutter web could that relate to them, but my Website isn't that complex.
Here is the Code of my Main Page(Because. i don't know where the problem evolves from, the mobile page is nearly the same):
https://drive.google.com/drive/folders/1HdGEhdKndiQ_Ws_Oy3b2eO5J1bCdel4x?usp=sharing
Thanks for any answers
-
scroll inside the tooltip scrolls the entire page in react @material-ui/core/Tooltip
I have a tooltip created using
@material-ui/core/Tooltip
https://codesandbox.io/s/kgccc
which work fine as shown belowsince the content is more, have provide scroll
.tooltip-popup-details{ height: 300px; overflow: auto; }
when tried to scroll the tool tip by clicking inside the content entire page scroll tried alot to fix it but could not make it basically drag or scroll inside tool tip is not working please help
-
NFTables: redirect HTTP on bridge
I'm trying to redirect HTTP traffic in a bridge environment under Debian.
This is my network
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:f1:c5:31 brd ff:ff:ff:ff:ff:ff inet 10.11.12.42/24 brd 10.11.12.255 scope global enp0s3 valid_lft forever preferred_lft forever
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000 link/ether 08:00:27:8f:fd:53 brd ff:ff:ff:ff:ff:ff
4: enp0s9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000 link/ether 08:00:27:ae:21:b9 brd ff:ff:ff:ff:ff:ff
6: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 08:00:27:8f:fd:53 brd ff:ff:ff:ff:ff:ff inet 10.11.18.42/24 brd 10.11.18.255 scope global br0 valid_lft forever preferred_lft forever
enp0s3 is the management link, enp0s9 is the LAN and enp0s8 the WAN.
My /etc/nftables.conf contains the following
table bridge BRIDGE {
chain prenotloggedin { meta pkttype set host ether daddr set 08:00:27:8f:fd:53 #dest=br0 & enp0s8 log prefix "Bridge-pre not logged in: " accept } chain pre { type filter hook prerouting priority 1; log prefix "Bridge-pre: " udp dport { 80 } goto prenotloggedin tcp dport { 80 } goto prenotloggedin accept }
}
I have an HTTP server listening on port 80
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
In dmesg output see
[96140.817692] Bridge-pre: IN=enp0s9 OUT= MAC=34:e8:94:62:f0:0e:08:00:27:99:15:e3:08:00 SRC=10.11.12.57 DST=192.229.232.240 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=30844 DF PROTO=TCP SPT=51036 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0
[96140.828261] Bridge-pre not logged in: IN=enp0s9 OUT= MAC=08:00:27:8f:fd:53:08:00:27:99:15:e3:08:00 SRC=10.11.12.57 DST=192.229.232.240 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=30844 DF PROTO=TCP SPT=51036 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0
but the HTTP request does not get to my HTTP server.
10.11.12.57 is the LAN client. I'm wondering if I need to change the destination IP address!
Can anyone help please?
-
How to reach to a specific IP if two IPs (same subnet) having same mac address in the linux bridge port
I have a linux network bridge which has 2 ports attached to the docker containers.
Create Containers (c1 & c2):
docker run -d --cap-add NET_ADMIN --privileged --name c1 -i -t --network none baseimage:latest bash docker run -d --cap-add NET_ADMIN --privileged --name c2 -i -t --network none baseimage:latest bash
Create Linux Network Bridge:
ovs-vsctl add-br sw1
Add port to the containers (c1 & c2):
ovs-docker add-port sw1 veth0 c1 --ipaddress=1.1.1.1/24 ovs-docker add-port sw1 veth0 c2 --ipaddress=1.1.1.2/24
I have changed the mac address of both the above container ports with below command. Now both containers have same mac address.
ifconfig veth0 hw ether 11:22:33:44:55:66
Apart from this, I also have a tunnel port (geneve) which takes the packet out of the host to the another end of tunnel after encapsulating it in geneve header.
ovs-vsctl add-port sw1 tun1 -- set interface tun1 type=geneve options:remote_ip=10.0.0.3 options:key=123
From the other end of the geneve tunnel, I will form a packet which will have geneve header and an internal frames having ethernet and ip frame. I will randomly chose the destination ip (1.1.1.1/1.1.1.2).
I need to understand how would I reach to a specific address if mac address are same for the destination port for both of my destination ip's.
I know this is unusual scenario but I need to simulate this in my environment for 1 of my use case.
Pls help!