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 »

Can I add widgets to the center column?


  #1  
Old Jan 7, 2010, 04:16 AM
gaz7575
 
17 posts · Oct 2009
Can I add widgets to the center column?

Hello there.

Is there a simple way to add widget areas to the center column? If possible I would like to add up to 6 or 8 and change the size and appearance of each one.

Thanks
gary
  #2  
Old Jan 7, 2010, 05:12 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Yup, check out ATO->Add new WIDGET AREAS
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 7, 2010, 05:48 AM
gaz7575
 
17 posts · Oct 2009
Hi Juggledad

Yep, done that but I'm not sure where to start. Is the example code given in "Add new WIDGET AREAS" the correct code to use in the "Style and Edit Centre Column". As I mentioned, I would like to add 6 or 8 widget areas and tweak the appearance and size of each one.

Thanks
Gary
  #4  
Old Jan 7, 2010, 05:56 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Well do you want to add 6-8 widgets, or 6-8 widget areas in which you can put multiple widgets?
the sample will work
HTML Code:
<div id="my_new_widget_area" class="my_widget_area"> Widgets will go here </div>
this will create one widget area and you will see it in 'dashboard->apearances-widgets' called 'my_new_widget_area' and it will have a class you can use in any CSS Selectors you want to setup
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jan 7, 2010, 05:56 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
What kind of widgets are you going to make? Creating the widget area just means you're creating a widget-enabled placeholder. It's when you are in the Appearance/Widgets part of admin that you'll insert the widget into your new widget area. I have several Text widgets which contain not text but images. You could use the Text widget to create a table of a certain size, containing something else. The width of the widget will be constrained by how wide your center column is, which is itself constrained by the width of your sidebars, padding, etc.

Many plugins that have their own widgets let you set dimensions and other properties. You can use Widget Logic to set where the widget will appear (i.e., on which pages or categories).
  #6  
Old Jan 7, 2010, 06:44 AM
gaz7575
 
17 posts · Oct 2009
Hi Paulae/Juggledad

Thanks for the advice. Yes, it's widget areas I want to add first, probably 6-8. Then I will use the widgets installed, text and image to fill each area.

I currently have a left, inner left and right side bar. If adding these widget areas works, I will probably dump the right side bar as the width of the center will increase.

Fingers crossed it looks great when finished,

Cheers
Gary
  #7  
Old Jan 7, 2010, 07:56 AM
gaz7575
 
17 posts · Oct 2009
Hi Juggledad

Well I've failed. I have put this <div id="my_new_widget_area" class="my_widget_area"> Widgets will go here </div>
into the style and edit center column page where it says The Loop. Is this correct?

I can't see a my new widgets in the dashboard and I have just the words "widgets will go here" in my site in the center coloumn

Thanks
Gary
  #8  
Old Jan 11, 2010, 02:51 AM
gaz7575
 
17 posts · Oct 2009
Hi Paulae

Thank you for the advice. I have tried to add that example in the above the loop section on the edit center column page, saved it and get an error message on my site. Do I have to delete the standard code already in the above the loop area? Do I put the new widget php code at the start or the finish of that code if I leave it there? I checked my widgets and the new area also hasn't been created.

Thank again,
Gary
  #9  
Old Jan 11, 2010, 04:57 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) what is the error you get?
2) copy and paste the entire 'Above the LOOP' into your reply and surround it with
HTML Code:
..the code here...
(or use the little HTML button above) so I can see the code

Normally something like this is a type or it's out in the wrong place, inside another piece pf PHP code
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Jan 11, 2010, 05:18 AM
gaz7575
 
17 posts · Oct 2009
Hi

Fatal error: Call to undefined function: str_ireplace() in "my site" on line 321

This is the code thats in the "above the loop section" As you can see the add widget code is at the bottom.
<?php /* For MULTI post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_page_links('Top'); ?>

<?php /* For SINGLE post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_post_links('Top'); ?>

<?php /* For the plugin Page2Cat http://wordpress.org/extend/plugins/page2cat/ */
if( is_category() AND function_exists('page2cat_output')) { page2cat_output($cat); } ?>

<?php bfa_widget_area('name=My new widget area'); ?>

Thanks
Gary
  #11  
Old Jan 11, 2010, 05:49 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Ahhh that error, you are running php4 on your site, you should go to php5 - check with your host. Some hosts allow you to add a line to the htaccess file to change this

Meanwhile what version of Atahalpa are you running? This should have been fixed in ver 3.4.2. If you are not on 3.4.4 please upgrade to it and see if the error still exists
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #12  
Old Jan 11, 2010, 06:56 AM
gaz7575
 
17 posts · Oct 2009
Hi

Upgraded to 3.4.4 and wordpress to the latest version. Error now gone and my new widget area has appeared in the widget section. Great thanks Juggledad. I now want to add a few more areas and resize and style these individually so get a number of these in my center column.Can you advise me on this please.

Thanks
Gary

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
displaying additional widgets in the center column sparksmex Sidebars & Widgets 7 Oct 23, 2009 06:02 PM
[SOLVED] displaying additional widgets in the center column irinaov Sidebars & Widgets 3 Oct 16, 2009 04:35 PM
How do I style center column lexsisney New Versions, & Updating 1 Oct 12, 2009 06:55 AM
Add Widgets to Center Column Front Page Only MountainStream Sidebars & Widgets 10 Aug 13, 2009 12:51 PM
Center Column chiaxiong Atahualpa 3 Wordpress theme 1 Apr 8, 2009 06:28 PM


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


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