Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 06: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, 07:10 AM
juggledad's Avatar
juggledad
 
23,765 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, 08: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, 08:35 AM
juggledad's Avatar
juggledad
 
23,765 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, 06: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, 08:29 PM
juggledad's Avatar
juggledad
 
23,765 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



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 05:10 AM
Right sidebar in middle of content katylove Sidebars & Widgets 1 Feb 16, 2013 03:57 PM
[SOLVED] white middle cway Center area post/pages 6 Jun 25, 2010 07:55 PM
KICKER: Homepage %category-linked"% causes right sidebars to disappear from homepage Jazoja Post-Kicker, -Byline & -Footer 2 Jun 23, 2010 06:32 PM
Align Text Middle? kalookalei Center area post/pages 1 Jun 18, 2010 03:29 PM


All times are GMT -6. The time now is 12:13 AM.


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