Adblock Plus Blocks WordPress Ad Widget
Working on Stallion Responsive Theme code improvements, been cleaning up WordPress global over usage (stuff like “global $post;” : removed a lot of those) and one of the Stallion widget features stopped working on Google Chrome! After figuring out why it makes for a nice lesson for other WordPress developers who have ad features in their WordPress themes/plugins. Stallion Responsive includes a 125px by 125px image ad widget feature. In brief you can build a bunch of clickable image ads (just image links) that look like the ads below: note although it’s called the Stallion 125px Ads Widget, the images can be any size (named 125px because 125px image ads are popular). … should be a widget below here with […]
PHP 7 Deprecated Constructor Error Notice
Working on the Stallion Responsive 8.5 update and decided it was time to bite the bullet on fixing some PHP 7 deprecated constructor notices. These are PHP notices related to some PHP code (from PHP 4 I believe) which the PHP developers plans to deprecate in the future. Right now they aren’t PHP errors, but will be sometime in the future. Currently (October 2016) the PHP code is valid in PHP 5.* and PHP 7.0.*, so this is future proofing Stallion Responsive: IF PHP deprecates the code in PHP 7.1.* (not released) for example, Stallion Responsive 8.5 (update very soon) will be ready. PHP 7 deprecated Constructor Notices An example of the PHP 7.0.* notices are these: Note: The above […]
How to Use WAMPserver With Multiple PHP Versions
Is it wrong to hate web server configurations? You might think after reading this I’m a web server expert, I’m far, far, far from a server expert, just happen to be very good at finding server tutorials written by others and following their instructions! I’ve been using WAMPserver version 2.5 and XAMPP server 3.2.2 for localhost testing: WAMPserver and XAMPP are two ways to run an Apache server on a Windows PC for testing/development. WAMPserver 2.5 had Apache 2.4.* and PHP 5.5.* and XAMPP had Apache 2.4.* and PHP 7.0.* : also have a live server running Apache 2.2.* and PHP 5.3.*, the live server is well overdue an update. So I had three versions of PHP, but had to […]
WordPress SEO Developer : David Law – SEO Dave
My name is David Law, AKA SEO Dave :-) and the developer of the WordPress Themes and WordPress Plugins on this website. I cut my teeth on SEO in the early 2000’s when I started my first online business selling sex toys and sexy lingerie, had a website with around 2,000 adult products and no money to promote through AdWords or other advertising means. Hadn’t heard of search engine optimization and at first ran on the belief if I built a website, they (visitors) will come: you quickly learn website visitors don’t work that way :-) Quickly learnt search engine optimization and in my first full year trading had earnt over £80,000 from selling adult products. Over a decade later […]