by cenii
4 replies
hello i want to add some advertising here



and here




and when someone click on another category for example on homepage i will add general sidebar but on category SPORT i need to add some others function like TABLE of Soccer
#wordpress
  • Profile picture of the author emptee
    Hey mate,

    You've got two options..

    1) Use javascript to "attach" the ad to the correct place in the DOM, eg.
    $('.some-div-class-that-makes-sense').append('your ad code');

    2) Modify the theme's PHP to include the ad code, or provide a hook at the appropriate place..

    I don't really know what you're talking about at the end of your post - it helps if things are phrased as questions

    Oh, and your second image isn't displaying.. here it is for anyone else who is viewing this:

    {{ DiscussionBoard.errors[10018634].message }}
    • Profile picture of the author cenii
      Originally Posted by emptee View Post

      Hey mate,

      You've got two options..

      1) Use javascript to "attach" the ad to the correct place in the DOM, eg.
      $('.some-div-class-that-makes-sense').append('your ad code');

      2) Modify the theme's PHP to include the ad code, or provide a hook at the appropriate place..

      I don't really know what you're talking about at the end of your post - it helps if things are phrased as questions

      Oh, and your second image isn't displaying.. here it is for anyone else who is viewing this:

      Originally Posted by KenWeiLL View Post

      Modify your theme's PHP code and insert your ad code, if and only if, you're allowed to modify your theme's PHP code. Some themes, or I've encountered some themes that when you modify/edit the theme's code, the theme will stop working.

      doesnt have any plugin that can do this ?
      {{ DiscussionBoard.errors[10019468].message }}
  • Profile picture of the author KenWeiLL
    Modify your theme's PHP code and insert your ad code, if and only if, you're allowed to modify your theme's PHP code. Some themes, or I've encountered some themes that when you modify/edit the theme's code, the theme will stop working.
    {{ DiscussionBoard.errors[10019153].message }}
  • Profile picture of the author astraler
    You can checkout wordpress plugins about this.
    {{ DiscussionBoard.errors[10019470].message }}

Trending Topics