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 » Header configuration & styling »

header widget problems...


  #1  
Old Feb 9, 2012, 01:08 PM
abdell
 
21 posts · Jul 2011
Hi everyone,

I'm getting really frustrated with myself... I added a widget to the header area yesterday called:
"center column widget"

Then I removed the code and I refreshed a gazillion times (!) but it's still there.

I want to add another widget instead, but this one won't go and the other one won't come up...

now I've just got the configure header area:

%image %pages %cats

... AND IT'S STILL SHOWING UP.

No cache plugins... even deactivated the original "Linkable..." plugin that I used with that widget yesterday... still no cigar.

Help really really needed.

Thanks everyone
  #2  
Old Feb 9, 2012, 02:05 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
did you go to the 'New Widget area' and delete the widget?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 9, 2012, 02:20 PM
abdell
 
21 posts · Jul 2011
ha ha ha... no I hadn't. That worked !! thank you. so simple, but it got me sooo worked up.

If you don't mind, can I ask you another question, I put the following css in the CSS inserts:

#header-image-container{
position:relative;
margin:0;
padding:0;
height:150px;
background: url('https://ipersonalenrichment.com/kill-bill-d.jpg') center center no-repeat;
}

/* Styles to be applied to our new widget area container */
#header-widget-area-container{
width:1000px;
float:center;
}

and the following code in the configure header area:

<div id="header-image-container" class="header-image-container">
<div class="opacityleft">&nbsp;</div>
<div class="opacityright">&nbsp;</div>
<div id="header-widget-area-container">
<?php if ( is_front_page( ) ) {bfa_widget_area('name=Header Widget Area');} ?>
</div>
</div>
%pages %cats

No new widgets are appearing and I want to double check that it should work before having another tantrum.

It's code I got from this post:
http://royhair.com/blog/2011/08/08/h...-in-atahualpa/

thanks in advance
  #4  
Old Feb 9, 2012, 03:39 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
go read the text on the ato->start page
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Feb 9, 2012, 03:54 PM
abdell
 
21 posts · Jul 2011
this ?

PHP code cannot be put into the textareas in the theme options anymore.

or this:

Donate $20 or more to become a Gold or Diamond member for additonal benefits such as extra styles and tutorials and preferred attention from developers and moderators.



I don't mean to be cheeky, it's just that both of those could apply to me and I don't know which one will help me get my issue resolved.

thanks
  #6  
Old Feb 9, 2012, 04:01 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you are trying to put php code in the header configuration
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Feb 9, 2012, 04:20 PM
abdell
 
21 posts · Jul 2011
where would I put it my friend ?
  #8  
Old Feb 9, 2012, 05:03 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
in index.php
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Feb 9, 2012, 05:14 PM
abdell
 
21 posts · Jul 2011
Where would I put it ?
  #10  
Old Feb 9, 2012, 05:15 PM
abdell
 
21 posts · Jul 2011
as in... where in the index.php

again, my thanks in advance.
  #11  
Old Feb 9, 2012, 07:22 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Actually the best way to do this is the following. Add this to the 'Configure Header Area' option
HTML Code:
<div id="header-image-container" class="header-image-container">
<div class="opacityleft">&nbsp;</div>
<div class="opacityright">&nbsp;</div>
<?php bfa_widget_area('name=Header Widget Area'); ?>
</div> 
%pages %cats
and add this to the CSS Inserts
HTML Code:
#header_widget_area {display: none;}
body.home #header_widget_area {display:block;}
go and view the site then go to the widget area and add the widget.

What this does is create the widget area (yes I know the start says you can't use php, and you can't use anything BUT the bfa_widget_area() function since the theme can parse it - but other php is not allowed)

The first line of CSS says 'don't display this widget area'
the second line says 'if this is the HOME page, then display this widget area.

it's using CSS as your conditional.
__________________
"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; Feb 11, 2012 at 06:20 AM.
  #12  
Old Feb 11, 2012, 06:08 AM
abdell
 
21 posts · Jul 2011
where do i add the URL for the header image ?
  #13  
Old Feb 11, 2012, 07:03 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you add a text widget to the widget area and put an <img...> in that points to your image
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #14  
Old Feb 11, 2012, 07:17 AM
abdell
 
21 posts · Jul 2011
as a background ?

I'm looking to have a background image with a table on top of that (text, button and video)

see attached :-)
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2012-02-09 at 03.13.15.jpg
Views:	637
Size:	73.9 KB
ID:	1768  
  #15  
Old Feb 11, 2012, 08:03 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Sorry, I thought you wanted an image in the widget.Just use your original CSS to assign the image as a background to the header-image-container
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #16  
Old Feb 11, 2012, 12:43 PM
abdell
 
21 posts · Jul 2011
How do I align the widget area so that it's bottom centre - or even better if I can control it through CSS?
when i tried, it didn't work.

Also, the header changes site wide and not just for the home page. Was hoping that the change would only be for the homepage. Anyway to make this header image (homepage: 500px high, other pages: 150px high)

much much appreciated
  #17  
Old Feb 11, 2012, 02:02 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
You should probably check out this section at w3schools.com or the 2nd post in this thread.
__________________
~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.
  #18  
Old Feb 11, 2012, 06:07 PM
abdell
 
21 posts · Jul 2011
I was hoping for some code and I can change the numbers etc.
  #19  
Old Feb 11, 2012, 06:13 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you look at the documentation for teh new widget areas, there is an option for aligning the widget within it.
also, is there a particular reasoh you are using 'https' to point to the image?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Widget Problems Sidebar Addlink New Versions, & Updating 4 Feb 9, 2011 10:26 AM
Permalink & Text Widget problems laelgray Forum How-To 1 Jan 30, 2010 12:45 PM
Widget updating problems anchor Sidebars & Widgets 1 Jul 29, 2009 05:59 AM


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


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