Skip to content
Public Ticket #551

AdSense code

Conversation thread

PenciDesign replied

Staff Reply

Hi,

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

Best Regards,

PenciDesign

tim-nieuwpoort replied

Customer Reply

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

PenciDesign replied

Staff Reply

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

tim-nieuwpoort replied

Customer Reply

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

PenciDesign replied

Staff Reply

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

tim-nieuwpoort replied

Customer Reply

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

PenciDesign replied

Staff Reply

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

tim-nieuwpoort replied

Customer Reply

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.

PenciDesign replied

Staff Reply

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

PenciDesign replied

Staff Reply

Hi,

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

Best Regards,

PenciDesign

tim-nieuwpoort replied

Customer Reply

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?

tim-nieuwpoort replied

Customer Reply

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

Staff Reply

Hi,

You can add it below your google adsense codesmile.png

Best Regards,

PenciDesign

tim-nieuwpoort replied

Customer Reply

Thank you!

PenciDesign replied

Staff Reply

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

PenciDesign replied

Staff Reply

Hi,

Soledad version 5.0 just released yesterday.

See update change log here

Best Regards,

PenciDesign

tim-nieuwpoort replied

Customer Reply

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

PenciDesign replied

Staff Reply

Hi,

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

Best Regards,

PenciDesign

tim-nieuwpoort replied

Customer Reply

Thank you.

Do I have to add it again after an update?

tim-nieuwpoort replied

Customer Reply

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

\

PenciDesign replied

Staff Reply

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

tim-nieuwpoort replied

Customer Reply

Hi,

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

Kind regards,

Tim Nieuwpoort

PenciDesign replied

Staff Reply

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

tim-nieuwpoort started the conversation

Conversation Start

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

Want to join this conversation or access attachments? Sign in first.