Support » Fixing WordPress » Ads in header

  • I am trying to put rotating ads in my header with no luck. I can get it under the logo, and above the logo but not next to it. I have tried datafeedr with no luck, it does the same thing…

    Website is:

    [Mangled code moderated. Please post code snippets between backticks or use the code button.]

    Trying to put this code in there:

    <?php if (function_exists('dfrads')) { echo dfrads('5537092'); } ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just dropping code into your theme’s PHP files isn’t enough, you also have to modify the style sheet (style.css) to tell it where you need it to go once you have it in there.

    Just a guess, because I am not familiar with your theme, but you probably need to target the div that has the ads, and float it to the right. Another possibility is to add a widget area into the header of your theme, and then add your ad rotator as a widget from within the dashboard.

    Both solutions will require that you be comfortable writing in code; it will be difficult to find a cut and paste solution.

    It has been difficult finding a solution cutting and pasting

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ads in header’ is closed to new replies.