Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Using ads with BLUE-theme

Asked Modified Viewed 1,841 times
J
janmol
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
asked
Veteran Member

A friend of mine want to add some ads to his site. He is using a slightly modified version of the BLUE-theme. And he wants the adds to appear to the left and the right of the content block. I have tried a lot of solutions. But none of them works properly. Any ideas???
janmol attached the following file:
mh_ex.jpg [No information available / 114 Downloads]
0 replies

1 post

D
dimki
D
dimki 10
  • Senior Member, joined since
  • Contributed 246 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

in theme.php after header or subheader demo in mein website :D

echo "<div id='wrapper'>
<div id='container'>
<div id='leftcolumn'>
<p><script type='text/javascript'><!--
google_ad_client = 'ca-pub-491................;

google_ad_slot = '54................';
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script> </p></div>
<div id='rightcolumn'>
<p><script type='text/javascript'><!--
google_ad_client = 'ca-pub-491................................';

google_ad_slot = '543........................';
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script> </p></div></div></div>\n";


and
style.css

#wrapper
{
width: 1000px;
margin: 0px auto;
position: relative;

}
#leftcolumn
{
position: absolute;
top: 100px;
left: -160px;
width: 160px;
padding: 0 0 0 0;
background-color: transparent;
}

#rightcolumn {
position: absolute;
top: 100px;
right: -200px;
width: 200px;
float: right;
padding: 0 0 0 0;
background-color: transparent;
}

#centercolumn
{
top: 0px;
margin-left: 200px;
margin-right: 200px;
padding: 0 0 0 0;
position: static;
background-color: transparent;
}
Edited by dimki on 02-07-2016 22:42,
0 replies

Category Forum

Themes Support

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

J
J
janmol 10
...........................
Jan Mølgård
PHP-Fusion, Denmark
Phone: 004528966794
Mail: janmol@wordit.dk
Mail: janm@janm.dk

Testsite version 9: http://php-fusion.dk/fusion_9_test/
  • Veteran Member, joined since
  • Contributed 752 posts on the community forums.
  • Started 256 threads in the forums
  • Started this discussions
D
D
dimki 10
  • Senior Member, joined since
  • Contributed 246 posts on the community forums.
  • Started 28 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet