Does Any One Know If This Is Possible With Wordpress

8 replies
Hello and thank you for your time warriors. I may be asking for a bit much but was hoping there is a way to do this.

What I want to do with my new wordpress site is add a piece of code say 10 lines from the top of the posts to drop in adsense link bar.

Then also in the last paragraph I would like to have it pull a rotating affiliate banner.

I am not a programmer by any means and not really sure if this is at all possible. I would like to have it place the adsense link ad on the front page as well. Where as the affiliate banners are not vital for the main page since I do have them on the sidebar. But would like them to show up on the single posts through out the site.

Does any one know if this is even possible and if so please let me know how I can do this and or what I need to do to get this done.

Thanks for your time. Sorry for wasting it if it is not possible. I just had to know since I normally have to add the google ad in when doing the post to get it to look right which becomes a pain from switching back and forward from text to html.
#wordpress
  • Profile picture of the author Aj Wilson
    Check out www.Flexsqueeze.com (paid)
    or www.Flexibilitytheme.com (free).

    These themes are easy to customize and you can add
    'html widgets' above/below the header/nav bar...

    above & below posts...

    in a 'featured area' below the navigation...

    or any widget area you like (there's heaps)
    i.e. footer, header, side bars etc, etc.

    that's probably the easiest way to do what you're
    asking without a programmer ... and you'll get to use
    the theme for unlimited sites (instead of paying a programmer once).

    hopefully that helps?

    all the best

    - aj
    Signature
    {{ DiscussionBoard.errors[4462120].message }}
    • Profile picture of the author petevamp
      Thanks for the information aj. I was kind of hoping to use the them I already have though because I have already made a bunch of changes to it already though. I do know where to place the coding I just need to know the code it self to test and see if it works. Plus it would help out a bunch with many of my other sites as well. Saving me a bunch of time when adding the posts.

      The flex squeeze theme is a bit out of reach at the moment but I will see what the other one can do for me first. Plus I think at one time I had flexsquueze and was not to fond of it for what ever reason. But ofcourse that was many years ago though too. So not to sure if I still have it or not any more. But I will give the other one a shot just to see how I like it now that I have a better understanding of programming and site design.

      Originally Posted by Aj Wilson View Post

      Check out www.Flexsqueeze.com (paid)
      or www.Flexibilitytheme.com (free).

      These themes are easy to customize and you can add
      'html widgets' above/below the header/nav bar...

      above & below posts...

      in a 'featured area' below the navigation...

      or any widget area you like (there's heaps)
      i.e. footer, header, side bars etc, etc.

      that's probably the easiest way to do what you're
      asking without a programmer ... and you'll get to use
      the theme for unlimited sites (instead of paying a programmer once).

      hopefully that helps?

      all the best

      - aj
      {{ DiscussionBoard.errors[4462247].message }}
  • Profile picture of the author leppozdrav
    Hi Aj Wilson, This widget sounds good. But is there anything like this similar to Joomla? I have couple of my websites running in joomla and I am need on one plugin or module like this!

    thanks
    {{ DiscussionBoard.errors[4463725].message }}
  • Profile picture of the author ian buckingham
    Also you can drop the code right into the header.php file but you may need a little help doing this.
    there are several good ways, though if you're not familiar with code at all id stick with AJ's info.
    if its just a piece if code then it will be real easy for you .......if you are going to mess with your header.php or any other part of the files please please please back it up then at least you can just restore it :-)
    {{ DiscussionBoard.errors[4464416].message }}
    • Profile picture of the author petevamp
      This does not help one bit. I know where I need to place the code. I need to know the code I need to use in order to add it.

      More specifically I need to know what the code is to get it to drop a piece of code 20 lines down on the post. Then from that code I can tweak slightly for other purposes.

      Originally Posted by maxwalsh View Post

      Also you can drop the code right into the header.php file but you may need a little help doing this.
      there are several good ways, though if you're not familiar with code at all id stick with AJ's info.
      if its just a piece if code then it will be real easy for you .......if you are going to mess with your header.php or any other part of the files please please please back it up then at least you can just restore it :-)
      {{ DiscussionBoard.errors[4466832].message }}
      • Profile picture of the author Tomos Wyn
        If I'm reading you correctly, you want to show some adsense after 10 lines of a post?

        If so, maybe you should consider adding a shortcode to your WP installation? For example, if you followed this tutorial: Insert Adsense Code In Posts Using Short Code In WordPress then you'd simply put this shortcode:

        HTML Code:
        [adsenseShortCode]
        after 10 lines in your post, and your adsense block would show up there.

        You could also write another shortcode for the rotating affiliate banner using the same technique as above.

        Hope this is of any help.

        Tomos.
        {{ DiscussionBoard.errors[4470587].message }}
  • Profile picture of the author javistuff
    Tomos is right regarding the shortcode. I would go that way too.

    Anyway, if you want to try a different approach, here you have a plugin that I'm pretty sure will fit your needs:

    WordPress › All in One Adsense and YPN « WordPress Plugins


    And here is another one for the banners... although I'm not sure if this one can rotate them.

    WordPress › Advertisement Management « WordPress Plugins

    Check that out.

    Enjoy!

    Javier
    {{ DiscussionBoard.errors[4486120].message }}
  • Profile picture of the author Harrison_Uhl
    Out of curiosity...

    Is the question more of:
    1) Automatic placement of the ads code, or
    2) What to place to get the effect you want?

    (Or both?)

    In other words: Are short code solutions sufficient, or are you looking for a more automatic solution?

    Harrison
    {{ DiscussionBoard.errors[4493650].message }}

Trending Topics