Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #452052

    I had previously placed Google AdSense ads in the header of my website thanks to these two previous topics:

    http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
    &
    https://kriesi.at/support/topic/inserting-728×90-banner-into-header/

    Also on the advice of the moderators I installed the “Functionality” plugin. All was working perfectly. However I am attempting to implement a new rich-media ad and am running into the following problem:

    Parse error: syntax error, unexpected ”} else {nf=” (T_CONSTANT_ENCAPSED_STRING), expecting ‘,’ or ‘;’ in /home/########/public_html/######/wp-content/plugins/functions.php on line 30

    Line 30 is the following:

    if (window.self != window.top) {nf=”} else {nf=’NF/’};

    A coding genius I definitely am not. Of all the research I have conducted I cannot solve the problem. I realize this is outside the responsibility of Enfold Support but thought I would take a chance anyway.

    Thanks!

    #452784

    Hey MLA18!

    Please add your code inside a text widget inside your Header widget area, do not add it to the code to display widget area in header and it should work fine :)

    Regards,
    Yigit

    #454144

    Excellent. That looks to be working now. Thank you!

    How can I about styling that now…the ad is appearing right on top/behind the website logo. I would like to shift it over to the right a little bit.

    Thanks!

    #454628

    Hi!

    I cannot see an ad on your header. Have you removed it? Please add it and then adjust its position using custom CSS code posted here – http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/

    Cheers!
    Yigit

    #454684

    Hi Yigit,

    The ad in the header is for US based only. Thank you for pointing out the code in the other post…I have it positioned correctly now.

    Thanks for your help! You may close this thread now.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Rich-Media Ads in Header’ is closed to new replies.