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
Is it doable to make a new widget area after the first excerpt in the center column and, if so, how do I do it?
I'm talking about the following site: www.elektroretailmagazine.nl
One way would be to edit index.php and put some code in the loop to check if it is a multi post page and if the post count is 2 and then execute the new widget code
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
#3
Aug 14, 2014, 02:29 AM
timdevogel
141 posts · May 2009
Goodmorning JD (at least, over here it's morning),
Thnx for the reply. 2 more questions: where can I see & learn what this code would look like and if I alter index.php, does this mean I'll have to do this after each theme update?
<?php if ($bfa_ata_postcount == 2) { bfa_widget_area('name=middle widget area');} ?>
and yes you will have to update index.php after each update.
UPDATE: that line would go right after the line
HTML Code:
<?php while (have_posts()) : the_post(); $bfa_ata_postcount++; ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Last edited by juggledad; Aug 15, 2014 at 12:31 PM.
#5
Aug 14, 2014, 04:46 AM
timdevogel
141 posts · May 2009
Thank you very much JD.
Would working with a child theme solve this problem? If so, I guess I'll have to dig into that.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Last edited by juggledad; Aug 14, 2014 at 05:05 AM.