WordPress Training: Vanishing Content

25 Feb

This is an issue I helped a fellow blogger out recently with content that she was trying to embed in a post in her blog, but for some reason it was not appearing in her post.

I had her send me the embed code and took a look at the code. Here’s a sample:

The code above poses a few issues for WordPress as there are a few things we have to take into account.

Your WordPress theme will have a layout for posts defined and the above code adds in a couple of divisions which are identified by the <div> tags. The div tags really aren’t necessary to display the video inside the post, and as such, we will remove them.

Once we remove them, you are left with the embed code below:

Now the code above has some issues with it as well, as your WordPress theme should be the one determining where the video sits in your post and what size it is. So in the code where you see style= is modifying the display of the video within the post.

What we need to do next is remove everything from the style except for the height and width.

 

The code above is now what we’re left with. 100% width means that the content will fill the available width of the post. Height can’t be 100% as it just doesn’t work 90% of the time. So for height I just picked an arbitrary width of 500 pixels wide but really this can be almost any number.

The product of the code above is below:

and there you have it! A working video!

WordPress Training Coming Soon

21 Feb

While running my hosting business HostingEh, I’ve had a lot of customers ask me about the possibility of training them on common WordPress problems and how to troubleshoot and fix them.

I figured that the best way to achieve this would be to write a few posts about common issues I see with customers WordPress sites, and then detail how I went about fixing the problem.

Some of the techniques I employ are ones that I’ve learned over the years as a web application developer, and others are from being a systems administrator so I will try and simplify them for people who have zero experience with running their own servers.

That being said, I am starting work on a couple of common problems and you’ll see more frequent updates here on the blog to show you how to go about diagnosing an issue, trying fixes, and eventually resolving the issue.

This series is going to take a few things into account:

  • You are in a shared hosting environment.
  • Your environment uses cPanel as the control panel.
  • Your host is running a version of PHP above 7.0

Even if the above assumptions do not apply to your situation, these posts may help, however I can’t guarantee they will.

That all being said, Stay Tuned!

How To: Contact the Pokemon Company Support

9 Feb

Pokemon LogoRecently I’ve been playing a lot of Pokemon Duel which is an incredibly fun chess-like game that involves some strategy and luck to come out on top.

Rather than use your Google account or Apple ID to log into the app, the game simply lets you create a game account without any kind of information. This is where the problem lies. When you change devices, you need to go into the app and create what’s called a transfer code. This allows you to transfer your account data to another device. What I was unaware of was that the code is SINGLE USE!

That’s right! Each time you switch devices, you need to generate a new transfer code. Not knowing that, I wiped a device assuming I could use the same code, and boom! Nope!

So I went searching for a support email on the web and it was a pain in the butt to find, but I found their support info.

Here’s the link for the Pokemon Group’s support page.

It has support info for:

  • Pokemon Trainer Club
  • Pokemon Go Plus
  • Pokemon Duel
  • Pokemon Shuffle Mobile
  • Pokemon Trading Cards and Products

Hope this helps if ever you need support!