Display Six 125×125 Ads in Multimedia Box

Jul 24th, 2009

in Multimedia Box


The following code goes in Thesis Design Options » Custom Multimedia Box Code (?):

<div class="adblock cenx">
	<!--code for ad #1 goes here-->
	<!--code for ad #2 goes here-->
	<!--code for ad #3 goes here-->
	<!--code for ad #4 goes here-->
	<!--code for ad #5 goes here-->
	<!--code for ad #6 goes here-->
</div>

Place this code in custom.css:

.custom #custom_block {
	background-color: #FFFFFF;
}
.custom div.adblock img {
	padding: 1px;
	border:2px solid #797979;
}
.custom div.adblock a:hover img {
	padding: 1px;
	border:2px solid #AB4119;
}
.custom .cenx {
	text-align: center;
}

Live Preview


The code above is an adaptation of Satish Talim’s code provided in the support forum.
1 Star2 Stars3 Stars4 Stars5 Stars (9) Loading ... Loading ...

Share and Enjoy:
  • email
  • del.icio.us
  • Facebook
  • Digg
  • FriendFeed
  • Twitter
  • StumbleUpon
  • Technorati
  • Reddit
  • Yahoo! Buzz
  • Thanks your tutorials rock and have helped be create an very attractive blog in my niche. Thanks again I really appreciate this.
  • Sweet!
  • jmsblogger
    If you aren't pulling an ad from an affiliate site, how do you determine what the proper ad code is?
  • hmmm...what are you going to put inside the square? an image instead of an
    ad?
  • jmsblogger
    BTW - My site is still very much under construction but the address is
    http://www.renergizemedia.com
  • jmsblogger
    No, I'm going to put some rotating gif files. I've loaded them into my
    images folder on my server.
  • How do I change the grey background in the multimedia box? I put in a new color code but it's still displaying the grey background
  • Many people have asked that question in the support forums...go there to
    find out, it's a great resource. :)
  • Thanks I figure it out as soon as I posted the question. I just upgraded to thesis 1.6 and it's easier to customize than the earlier versions. Thanks for the videos.
  • jelove09
    My ads aren't displaying next to each other in a little rectangle like yours. Mine are all below each other in a long chain going down the whole right side of my page. How do I make them group together?
  • What's your url?
  • jelove09
  • Hey Jill, I absolutely love the colors you're using on your site! That green and light blue paired with the perfect shade of...hmm, what to call it.... watermelon I guess.

    The reason why your ads are not grouped is because your sidebar is not wide enough. Go to Thesis Design Options to change its width. Let me know if that fixes it.
  • jelove09
    Thank you! You were right, that worked great.
  • meme
    Thaaaaaaaaaaaaaaaaaaaaanks alot 4 the tutorial
    and thanks for the code

    U R Amazing ^_^
  • Rosa
    Your site is so useful...thanks for all the tutorials. I followed your instructions on adding 125x125 ads to the multimedia box and it worked. However, I keep getting little squares in between the ads. Do you know why this is happening?
    Thanks
  • Hi Rosa, can I have the link to your site so I can take a look?
  • Rosa
  • Rosa, take a look at the code that displays the ads that have the little squares. You'll see something like:

    <img alt="" height="1" src="https://somewebsite.com/bla/blablablabla" style="border:0" width="1">

    That is the code that displays the tiny square. Delete it and problem gone, but I wonder if that'll break the affiliate link somehow.

    The Thesis affiliate ads (125 x 125) also have that little square. I have NO idea why. If someone knows what the purpose of that square is please let us know!
  • Ok cool, this next video will definitely help you out then. Plus, it'll show you how to insert rotating ads of different sizes in several areas of your site (aside from the multimedia box). :)
  • Hi Fabi, was thinking n amount really. My current model is to build local area sites with everything free then monetise via paid ads. Small town stuff, local market dictates ad costs, so more is good for sales purposes on a rotation basis to make the effort of building the site viable. Sizes 6x125

    Tony
  • Hi, many thanks for your tutorials, I find them very helpful.

    To take the 6xads thing further. How would I rotate numerous, different blocks of ads in the multimedia box?

    Tony
  • Hi Tony,

    Actually, that's exactly what I'm working on this very minute: a video about how to add rotating ads. I should have it up by tomorrow.

    So you want them in the multimedia box huh? Do you know how many you want and which sizes?
blog comments powered by Disqus

Previous post:

Next post: