Wordpress SEO Expert

Improve your Google ranking with 24-year experienced SEO professional Peter Mahoney

  • SEO Overhaul
  • SEO Campaign
  • WP Support
  • Blog
    • SEO Emails
  • Praise

Gwibber and the new Twitter API

July 8, 2013 by Peter Mahoney

I noticed Gwibber, my social networking app for Ubuntu, stopped updating my Twitter status after the API was updated. Basically, it was broken.

And as of yet, it’s not been patched.

Here’s a fix I used to get Ubuntu updating my Twitter account again.

[sourcecode]pkill gwibber
sudo gedit "/usr/share/gwibber/plugins/twitter/__init__.py"[/sourcecode]

Then search and replace “api.twitter.com/1” to “api.twitter.com/1.1”

Tada!

For the sake of honesty, I’ll admit I didn’t find this fix myself, I found it here.

Filed Under: Code, Hints & Tips, Nerd-stream Tagged With: gwibber, Twitter, twitter API, ubuntu

Make a “Share on Twitter” link with URL and Hashtags

February 19, 2013 by Peter Mahoney

This is a little coding trick I get asked about quite a bit.

The link you have to make to share something to Twitter is quite simple:

http://twitter.com/share?text=text goes here

But getting a URL and hastag in there is a different matter. To be honest most developers do know how to include the URL, but hashtags have proved more elusive!

http://twitter.com/share?text=text goes here&url=http://url goes here&hashtags=hashtag1,hashtag2,hashtag3

Here’s an example to try out:

http://twitter.com/share?text=Here’s an awesome tip!&url=https://peter.mahoneywebmarketing.com/make-a-share-on-twitter-link-with-url-and-hashtags/&hashtags=peter,is,awesome

And that’s it!

Filed Under: Code, Nerd-stream Tagged With: hashtagnerdy, hastags, linking to twitter with hashtags, Twitter, url

Website code template

February 13, 2013 by Peter Mahoney

This is for my fellow developers out there.

I have a small series of files I copy and paste whenever I’m about to start a new project, they have default templates for various files I use a lot. Like a header, footer, index page, blank stylesheet, and something called “top.php” that I use to open sessions and connect to databases.

There are also some of my standard folders pre-made too (with the correct server permissions) like “img” (images) and “upl” (uploads).

This was going to be last week’s #fridayfreebie, but here it is on a Wednesday instead.

This particular version is the one I use most commonly, and it’s set up for:

  • PHP
  • MySQL
  • HTML5
  • CSS (any version!)
  • and ideally a unix/linux based server, because it references the top level of the site as being “/”.

I’ve zipped it up to share! Feel free to do whatever you want with it—although there is a lot of Peter Mahoney specific stuff in there, so you might want to take that out. Unless of course you like giving me credit for your work. 🙂

HTML5 website template (.zip)

Filed Under: Code, Freebies, Nerd-stream Tagged With: #fridayfreebie, CSS, files, footer, header, html5, mysql, PHP, template, top.php, website template

How do you annoy a web developer?

December 9, 2012 by Peter Mahoney

This is the briefest of posts, because the content is entirely thanks to the wonderful xkcd comic, and it’s pretty damn nerdy.

First person in the comments to exclaim that they get it, and can give some sort of rationale, gets a prize.

via xkcd: Tags.

Filed Under: Code, Hints & Tips, Nerd-stream Tagged With: comic, humour, tags, web development, xkcd

Speeding up your site

October 30, 2012 by Peter Mahoney

There is a slew of methods to speed your site up–which is not only the polite thing to do for your guests–but helps with Speed Engine Optimisation (SEO) too. Google in particular looks at how quickly your site loads when deciding how to rank your site in search results.

Now, if you’re familiar with web servers then everything you need to know is written below. If not, this is the sort of thing you want to have an expert do for you; a faster site is too good an opportunity to pass up.

Browser caching is a process whereby we’re able to reduce the number of HTTP requests the server needs to process, which reduced page load times. Your server tells the visitor’s browser not to look for certain files everytime–usually the file that don’t change often anyway.

Edit your .htaccess file for your site, and include this code:

## EXPIRES CACHING ##
# by Peter Mahoney of petermahoney.com
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##

Restart your web server, and you’re done!

Noe this isn’t all there is to optimising a website for speed. Especially WordPress websites. As you’ll know by now I’m a WordPress SEO expert so I really pay a lot of attention to speed. There are plugins, image compression techniques and even extra code snippets worth using.

When it comes to plugin choice for WordPress speed I recommend WP Rocket – it does a great job out of the box and with just a few setting changes you can really push the envelope. Using that as well as a series of manual image compression techniques I’m able to improve the average WordPress site’s speed by 40%!

Speeding things up usually does require a few manual tweaks to code here and there – it’s really a job for a professional rather than just trying it yourself (it’s all too easy to stop a site working properly with this stuff.)

I can’t recommend a faster site enough. For your users, SEO – hell even the good of the web itself. Let’s get that content flying.

Filed Under: Code, Nerd-stream Tagged With: code, htaccess, search engine optimisation, seo, site speed, web server

Donate monthly via Paypal, and HTML

September 17, 2012 by Peter Mahoney

BINGO! This is just what I needed tonight. I was starting to create a PHP solution that would enable me to set up monthly donations (rather than a subscription) to Paypal.

But then I thought, “Paypal must have a more elegant solution for this, and if not more elegant, than certainly simpler”.

And while they didn’t, a quick Google search revealed someone else had. In HTML.

Monthly Donations Button | PayPal.

Filed Under: Code, Nerd-stream Tagged With: donate, html, paypal

  • 1
  • 2
  • Next Page »

Get FREE Wordpress SEO tips!

I send regular newsletters with WordPress SEO expert-level tips. Sign up to get them, along with my FREE e-book “Ongoing SEO Success”.

Did I mention they’re free!

Subscribe for free

Praise

I have over 2,500 5-star feedback reviews (and I’ve never received less than the full five.)

Here’s just one example, from Mike who runs Costello Entertainments:

Migration, Hosting, SEO and Speed Work on our new website all completed quickly and efficiently and Peter was most helpful in fixing an issue with a Popover on the site as well. If you’re thinking about asking Peter to do a job for you or hesitating, JUST DO IT! – He knows programming and the internet inside out, he’ll get the job done for you professionally, with a smile. I wish I could call a plumber or a tradesman to do the jobs I can’t do myself with the same level of confidence.
Read a lot more.

Recent Blogs

  • Thanks WordPress SEO expert for all your work.
    I feel like you are my guy for all my SEO. I did want to ask you if I need to get someone to write my Blog ...
  • Can the description show the Product Short Description
    Hi Peter SEO Expert :), Hope you’re doing well and having a good summer. Had this message from a client ...
  • Don’t just search for yourself!
    This is actually a stock answer I send people pretty often. I’m regularly asked about the difference ...
  • SEO doesn’t shouldn’t your site’s front-end
    On my SEO Emails section (where I share helpful responses to commonly asked queries) I recently shared a not ...

Legal

  • Terms and conditions
  • Privacy policy
  • Disclaimer

Also read

  • Payment information

RSS

Peter Mahoney, WordPress SEO expert blog

Recent Posts

  • Thanks WordPress SEO expert for all your work.
  • Can the description show the Product Short Description
  • Don’t just search for yourself!
  • SEO doesn’t shouldn’t your site’s front-end
  • Cumulative Layout Shift (CLS) for SEO & Speed

© Copyright 2023 Wordpress SEO Expert · All Rights Reserved · Site by Peter Mahoney