How to link YouTube to a Google+ page with different email addresses

I’ve been trying for some time now to link (or connect) my YouTube account and my Google+ page, but the only problem is that both of these accounts have different email addresses. According to many posts I read around the web and Google support, there is no way to do this. At least that was what I thought.

Most people just go to the YouTube settings page and click the Link to a Google+ page, but only to find out that Google wants to create a new page, when you already have a Plus page. So there is a way to link these two accounts together with a simple trick.

I know what you’re going to say, how is this related to WordPress? Well, it isn’t directly related, but it will help as SEO to grow your business, which can potentially bring more visitors to your site. So it is indirectly related. This is why I decided to include this tip in my site.

OK, continuing right along… The first you have to do is to add the email account you’re using in YouTube as a manager for your Google+ page. To do this go, click Managers from the top menu and click Add managers, then type the name or email address and click the Invite button.

Now sign in to your email account you’re using with YouTube and confirm the new manager notification.

Once confirmed, go to your and from the Overview section, under Account Information, click the Link a Google+ page. And here is where the magic happens, now you’ll be able to choose your G+ page from a different account with a different email address. Complete the settings, and that’s pretty much all you have to do. Go back to your Google+ page and you’ll see a YouTube link in the top menu.


How to limit WordPress post revisions with a simple line of code

You started a new WordPress site and you noticed that everything you save in a post also creates a revision. You make more changes and these WordPress revisions keep piling up. After a year of writing daily in your blog, you notice that your site’s database starts growing, but if you look closely almost 50%, if not more, is just because WordPress saves a copy of every change you make to a post.

WordPress by default doesn’t include an option to limit the number of post revisions, because it always wants you to be able to go back and rescue previous content. However, the content management system software does have a way to control the amount of revisions are kept for each post.

If want to limit the amount of copies WordPress saves for each post you write, do the following:

1. FTP your site, from the root directory find and download the wp-config.php.

2. Make a backup of the file!

3. Open the wp-config.php file with your favorite code editor and look for the WP_DEBUG line of code. Under this line copy and paste the following line of code:

/** Sets limit on WordPress revisions */

define('WP_POST_REVISIONS', 4);

Then number “4” is the amount of revisions I want to save, if you want to keep more or less copies, simple change the number. And if you don’t want to keep any copies simple enter the word false.

/** Disabling WordPress revisions */

define('WP_POST_REVISIONS', false);

4. Save the wp-config.php file and upload the file to your site. Go to your website refresh and test the new changes.

How to make AdSense load faster on your WordPress site

This indeed is a good news for every website owner, not just for WordPress, because now Google is piloting a new ad code type to improve latency of web pages with AdSense ads. This is a huge deal because it means that pages in your site will load faster, which also means a better experience for your readers. The new code, known as “asynchronous tag”, make sure that the web page loads to users, even if ads are having problem loading.

At the time writing this post, the new asynchronous tag is a beta feature in AdSense, as such Google says that moving to the new version is optional. This also suggests that the search giant may be planning to make this feature a standard in the future.

If you want to try the new ad code, you can create a new ad, the same way you’ve been doing it for years, but now you’ll also see a “Code type” menu, from this menu, choose “Asynchronous (BETA)”. Finally, grab and paste the code in your WordPress template, and you are good to go.

Google also recommends that if you’re thinking of trying this new feature to improve your site load speed, you have to change all the AdSense ad units in the page in order to see the difference.

For more information check this Google Developer Blog post.

Source Google

How to fix WordPress 3.5.2 Database Update Required error

I just updated to the latest WordPress 3.5.2 maintenance update, but when I clicked the “Update WordPress Database” I ended up in another page that only displayed the WordPress logo. After trying to complete the database update several times I also stumbled upon an error that looked something like this: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in /home/html/wp-includes/wp-db.php on line 1499.

The database message said the following:

“Database Update Required
WordPress has been updated! before we send you on your way, we have to update your database to the newest version.
The update process may take a little while, so please be patient.”

Of course, when updating WordPress and things don’t work as expected, I started to panic a little bit, so I did some research and I found out that I wasn’t the only one with the problem updating to WordPress 3.5.2. The solution to the problem I discovered at the WordPress forum and in my case was a memory issue.

