header widget problems...
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 |
did you go to the 'New Widget area' and delete the widget?
|
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 :) |
go read the text on the ato->start page
|
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 |
you are trying to put php code in the header configuration
|
where would I put it my friend ?
|
in index.php
|
Where would I put it ?
|
as in... where in the index.php
again, my thanks in advance. |
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"> HTML Code:
#header_widget_area {display: none;} 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. |
where do i add the URL for the header image ?
|
you add a text widget to the widget area and put an <img...> in that points to your image
|
1 Attachment(s)
as a background ?
I'm looking to have a background image with a table on top of that (text, button and video) see attached :-) |
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
|
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 |
|
I was hoping for some code and I can change the numbers etc.
|
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? |
All times are GMT -6. The time now is 04:08 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.