I need someone to help me with my new blog

Discussion in 'HTML & Website Design' started by cowsgonemadd3, Dec 5, 2008.

  1. #1
    I have a couple of questions.

    I have this blog and it has a PHP ads block where I can put 125x125 ads on the side. The thing is it does not want to use script ads like google ads or ANY ads. It wants to use pictures and links.

    How do I make it take script ads?

    Next is up top it shows the site name. I want to get rid of the text name and put a banner. I put a banner but it shows above the text also. I want to replace the site name made of text and just use a banner.

    Thanks
     
    cowsgonemadd3, Dec 5, 2008 IP
  2. Adriana41

    Adriana41 Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is the php ads block in a separate file?

    It would be labeled something like ads.php or banners.php in your directory, if so..go directly into that file and edit the links/banners in that file. The php code you're looking at is most likely in the header?..and it calls to that file in the directory.

    As for the text showing up in the header, I usually look for the css coding for the <h1> text and add a text-indent: -9999px; this way the text is hidden but you still receive the SEO for your header, then just add a css class to add to your header in whatever position you want the banner to show up. You can edit all of that in the .css file.
     
    Adriana41, Dec 5, 2008 IP
  3. kompyuter

    kompyuter Active Member

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    Usually themes has a labeled with ads.php or banners.php in the themes directory, you can edit this by changing the scripts.
     
    kompyuter, Dec 5, 2008 IP
  4. cowsgonemadd3

    cowsgonemadd3 Well-Known Member

    Messages:
    1,251
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    155
    #4
    It is labeled as ads.php in the theme editor. That is the only place it is found. When I edit it and add my google ad script or any other ad script that is 125x125 it just makes the whole block disappear and the ad wont load.
     
    cowsgonemadd3, Dec 5, 2008 IP
  5. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #5
    Sounds like the block size is too small for the ad to load - i.e. nothing to do with the ads but everything to do with the size of the space you are trying to squeeze it into. I'd suggest trying to make the place the ad is supposed to appear a little bigger.

    Try making the space 200x200 to begin with just to see if the ad loads. Make sure the space isn't further confined within another table or something. It'll break the layout but all you want to do is see if you can get the ad to load, then you'll know where the problem lies.
     
    mcfox, Dec 5, 2008 IP
  6. efficients

    efficients Peon

    Messages:
    132
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Can you please post the content of the ads.php here. I could take a look and tell you what to do with the code.
     
    efficients, Dec 5, 2008 IP
  7. cowsgonemadd3

    cowsgonemadd3 Well-Known Member

    Messages:
    1,251
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    155
    #7
    Here is the code.

    <?php ?>
    <div class="ads">
    <ul>
    <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/ad.jpg" alt="Your Ad Here"></img></a></li>
    <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/ad.jpg" alt="Your Ad Here"></img></a></li>
    <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/ad.jpg" alt="Your Ad Here"></img></a></li>
    <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/ad.jpg" alt="Your Ad Here"></img></a></li>
    </ul>
    </div>
     
    cowsgonemadd3, Dec 6, 2008 IP
  8. Adriana41

    Adriana41 Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Remove the <php> at the top and then put your ad blocks between the <li></li>
    if there is a php endif code at the bottom remove that too, it's not necessry.

    Each ad block should have a separate <li> replace this code
    <a href="#"><img src="<?php bloginfo('template_url'); ?>/images/ad.jpg" alt="Your Ad Here"></img>
    with your ad code.

    Your ads will show up after you do the above.
     
    Adriana41, Dec 8, 2008 IP
  9. cowsgonemadd3

    cowsgonemadd3 Well-Known Member

    Messages:
    1,251
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    155
    #9
    They did not show up actually. I get nothing.....
     
    cowsgonemadd3, Dec 8, 2008 IP