Screen Resolution Detect

You’ll need to use JavaScript. To get the width and height of the screen: <script> var height = window.screen.height; var width = window.screen.width; </script> To properly take into account higher resolution devices, like Apple’s ‘retina’ displays you will want to multiply those values by the ‘pixel ratio’: <script> var pixelRatio = window.devicePixelRatio; var height = …

Read more

Weird links found in wordpress footer

Sometimes a WordPress appliance service or a plugin makes a change to insert content in the footer of web pages at the web server level. If this was done here this can make it harder to find and remove. If your webserver is Apache try seeing if this file exists: /etc/apache2/mods-enabled/substitute.conf and then take a …

Read more

Gutenberg extend blocks add new class name

Yes, you can do this via the classnames() function. import classnames from ‘classnames’; const withClass = createHigherOrderComponent( ( BlockListBlock ) => { return ( props ) => { let wrapperProps = props.wrapperProps; wrapperProps = { …wrapperProps, className={ classnames( ‘my-custom-class’, props.className ) } }; return <BlockListBlock { …props } wrapperProps={ wrapperProps } />; }; }, ‘withClass’ …

Read more