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 » Sidebars & Widgets »

How to place a widget between posts on the home page


  #1  
Old Oct 12, 2011, 09:54 AM
sober's Avatar
sober
 
121 posts · Oct 2010
before using Atahualpa, I used a theme called themeshaper or themeframe (don't remember exactly) which had this option to place a widget after a said number of posts in the home page. Is that possible for Atahualpa. Would like to see if anyone can help me out on this. My site is this
  #2  
Old Oct 12, 2011, 01:55 PM
juggledad's Avatar
juggledad
 
23,631 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you need to add a counter and widget area in index.php in the loop, so before the loop you say
HTML Code:
$my_counter=1;
in the loop you add
HTML Code:
if counter = 5 {
   $my_counter = 0;
   new widget code goes here...
}
$my_counter = $my_counter + 1;
then add what you want in the widget area of the theme. With this, the widget area will only show after the 5th post
__________________
"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
BUGFIX 351/352-01: EXCERPTS - Show first X posts on HOME page as full posts juggledad Old Version fixes and change logs 1 Jul 13, 2010 05:42 AM
[SOLVED] 3.5.1 Bug? Show the first X posts on HOME page as full posts - not working Fux Excerpts, Read more, Pagination 6 May 30, 2010 01:59 AM
Where to place nofollow code for home link? wardrob Header configuration & styling 3 Apr 12, 2010 09:32 AM
want to place clickable icons in place of links (Home, About, etc.) agrossman Header configuration & styling 2 Aug 13, 2009 02:45 PM


All times are GMT -6. The time now is 10:26 PM.


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