Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] Widget into a page AND how to turn them on??? (http://forum.bytesforall.com/showthread.php?t=17903)

juliejulie Jun 28, 2012 12:46 PM

[SOLVED] Widget into a page AND how to turn them on???
 
Hi,

Loving the Atahualpa theme! But, in the widget admin page, I have widget areas 1-4 listed as options, but when I put something in those boxes, it doesn't show up anywhere on my website. How do I add those areas?

Also, is it possible to put a widget/plugin on a specific page? Is there some easy way to make this happen (I don't know php). What about adding to the center column?

I read through some of the posts and they were either over my head or I didn't find a simple answer to the above....

Thanks in advance!

lmilesw Jun 28, 2012 01:32 PM

Where did you put the new widget area code? As for having them on particular pages you might use a plugin such as "Display Widgets" and set the widget in question to display on that page.

I have seen plugins that allow you to put widgets on pages but putting one in the center column would mean editing a theme file.

juliejulie Jun 28, 2012 04:30 PM

Thank you for the response! Will check out those plugins.

I didn't know I had to put widget code anywhere - is there an easy way to show me how? Apologies if this is answered elsewhere....I didn't come across it in my search.

juliejulie Jun 28, 2012 04:39 PM

I am already using dynamic widgets plugin so I can modify the widgets in the sidebar by page/post.

I want to do something like have the center column have a static paragraph then have the widget just below it listing recent posts in a particular category.

I have a work-around now where I have put an inner side bar so I have a text widget above the recent posts widget, but the formatting is not uniform with my website overall and per another post, I'm having troubles eliminating that sidebar from my Business Directory listings pages (I would have to do it one by one for thousands of listings and every new listing that is added, modify that by hand too).

juggledad Jun 28, 2012 06:41 PM

Quote:

is it possible to put a widget/plugin on a specific page?
yes, put it in index.php and wrap it in a php IF statement checking to see if it is on the correct page. for example
HTML Code:

<?php if (is_page( 9 )) { bfa_widget_area('name=My new widget area'); };  ?>

siefert Sep 18, 2012 09:55 AM

I am also having trouble getting a widget area to show up in the center column on my static front page. I am using the latest version of Atahualpa and Wordpress.

In the option Appearance->Widgets, I see the center column loop widget area. I have added a widget there, Recent posts, and used Dynamic Widgets to assign it to the front page. But it doesn't show up.

Am i misunderstanding how to do this?
Am I missing another step?

siefert Sep 18, 2012 09:55 AM

Sorry, I should have included by website URL..
http://pineknotfarmandlab.com

juggledad Sep 18, 2012 10:44 AM

does it show if you take out the dynamic widget condition?
what condition do you have?
do you know the differenct between the 'home' page and the 'front page'? (Might want to do a google search

siefert Sep 18, 2012 09:27 PM

I decided to try the workaround that Julie julie had, using a inner sidebar. But now the widget in the center column is showing up although I deleted it.

I think I know the difference between the home page and the front page.

lmilesw Sep 18, 2012 09:52 PM

Did you delete both the code and go to the Add new widget area section of the theme options and delete the widget area from there as well?

stevinoz Oct 9, 2012 06:35 AM

Quote:

Originally Posted by lmilesw (Post 87022)
Where did you put the new widget area code? As for having them on particular pages you might use a plugin such as "Display Widgets" and set the widget in question to display on that page.

I have seen plugins that allow you to put widgets on pages but putting one in the center column would mean editing a theme file.

this is a great little plugin using it in WordPress 3.4.2 with Atahualpa Version 3.7.9 but can't figure where to adjust the gap between the widget and the menu bar, my build is here http://stevenpotter.com.au/test/ any pointers?

juggledad Oct 9, 2012 06:47 AM

the gap is caused by the 'height=...' you put in your table rows

stevinoz Oct 9, 2012 07:29 AM

Quote:

Originally Posted by juggledad (Post 91094)
the gap is caused by the 'height=...' you put in your table rows

but it seems no matter how I change it the gap does not close

lmilesw Oct 9, 2012 07:47 AM

Try removing the height for the table.

juggledad Oct 9, 2012 08:02 AM

Since you have a height on the TD's the height on all of them needs to be the same

stevinoz Oct 9, 2012 08:41 AM

if I remove the height its way small I now have all td's same hight but have realised it's the span pos absolute that's not behaving itself <span style="position: absolute; left: 12; top: 12; z-index: -1"><img border="0" src="images/img1.png" width="314" height="319"></span> seems to ignore (almost) any number I put in for top:

stevinoz Oct 9, 2012 09:18 AM

Quote:

Originally Posted by stevinoz (Post 91105)
<span style="position: absolute; left: 12; top: 12; z-index: -1"><img border="0" src="images/img1.png" width="314" height="319"></span>

maybe there is a better place to put this code but so it works on the front page only at the moment I have removed it, any suggestions?

juggledad Oct 9, 2012 10:02 AM

I didn't say to remove it, just make it smaller - FireBug in firefox is a wonderful tool for testing things like this. You colud remove it then use CSS to style it with the benefit of having one place to change the height of them all.

stevinoz Oct 9, 2012 05:21 PM

doesn't make any difference what size I make the table there is still the gap between the menu and the picture I use firebug as well but it doesn't really show the settings for why the picture is making the gap, I'll put it back and made the table 19px smaller(300), see if you can see the picture problem.

juggledad Oct 9, 2012 05:38 PM

in your table you have a <img...> what settings do you have for that?
you also have some <p>'s and there is CSS effecting them
and why do you have a height on the table?

stevinoz Oct 9, 2012 05:59 PM

that's the pic that is lower than the top of the table with code <span style="position: absolute; left: 12; top: 12; z-index: -1"><img border="0" src="images/img1.png" width="314" height="319"></span> if I change top: 12; to 0 then it jumps to the top of the page, I'll remove the <p> tag and see what happens.

stevinoz Oct 9, 2012 06:04 PM

no that made it even lower

juggledad Oct 9, 2012 06:54 PM

why do you have a height on the table?

stevinoz Oct 9, 2012 07:22 PM

well, needed the right hight for the whole area but simply move that hight to the inside table and hey look at that it worked! That was amazing and for me somewhat unexpected, is that happening because its a wordpress thing, a table thing, it still has the same hight just in a different place, or is this a learnt experience thing?
A Big Thanks by the way.


All times are GMT -6. The time now is 09:46 PM.

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