So, what you have to do is to add increase the memory limit in your wp-config.php file by using the following line of code:

define(‘WP_MEMORY_LIMIT’, ‘128M’);

Save the file back to your server, go to your and click “Update WordPress Database” one more time and it should work. Remember that you can increase PHP memory Limit in .htaccess or local php.ini file.

How to add gradient to the first letter of a WordPress blog post

Great content is just part on running a successful website, user experience is another key ingredient to get visitors to come back. So today in this WordPress tutorial I want to show you how make your blog post a little more appealing and professional by capitalizing the first letter of a paragraph and adding gradient (multiple colors) to make your content stand out from other blogs.

We are going to do this by simply using CSS selectors that you can apply to your “style.css” for the content in the “single.php” file of your theme.

Open the style.css from your current WordPress site with your favorite code editor. Go to the end of the file and paste this CSS code:

.single .entry-content p:first-of-type::first-letter {
 background: -webkit-gradient(linear,left top,left bottom,from(#FF2828),to(#302130))!important;
 -webkit-background-clip: text!important;
 -webkit-text-fill-color: transparent!important;

To customize your own gradient colors, you need to change the “#FF2828” and the “#302130” with the combination of hexadecimal colors that you want to include. Then simply save and upload the style sheet file back to your site.

Here is an example how it should look like:


Though if you want it to look just like in the image above you have use this code:

.single .entry-content p:first-of-type::first-letter {
float: left;
font-size: 5.538em;
line-height: 0.7em;
margin-top: 8px;
padding-left: -5px;
padding-right: 12px;
text-transform: uppercase;
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: 500;
color: #588C9A;
background: -webkit-gradient(linear,left top,left bottom,from(#FF2828),to(#302130))!important;
-webkit-background-clip: text!important;
-webkit-text-fill-color: transparent!important;


One thing to note: The code that I am sharing today will work with pretty much any WordPress theme that follows the best practices or has been designed by the WordPress community such as with the Underscores framework theme. And it will work with any web browser that supports “webkit”.


If it doesn’t work chances are that the first paragraph tag is around an image or there is an empty paragraph tag in the HTML code of your post. To solve this issue simple remove the image and check the “Text” tab (in the post editor) and delete any paragraph tag that is empty.

How to prevent Google Adsense from loading when users are logged in to WordPress

When running a WordPress site there are times when you don’t need to load certain parts of your theme when you’re logged in. One example of this is Google Adsense, loading your own ads is not a good practice and to prevent accidental impressions you can prevent loading Adsense while users are logged in to the site with a simple piece of code.

Luckily WordPress makes it something pretty simple to do, the only thing you need to do is to copy and paste the code snippet below and replace ***Your Code Here*** with the Google Adsense code or any other element (e.g., HTML, PHP function, etc.) of your website you don’t want to see during a user session.

<?php if(!is_user_logged_in()) { ?>
***Your Code Here***
<?php } ?>

Basically the above snippet is an IF statement that checks when a user is logged-in, if there is one, then is going hide or prevent loading whatever code is inside of it.

Matt Cutts details what’s coming in Google SEO in 2013

I’m a long time follower of Matt Cutts, head of the webspam team at Google, he is the person to listen when it comes to designing a website to rank higher with Google’s search engine. Today in a new YouTube video from the Google Webmaster Help channel, Cutts talks about what is coming in Google SEO in 2013.

Wearing a Firefox shirt, he talks about the next version of Penguin, codenamed Penguin 2.0, a webspam change aim to terminate with black hack webspam, how Google will go more aggressively on native advertising and how this affects Google’s quality guideline and pagerank, more sophisticated link analysis, detect more efficiently hack sites and Mountain View is also working on better notification in the Webmaster Tools, to help web owner to detect and clean more quickly malware from their sites.

Matt Cutts also said that Google is working on helping web authorities, or websites that are known for being trusted on certain topics, for them to rank better in the search results. And overall improvements — Definitely 7 minutes worth watching.

Source Matt Cutts