Tagged: , ,

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #864739
    #864819

    Hey vadikcoma,

    What exactly is not working?

    Best regards,
    Rikard

    #864822

    Hi Ricard, sorry for vague description :-)
    I expected to see AdSense banner in the header just right of the logo. I have Header widget area created, and code inserted, however banner is not showing

    #865113

    Hi,

    Ok, thanks for the feedback. The adsense markup is added on the page, but I can’t see any ads either. I think that is something you will have to bring up with Google unfortunately, it’s out of our control.

    Best regards,
    Rikard

    • This reply was modified 7 years, 1 month ago by Rikard.
    #865255

    Hi Rikard,

    What I see in console: “adsbygoogle.push() error: No slot size for availableWidth=0”
    So it seems that header is too small for banner, however I set manual height to 150, and I have no idea how to setup width. It seems there are plenty of space. Can this CSS be affecting it?

    #header .widget {
    left: 50%;
    padding-top: 0;
    position: absolute;
    top: 0;
    transform: translate(-50%);
    z-index: 999;
    }

    #865561

    Hi,

    I can see that too, but I don’t really know what it means. Maybe you could try searching for the problem? Here’s a topic which might be of interest to you: https://stackoverflow.com/questions/33465168/google-adsense-error-tagerror-adsbygoogle-push-error-no-slot-size-for-avail

    Best regards,
    Rikard

    #865997

    Yes, I researched this topic already, but no luck. Still getting the same error.
    I think that there is something wrong with the way I created header widget area

    #866568

    Hi,

    If you think that there is something wrong with the widget, then maybe you could try to use the add code somewhere else to see if it works there? You could also add it to your header.php file to see if it work better if you add it directly to the template file.

    Best regards,
    Rikard

    #867621

    hi Rikard,

    Yes, it works by adding code to header.php, could you please help me to find a place in the file for the code? Currently when I put the code, ad shows either above all header or as a background image. I would like to have it on the right side from logo, is it possible?

    #867678

    Hi vadikcoma,

    Can you show us what you’ve got so far? Maybe it can be adjusted via css? Just don’t have it as a background.

    Best regards,
    Victoria

    #873920

    Hi Victoria,

    Sorry for long reply, I got totally stuck with this. I’ve removed all code that I changed, just to make sure I don’t mess things up.
    I’m still interested in adding banner to header area, next to logo. But I wish there could be a better way :-)

    #874968

    Hi,

    We need access to the Appearance > Editor panel. Where did you add the widget? Please provide the adsense code.

    Best regards,
    Ismael

    #876846

    Hi Ismael,
    File editing has been enabled, sorry for trouble
    Code in private attachment

    #877371

    Hi,

    Did you add the code yet? I didn’t see it in the functions.php file so I added the filter but it broke the site. Where did you add the code? Please get a fresh copy of the functions.php file and override the current one.

    Best regards,
    Ismael

    #877461

    hi Ismael, I fixed the 500 error by reuploading the theme, now all functions.php should be reset to default

    #877948

    Hi,

    I’m very sorry for this. The hook that I added broke the site again. Did you add the hook somewhere else? I tested the same hook in my installation and it’s working just fine. Please post the FTP details in the private field so that we can revert the files in case we break something. Again, I’m very sorry for the inconvenience.

    Best regards,
    Ismael

    #878057

    Hi Ismael, sorry for the mess, I had an Custom Functions Plugin installed, that was the reason for this. I’ve disabled it now.

    #878421

    Hi,

    The adsense is working now. Please adjust the size and position of the widget in the Quick CSS field.

    #header .textwidget {
        width: 600px;
        height: 90px;
        display: block;
    }

    Adjust the values as needed.

    Best regards,
    Ismael

    #879209

    Hello Ismael, thank you very much!

    Can you advise me on how to place banner into header completely? Now it seems to be in the middle between header and body

    https://prnt.sc/hcvt3e

    I’ve added CSS here – https://bitblog.tech/wp-admin/themes.php?page=simple-custom-css.php but it doest seem to do anything

    #879482

    Hi,

    We modified the css code a bit.

    #header .textwidget {
        width: 600px;
        height: 10px;
        display: block;
        position: absolute;
        top: -50px;
        left: -100px;
    }

    Best regards,
    Ismael

    #879683

    Perfect! Thank you very much! Please consider this as closed.

    #880053

    Hi,

    Glad we could help. Please feel free to open a new thread if you need anything else.

    Best regards,
    Ismael

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘Add widget area to header’ is closed to new replies.