|
#1
Feb 9, 2012, 01:08 PM
|
|
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
Feb 9, 2012, 02:05 PM
|
|
|
|
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
Feb 9, 2012, 02:20 PM
|
|
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"> </div>
<div class="opacityright"> </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
Feb 9, 2012, 03:39 PM
|
|
|
|
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
Feb 9, 2012, 03:54 PM
|
|
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
Feb 9, 2012, 04:01 PM
|
|
|
|
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
Feb 9, 2012, 04:20 PM
|
|
where would I put it my friend ?
|
#8
Feb 9, 2012, 05:03 PM
|
|
|
|
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
Feb 9, 2012, 05:14 PM
|
|
Where would I put it ?
|
#10
Feb 9, 2012, 05:15 PM
|
|
as in... where in the index.php
again, my thanks in advance.
|
#11
Feb 9, 2012, 07:22 PM
|
|
|
|
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"> </div>
<div class="opacityright"> </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
Feb 11, 2012, 06:08 AM
|
|
where do i add the URL for the header image ?
|
#13
Feb 11, 2012, 07:03 AM
|
|
|
|
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
Feb 11, 2012, 07:17 AM
|
|
as a background ?
I'm looking to have a background image with a table on top of that (text, button and video)
see attached :-)
|
#15
Feb 11, 2012, 08:03 AM
|
|
|
|
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
Feb 11, 2012, 12:43 PM
|
|
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
Feb 11, 2012, 02:02 PM
|
|
|
|
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
Feb 11, 2012, 06:07 PM
|
|
I was hoping for some code and I can change the numbers etc.
|
#19
Feb 11, 2012, 06:13 PM
|
|
|
|
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
|
|