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 » Center area post/pages »

How do I create a widget to put in the center column?


  #1  
Old May 10, 2012, 03:11 PM
tbaxter
 
92 posts · May 2012
Germantown, MD
How do I make a widget that I can place in the content area of the site (the center column)? Your instructions say,
"Style & edit CENTER COLUMN: Put the code into ANY of the text areas EXCEPT the first one, named "Center column style". "
Problem is, there IS NO other area. So where does it go?
  #2  
Old May 10, 2012, 03:17 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you have to put the code in index.php due to the wordpress restrictions. (search the forums if you want more about that)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 14, 2012, 01:47 AM
tbaxter
 
92 posts · May 2012
Germantown, MD
Hmm... Realized after the fact that what I need is two widgets called to the content area of the home page only... Is that possible? Can you call a widget with shortcode?
  #4  
Old May 14, 2012, 02:09 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Check out 'widget logic' or 'dynamic widget' plugins
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old May 14, 2012, 02:27 AM
tbaxter
 
92 posts · May 2012
Germantown, MD
Unfortunately they just control which widgets show up when-they still have to be in sidebars.

Other options?
  #6  
Old May 14, 2012, 07:23 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You can put a widget area in the center area using the 'New Widget Area' code. You can then control when the widgets in this area show up using 'Widget logic'

There may even be plugins that allow you to display the widget on a particular page. You should play with some pluging and see which works best for you.
__________________
"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; May 14, 2012 at 08:45 AM.
  #7  
Old May 14, 2012, 08:41 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Quote:
Originally Posted by tbaxter
Can you call a widget with shortcode?
There is at least one plugin that does that.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #8  
Old Dec 1, 2012, 11:44 AM
PainFreeComputing
 
20 posts · Dec 2009
Quote:
Originally Posted by juggledad
You can put a widget area in the center area using the 'New Widget Area' code...
Please clarify this. I'm using Atahualpa 3.7.9. The template's instructions are self-contradictory. I go to "Atahualpa Theme Options" | "Add new WIDGET AREAS" and I'm told to "Put the code into ANY of the text areas EXCEPT the first one, named "Center column style"." I go to the "Style & edit CENTER COLUMN" tab, and I'm told that this is no longer allowed due to limitations of WordPress.

I'm not a complete dummy, and I can see
Quote:
Originally Posted by Juggledad
you have to put the code in index.php due to the wordpress restrictions. (search the forums if you want more about that)
But that was from 2009. If it's still true, why does the theme options "Add new WIDGET AREAS" page still have obsolete info?

One of the reasons I chose Atahualpa was its ability to retain customizations in the database, so that they are not lost with every theme upgrade. Editing individual files is NOT an option.

So, is there a solution for those of us who need a custom theme area, that does not require manual edits to theme files?

Thanks.
Jack

Last edited by PainFreeComputing; Dec 1, 2012 at 01:43 PM.
  #9  
Old Dec 1, 2012, 12:44 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That is an error in the documentation on the page. While it once was true and The LOOP' was part of the theme options, a WordPress requirement (back in early 2011) that themes are not allowed to use the php 'eval()' function caused the loss of that ability.

Since then, if you want a new widget area in the center area, you have to edit 'index.php'
I will notify the developer and change the documentation for the next release.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Dec 1, 2012, 01:47 PM
PainFreeComputing
 
20 posts · Dec 2009
Quote:
Originally Posted by juggledad
That is an error in the documentation on the page. While it once was true and The LOOP' was part of the theme options, a WordPress requirement (back in early 2011) that themes are not allowed to use the php 'eval()' function caused the loss of that ability.

Since then, if you want a new widget area in the center area, you have to edit 'index.php'
I will notify the developer and change the documentation for the next release.
Thanks, that would be great.

So now that that's confirmed, does anybody know of a plugin that will accomplish this? I'm trying Widget Shortcode, but it does not seem to work at all. I'll follow up on that via its support forum.

Jack

Bookmarks

Tags
center column, widget



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Added center column widget showing in Widget area, but not displaying on pos tsheridan Sidebars & Widgets 2 Dec 22, 2011 10:50 AM
center column widget areas rsconsult Sidebars & Widgets 9 Nov 16, 2011 02:50 PM
I have CTC widget in my sidebar. Can I <center> the contents in the column. markzip Sidebars & Widgets 3 Nov 11, 2011 05:29 AM
How to create rollover images for photos in center column? kippiper Plugins & Atahualpa 0 Nov 12, 2009 05:26 PM


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


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