Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

add widget between header image and logo area


  #1  
Old Oct 12, 2011, 08:12 PM
d124c0
 
4 posts · Oct 2011
The widget goes above the logo area everytime. I have the widget area code replacing the menu.

Then in the atahualpa options for header I have it %logo %pages %image

It still goes to the top. any suggestions?

Last edited by d124c0; Oct 12, 2011 at 08:25 PM.
  #2  
Old Oct 12, 2011, 09:05 PM
juggledad's Avatar
juggledad
 
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Where did you put he widget code?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 13, 2011, 04:41 AM
d124c0
 
4 posts · Oct 2011
i put it in replace of the %pages menu for the old style and I checked to make sure it is blanked in the wordpress menu manager.

It now looks like this.
Code:
		// Old custom Atahualpa menu system:		
		else 
		{
		echo '<table><td><tr>';
		bfa_widget_area('name=Menu Widget Only');
		echo '</td></tr></table>';
		}
I am not going to be using the old menu system anyways that is why I didn't go through the trouble of using if function exist and such.
  #4  
Old Oct 13, 2011, 05:19 AM
juggledad's Avatar
juggledad
 
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
did you put this in an option or edit the theme code? if you edited the code, which module?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Oct 13, 2011, 05:58 AM
d124c0
 
4 posts · Oct 2011
I edited the theme code. In bfa_header_config.php

full code for the part I editted is the %pages check

Code:
// Page Menu Bar
	if ( strpos($header_items,'%pages') !== FALSE OR strpos($header_items,'%page-center') !== FALSE 
	OR strpos($header_items,'%page-right') !== FALSE ) {



		// Since 3.5.2: New WP 3 menu system:
		if ( function_exists('wp_nav_menu') AND has_nav_menu('menu1') ) 
		{
			if ( strpos($header_items,'%pages') !== FALSE ) 
				$alignment = "left";
			elseif ( strpos($header_items,'%page-center') !== FALSE ) 
				$alignment = "center";
			else 
				$alignment = "right";
			$page_menu_bar = bfa_new_wp3_menus("menu1", $alignment );
		} 

		// Old custom Atahualpa menu system:		
		else 
		{
		echo '<table><td><tr>';
		bfa_widget_area('name=Menu Widget Only');
		echo '</td></tr></table>';
		}


	}
  #6  
Old Oct 13, 2011, 07:34 AM
juggledad's Avatar
juggledad
 
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You don't need to edit the code, you can put the code to create a new widget area right in the 'Configure Header Area' option. It is one place you can do it because the theme knows enough to parse the php for that function.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Oct 13, 2011, 09:57 AM
d124c0
 
4 posts · Oct 2011
ohhh I just remember hearing php couldnt be placed in options now. So I assumed everywhere.


EDIT:
ok so i added this to the header options
%logo <?PHP bfa_widget_area('name=Menu Widget Only'); if(is_home()){ ?> %image <?PHP }?>

The widget doesnt show up at all now. any suggestions?

Last edited by d124c0; Oct 13, 2011 at 10:01 AM.
  #8  
Old Oct 13, 2011, 12:44 PM
juggledad's Avatar
juggledad
 
23,755 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you can't use the is_home, just the new widget code. so this won't work
HTML Code:
%logo <?PHP bfa_widget_area('name=Menu Widget Only'); if(is_home()){ ?> %image <?PHP }?>
but this will
HTML Code:
%logo <?PHP bfa_widget_area('name=Menu Widget Only'); ?> %image
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't get rid of text in logo image area in header area unadoyle Header configuration & styling 2 Sep 2, 2010 04:43 AM
Positioning widget onto logo area creates extra spacing in the overall header area cab262 Header configuration & styling 1 May 20, 2010 01:14 PM
header image as background image for logo area soni Atahualpa 3 Wordpress theme 8 Apr 2, 2010 03:05 AM
How to Switch the Logo Area and Header Image tim5046 Header configuration & styling 1 Jun 2, 2009 12:43 PM


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


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