Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 30 users online :: 0 Registered, 0 Hidden and 30 Guests :: 1 Bot
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
[SOLVED] why this code is not matchin in forumotion
Page 1 of 1 • Share
i want add a responsice bloc size from adsense
but it does not appear !! why
- Code:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- hhrhr -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxx"
data-ad-slot="xxxx"
data-ad-format="link"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
but it does not appear !! why
Hi @sohab,
I have some questions :
1. Are you placing this in the templates, or somewhere else ? If somewhere else, please specify where.
2. Do any errors appear in your console ? Right Click > Inspect > Console tab
I have some questions :
1. Are you placing this in the templates, or somewhere else ? If somewhere else, please specify where.
2. Do any errors appear in your console ? Right Click > Inspect > Console tab
i place the code in html page and template too but it's not workinq and nothing appear !!
http://www.saudijobstoday.net/h4-page
http://www.saudijobstoday.net/h4-page
SLGray wrote:What exactly do this code do?
Are you adding your ads to the forum? If yes, did you remove the default ones by using credits?
yes i removed the defaults codes
this code is for bloc responsive adsense
Well I tested the code "as is" from your post above and the reason it doesn't work for me is because I don't have the correct data filled in. Did you replace xxxxx and xxxx with the necessary data ?
yes i change it
this is the correct code
this is the correct code
- Code:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- grge -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1087510162742319"
data-ad-slot="9665344186"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- htrhtr -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1087510162742319"
data-ad-slot="2142077384"
data-ad-format="link"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
sohab wrote:yes i change it
this is the correct code
- Code:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- grge -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1087510162742319"
data-ad-slot="9665344186"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- htrhtr -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1087510162742319"
data-ad-slot="2142077384"
data-ad-format="link"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
This is the result I get when I add them to an HTML page :
Try adding a line break between the curly brackets in this line :
So you get this :
I think they're being mistaken as variables in the templates without that break.
- Code:
(adsbygoogle = window.adsbygoogle || []).push({});
So you get this :
- Code:
(adsbygoogle = window.adsbygoogle || []).push({
});
I think they're being mistaken as variables in the templates without that break.
You're welcome.
Yes you need to be vigilant with JavaScript in the templates. If you have two curly brackets together like this : {}, forumotion will think that they're a variable and parse them that way -- usually removing them from your JavaScript. You either need to add a line break between them, or call
instead.
Archived
Yes you need to be vigilant with JavaScript in the templates. If you have two curly brackets together like this : {}, forumotion will think that they're a variable and parse them that way -- usually removing them from your JavaScript. You either need to add a line break between them, or call
|
Archived
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum