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 »

[SOLVED] Help Transferring HTML/CSS Insert Coding to Custom Widgets


  #1  
Old Sep 27, 2009, 09:22 AM
rnimchuk
 
6 posts · Sep 2009
St. Paul, Minnesota - USA
I am trying to condense white space in the header section. Both the %image and %pages items in the Configure Header Area section take up the entire width of the page leaving dead space in the left or right columns before the widget content shows up. You can see what I mean at www.eWrittenWord.com. I thought I would try to work around this using custom widgets in the header area.

To start, I have added this code in the Configure Header Area to create three custom widgets:
%image %bar2 %pages
<table width=100%><tr>
<td width=4></td>
<td align=left; width=200px><?php bfa_widget_area('name=Left Header Widget'); ?></td>
<td valign=bottom><?php bfa_widget_area('name=Center Header Widget'); ?></td>
<td align=right; align=top; width=213px><?php bfa_widget_area('name=Right Header Widget'); ?></td>
</tr></table>
I know I should be able to create 3 widgets in a single line of code, but for a no-coder, I'm at a loss for the proper coding. But that is not my question. I now want to replicate the CSS coding I used to generate my menu bar and insert it into a PHP Code Text Widget (Center Header Widget). This should allow me to place widgets in the other two holder and have them at the same vertical starting place of my menu bar. Here is the coding I am using in the CSS Insert.
ul.rMenu-hor li.current_page_item a:link,
ul.rMenu-hor li.current_page_item a:visited,
ul.rMenu-hor li.current_page_item a:active,
ul.rMenu-hor li.current_page_item a:hover a{
color: #FFFFFF !Important
}

div#menu1 ul#rmenu2 li.current_page_item a{
font-weight:bold;
background-image:url(http://www.ewrittenword.com/Image_Li...nuButton01.png) !important
}

ul#rmenu2 {
padding-left: 235px;
}

div#menu1 ul#rmenu2 {
background:none;
}

div#menu1 ul#rmenu2 li {
margin-right:10px;
}

div#menu1 ul#rmenu2 li a:hover {
background-color:transparent;
}

div#menu1 ul#rmenu2 li ul a:hover {
background-color: #AAC95F;
}

div#menu1 ul#rmenu2 li a,
div#menu1 ul#rmenu2 li.rMenu-expand {
font-weight:bold;
background-image:url(http://www.ewrittenword.com/Image_Li...nuButton02.png) !important
}
I am using WordPress 2.8.4 and Atahualpa 3.4.3. Thank you in advance for any help offered.

Last edited by rnimchuk; Sep 28, 2009 at 05:21 AM. Reason: Solved
  #2  
Old Sep 28, 2009, 05:18 AM
rnimchuk
 
6 posts · Sep 2009
St. Paul, Minnesota - USA
Sometimes I try too hard. The simple solutions always work best. I just needed to add %pages to one of the table cells.
%image %bar2
<table width=100%><tr>
<td width=4></td>
<td align=left; width=200px><?php bfa_widget_area('name=Left Header Widget'); ?></td>
<td valign=top>%pages</td>
<td align=right; width=213px><?php bfa_widget_area('name=Right Header Widget'); ?></td>
</tr></table>
Hope this helps others.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
css insert not showing individual posts bushtool New Versions, & Updating 9 Jul 15, 2009 06:54 PM
Custom HTML instead of header picture? robertomueller Header configuration & styling 2 Jul 13, 2009 10:44 AM
[SOLVED] Problem with code in HTML/CSS Inserts xavison Post-Kicker, -Byline & -Footer 4 Jun 26, 2009 11:59 AM
Possible to make css/html inserts box bigger? BigG Atahualpa 3 Wordpress theme 2 Apr 28, 2009 12:07 PM
504 Gateway Time-Out saving update to HTML Insert:Header JEG Page & Category Menu Bars 1 Apr 20, 2009 10:17 PM


All times are GMT -6. The time now is 06:56 AM.


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