WordPress 'Joy of Cooking' Theme

7 replies
I want to install scripts to show several 125 x 125 Commission Junction banners in my WordPress sidebar.

The Sidebar Adbox programming is:

<!-- Main Ad Body Starts -->

<div id="adcontainer">


<div id="adboxes">
<ul>
<li><a href="<?php echo get_settings('home'); ?>/advertise" target="_blank" ><img src="<?php bloginfo('template_url'); ?>/images/125x125.gif" width="125"

height="125" border="0" alt="Advertise Here" /></a></li>

<li><a href="<?php echo get_settings('home'); ?>/advertise" target="_blank" ><img src="<?php bloginfo('template_url'); ?>/images/125x125.gif" width="125"

height="125" border="0" alt="Advertise Here" /></a></li>

<li><a href="<?php echo get_settings('home'); ?>/advertise" target="_blank" ><img src="<?php bloginfo('template_url'); ?>/images/125x125.gif" width="125"

height="125" border="0" alt="Advertise Here" /></a></li>

<li><a href="<?php echo get_settings('home'); ?>/advertise" target="_blank" ><img src="<?php bloginfo('template_url'); ?>/images/125x125.gif" width="125"

height="125" border="0" alt="Advertise Here" /></a></li>

</ul>
</div>
<div class="clear"></div>

</div>


<!--Main Ad Body End-->


I have the script for one of the ads, but this forum won't let me post it because it contains a URL

Can someone please help????
#cooking #joy #theme #wordpress
  • Profile picture of the author mywebwork
    Aloha Annie

    Sorry, I'm not exactly sure I understand your question. Do you just want to replace the sidebar boxes with your CJ ads?

    If the ads are already formatted to be the correct size you can simply cut and paste their HTML code between the <li></li> tags.

    Hope this helps, please let me know if I can be of any help.

    Bill
    {{ DiscussionBoard.errors[442831].message }}
    • Profile picture of the author AnniePot
      Bill

      Thanks ;-) I spent most of yesterday trying to fit it all in with the existing script. Wish I'd asked in the first place LOL

      I appreciate your help
      {{ DiscussionBoard.errors[443997].message }}
  • Profile picture of the author mywebwork
    Aloha Annie

    Glad to help, please let me know if I can be of any additional assistance.

    Bill
    {{ DiscussionBoard.errors[445342].message }}
  • Profile picture of the author mlb999
    I am trying to do the same thing, but I have a problem when I put the ad code in. there is a tiny box that shows up at the next to the ad. There is supposed to 4 ads displaying in a ad box (2 on left;2 on the right) The problem comes in when I try to put in another ad and the ad box on top gets moved under the box on the left so that there is now 3 boxes on the left and 2 on the right. The standard code has the boxes displayed correctly, but when i replace it with the ad code, this tiny box shows up next to the ad. I'm not sure i am explaining this well, but do you have any suggestions?
    Thanks, MLB999
    {{ DiscussionBoard.errors[540726].message }}
  • Profile picture of the author mywebwork
    Hi MLB999

    It sounds like you may have omitted a </li> tag somewhere. Otherwise are you sure that your images are 125 x 125?

    If you post the code I may be able to assist.

    Bill
    {{ DiscussionBoard.errors[540830].message }}
    • Profile picture of the author mlb999
      I did check on the <li> and the size of the ad, and they are correct. I copied the affiliate code just like they requested.
      The button shows up correctly, but also with a tiny box to the bottom right. This pushes the other ad boxes over and out of alignment so that they move down to the next row. Could this be something in the CSS causing this?

      The website won't let me post the code, but let me know if there is a way to get it to you.

      thanks for your help!
      {{ DiscussionBoard.errors[542255].message }}
  • Profile picture of the author mywebwork
    If you think that the affiliate code may be at fault there is a simple way to check it. Use a text editor (Notepad will work) and create a new HTML document as follows:

    Code:
    <html>
    <head></head>
    <body>
    </body>
    </html>
    Now insert the affiliate code between the "body" tags. Save the file as test.html or something similar. Now open the file with a web browser - you should see your affiliate ad and if there is a problem with it's format it will be apparent.

    If it displays properly than there is another problem with the WordPress theme. Let me know if this is the case and I'll give you an e-mail address that you can use to send me a copy.

    Aloha

    Bill
    {{ DiscussionBoard.errors[543067].message }}

Trending Topics