Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1333638
AdSense code
Closed

Comments

  •  1
    tim-nieuwpoort started the conversation

    Hi, where can I add AdSense code for a Billboard on my website? I can't find the field in the customizer module.

    And, where can I add the code above and below the menu for an add?

    https://screencast.com/t/r3uO9VGlxh


    Kind regards,

    Tim Nieuwpoort

  •  2,700
    PenciDesign replied

    Hi,

    You can use options for google ads in this theme to add the codes to other ads. But, we don't have option in this theme for add the ads code above the logo.

    For add the code above and below the menu, you need to edit the header.php file in this theme if you want to do that. For now, this theme doesn't support that ads spaces.

    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    Hi,

    Where can I find options for Google ads? Can you make a printscreen?

    Kind regards,

    Tim Nieuwpoort

  •  2,700
    PenciDesign replied

    Hi,

    Here is all ads spaces in this theme now:

    - Customize > General Options > Google Adsense Code to Display Above Posts Layout for Archive Pages ( display on category, tags, search, archive page )

    - Customize > General Options >  Google Adsense Code to Display Below Posts Layout for Archive Pages ( display on category, tags, search, archive page )

    - Customize > Footer Options > Add Google Adsense Code Above Footer

    - Customize > Single Options > Add Google Adsense code below post description ( display on single a post )

    - Customize > Single Options > Add Google Adsense code in the end of content posts ( display on single a post )

    - Appearance > Widgets > drag & drop widget "Custom HTML" to "Main Sidebar" and put your ads code to "Content" of "Custom HTML" widget.

    - If you using Magazine layout, and you want to put google ads below the featured categories, please go to Posts > Categories > edit your featured categories > on edit a category screen, scroll down and you will see option for put google adsense code below the category.

    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    Hi,

    I'd like to add the code above and below the menu. Where in the header.php file in this theme can I do that? Can you make a printscreen?

    Kind regards,

    Tim Nieuwpoort


  •  2,700
    PenciDesign replied

    Hi,

    For above menu: http://prntscr.com/h2bdog

    For below menu: http://prntscr.com/h2be4y


    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    Thank you.

    Do I have to add it again after an update?

  •  2,700
    PenciDesign replied

    Hi,

    Yeah, you need to do that again with each update - because you modifed the file in this theme.

    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    Ok thanks. And do you know when there is a new big update coming? (approx)

  •  2,700
    PenciDesign replied

    Hi,

    Soledad version 5.0 just released yesterday.

    See update change log here

    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    Hi,

    So I have added the adsense code below the menu. Can you help me to allign the block to the centre? https://screencast.com/t/kj0bktTG2g

    Just like in the footer: https://smaakmenutie.nl/

    Thank you

  •  2,700
    PenciDesign replied

    Hi,

    If so, please replace your google adsense code on the header to this code:

    <div class="penci-google-adsense" style="margin: 20px 0;">
    put your google adsense code here
    </div>

    Change 'put your google adsense code here' on the above code to google adsense code.

    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    Thank you!

  •   tim-nieuwpoort replied privately
  •  2,700
    PenciDesign replied

    Hi,

    You can add it below your google adsense code

    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    Really? Because then I dont see the ad.

    When I add html code instead of a script, it works. Does it makes any difference (html or script)

  •   PenciDesign replied privately
  •  1
    tim-nieuwpoort replied

    Ok, Yes I put it like that and it dont works.

    I have a htlm code as well. That works. Does that makes any differences to the site if I use the html in stead of the JS?

  •  2,700
    PenciDesign replied

    Hi,

    I don't know. You can try it for yourself Because I don't know about your codes.

    Best Regards,

    PenciDesign

  •   tim-nieuwpoort replied privately
  •  2,700
    PenciDesign replied

    Hi,

    It's your codes. I can't know what's wrong here.

    You should check the code because this issues doesn't related with our theme.

    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    Well, but can you please tell me why adsense JS is working, and this isn't? Both are JS.

    Besides that, can you make in the next update a field for this in the CMS (in the customizer)? I think a lot of others users needs this ad space too.

  •  2,700
    PenciDesign replied

    Hi,


    1/ Some js can't working together - If you know about codes you will understand this.

    2/ We will consider to add more this feature in the future.

    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    I understand, but will it makes a difference if I use html instead of JS? (for the usability of the website)

  •  2,700
    PenciDesign replied

    Hi,

    If you want to use HTML instead of JS, let's try to use it.

    Please try put it outside the code like I said in my previous comment.


    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    Ok thank you.

    And if I dont want to see the add above every page, where can I add the code for example above a post?

    Which folder do I have to use: https://screencast.com/t/Q6aoLBlO


    Kind regards, Tim



  •  2,700
    PenciDesign replied

    Hi,

    If you want to add the ad for special posts/pages, you need to add it via inside content of posts/pages. ( on "Text" tab )

    There is no option for add google ads to special posts/pages via Customize.

    Best Regards,

    PenciDesign

  •  1
    tim-nieuwpoort replied

    O yeah I know, but I mean in which folder can I place the code on the server to add a banner above a post? 

    Which folder is the post? https://screencast.com/t/Q6aoLBlO

  •  2,700
    PenciDesign replied

    Hi,

    You can try put it to content-single.php file.

    Best Regards,

    PenciDesign