Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

How can I insert an ads in the middle of Homepage?


  #1  
Old Sep 22, 2015, 05:33 AM
alexmai
 
25 posts · Dec 2014
Do I need to edit the index.php?

or any function in theme options will do the trick?

or I have to get a widget or plugin?
  #2  
Old Sep 22, 2015, 06:10 AM
juggledad's Avatar
juggledad
 
23,516 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Unless you can find a plugin that will do it, you will have to put some code in index.php
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 22, 2015, 07:16 AM
alexmai
 
25 posts · Dec 2014
Can you tell me how can I do it with index.php?

I did some plugin research, seems like no plugin will do it.
  #4  
Old Sep 22, 2015, 07:35 AM
juggledad's Avatar
juggledad
 
23,516 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Depending on how fancy you want, i would first get the number of posts per page, then divide that in half. Then setup a counter and incriment it each time you went thru the loop. When the counter matched have the value of the posts per page, I'd execute the code you have to display the the ad
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Sep 22, 2015, 05:47 PM
alexmai
 
25 posts · Dec 2014
No need to be fancy, just want to display the ad in the middle of the homepage ( I have 14 posts on homepage).
  #6  
Old Sep 22, 2015, 07:29 PM
juggledad's Avatar
juggledad
 
23,516 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Then setup a counter and incriment it each time you go thru the loop. When the counter hits 7 execute the code you have to display the the ad
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Ads On Homepage When Using "Juggledad's Multi Column/Custom Query" MoriokFutai Atahualpa 3 Wordpress theme 11 Aug 15, 2013 04:10 AM
Right sidebar in middle of content katylove Sidebars & Widgets 1 Feb 16, 2013 02:57 PM
[SOLVED] white middle cway Center area post/pages 6 Jun 25, 2010 06:55 PM
KICKER: Homepage %category-linked"% causes right sidebars to disappear from homepage Jazoja Post-Kicker, -Byline & -Footer 2 Jun 23, 2010 05:32 PM
Align Text Middle? kalookalei Center area post/pages 1 Jun 18, 2010 02:29 PM


All times are GMT -6. The time now is 07:57 AM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.