How to add AdSense ads right after social media icons?

Hello, I’m trying to put adsense ads at the top just below the social media icons … How I can do?

It’s not as easy as it might sound but it’s doable.

Place your adsense code inside div something like:
Screen Shot 2013-08-07 at 11.37.03 AM

And place the entire code with div inside header-extensions.php file right after line 229 that says </div><!-- .hgroup-wrap → . in header-extensions.php can be found in theme folder → library → structure.

Now go to Theme Options - Other - Custom CSS and add the following:

.adsense {
    float: right;
    margin-top: -50px;

You might edit CSS to position your ad where you want it.

I’ve done everything that you say but if I add the div with the adsense code in header-extensions.php file I get the following error message:

Parse error: syntax error, unexpected T_STRING in / home / tutoblog / public_html / wp-content / themes / travelify / library / structure / header-extensions.php on line 1

The funny thing in that line 1 I have not touched anything …

What can be happening?

It can happen. Try replacing this file from the original theme zip file. You can download it from here:

Maybe try different text editor because there can be some encoding issues with the one you use now.

Check if that solves your problem and let me know.