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

[SOLVED] widget area after first post in JUGGLEDAD's custom query page template


  #1  
Old May 6, 2013, 07:58 AM
nil
 
3 posts · May 2013
I have one full post and 4 columns showing on home page with the help of JUGGLEDAD's custom query page template. (must say thank you for the great theme & all the extras).

Everything else is done except this which I am unable to figure out.
I just want one widget area below the first post only (that is above the 4 columns)

is it possible? And how? Any workaround?


I have Atahualpa version 3.7.12 and wp 3.5.1
Can't post the site link as I am experimenting and is style wise a mess at the moment.
  #2  
Old May 6, 2013, 09:34 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
edit template_multi_column_custom_query.php and change line 228 from
HTML Code:
        <?php if ($bfa_ata_postcount <= $posts_above_the_column) { ?>
to

HTML Code:
        <?php if ($bfa_ata_postcount <= $posts_above_the_column) { 
				bfa_widget_area('name= widget after first post'); ?>
  #3  
Old May 6, 2013, 12:21 PM
nil
 
3 posts · May 2013
Thanks a ton Juggledad.

It works but it has thrown styling out of place.
the first post went to left from center.
1st column also got pushed to left and rest 3 columns to extreme right upon one another.
the most weird thing happened in footer where I can't see the copyright thing too almost vanished except 3 links.
I am sure it is styling issue and can be controlled with css inserts? right?
thanks once again.
  #4  
Old May 6, 2013, 01:20 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Ok, I went back and spent some time and this is a bit more complicated than the first go around.

If I were you I would make a copy of the templage and rename it in case you want to use the MC/CQ template somewhere else.

From a fresh copy of the template here is what you need to do - change line 228 from
HTML Code:
        <?php if ($bfa_ata_postcount <= $posts_above_the_column) { ?>
to
HTML Code:
                <?php if ($bfa_ata_postcount == 1) { ?>
                </tr><tr><td colspan="<?php echo $number_of_columns;?>">
			<?php	bfa_widget_area('name= widget after first post'); ?>
			</td> <?php } ?>

        <?php if ($bfa_ata_postcount <= $posts_above_the_column) { ?>
  #5  
Old May 6, 2013, 10:13 PM
nil
 
3 posts · May 2013
This works perfectly! can't thank you enough! There will be little something on your way not immediately but definitely once I get going.
You rock!

Bookmarks

Tags
custom query, page template, widget area

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Juggledad's custom query template - More Tag Behaviour On The Home Page MoriokFutai Atahualpa 3 Wordpress theme 12 Feb 4, 2013 06:34 PM
Changing the JUGGLEDAD's multi column/custom query template 86owen Page & Category Menu Bars 13 Oct 12, 2012 11:04 AM


All times are GMT -6. The time now is 12:05 PM.


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