Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

Sidebar/Footer-problem with Atahualpa and WooCommerce


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Oct 11, 2011, 08:51 AM
owc
 
19 posts · May 2011
I have a problem to show a proper category-view of my WooCommerce-products with Atahualpa. When I switch to category- or tag-view, the right inner sidebar disappears and a "standard" sidebar flows under the main content, the footer is also "minimized" and the place where the sidebar was before is left blank.

So I tried to manage the problem, with using the index.php of ATA to change the woocommerce\templates\product_taxonomy.php from:

PHP Code:
<?php get_header('shop'); ?>

<?php do_action('woocommerce_before_main_content'); // <div id="container"><div id="content" role="main"> ?>

    <?php $term get_term_by'slug'get_query_var($wp_query->query_vars['taxonomy']), $wp_query->query_vars['taxonomy']); ?>
            
    <h1 class="page-title"><?php echo wptexturize($term->name); ?></h1>
        
    <?php echo wpautop(wptexturize($term->description)); ?>
    
    <?php woocommerce_get_template_part'loop''shop' ); ?>
    
    <?php do_action('woocommerce_pagination'); ?>

<?php do_action('woocommerce_after_main_content'); // </div></div> ?>

<?php do_action('woocommerce_sidebar'); ?>

<?php get_footer('shop'); ?>
to this:

PHP Code:
<?php # error_reporting(-1);
list($bfa_ata$cols$left_col$left_col2$right_col$right_col2$bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header('shop');
extract($bfa_ata); 

?>

<?php do_action('woocommerce_before_main_content'); ?>

    <?php $term get_term_by'slug'get_query_var($wp_query->query_vars['taxonomy']), $wp_query->query_vars['taxonomy']); ?>
            
    <h1 class="page-title"><?php echo wptexturize($term->name); ?></h1>
        
    <?php echo wpautop(wptexturize($term->description)); ?>
    
    <?php woocommerce_get_template_part'loop''shop' ); ?>
    
    <?php do_action('woocommerce_pagination'); ?>

<?php do_action('woocommerce_after_main_content'); ?>

<?php get_footer('shop'); ?>
At least the standard sidebar vanishes, but the footer is still colspan="1" instead of colspan="2".

How do I manage to show the footer in the right proportion? And how to implement the right inner sidebar?
  #2  
Old Oct 11, 2011, 09:02 AM
juggledad's Avatar
juggledad
 
22,368 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Atahualpa sets a global variable '$cols'. I would guess that WooCommerce is using that same variable and not resetting it to it's existing value. You should contact the plugin author about this.
__________________
"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 26, 2011, 09:00 AM
owc
 
19 posts · May 2011
I think you are right. :-(

That's how the outputted HTML with Firebug looks like before category-view of WooCommerce:

HTML Code:
<div id="container">
	<table id="layout" cellspacing="0" cellpadding="0" border="0">
		<colgroup>
			<col class="coltwo">
			<col class="colthree-inner">
		</colgroup>
		<tbody>
			<tr>
			[...]
			<tr id="bodyrow">
				<td id="middle">
				[...]
				<td id="right-inner">
				[...]
			</tr>
			<tr>
				<td id="footer" colspan="2">
				[...]
			</tr>
		</tbody>
	</table>
...and in category-view of WooCommerce I get this:

HTML Code:
<div id="container">
	<table id="layout" cellspacing="0" cellpadding="0" border="0">
		<colgroup>
			<col class="coltwo">
			<col class="colthree-inner">
		</colgroup>
		<tbody>
			<tr>
			[...]
			<tr id="bodyrow">
				<td id="middle">
				[...]				
			</tr>
			<tr>
				<td id="footer" colspan="1">
				[...]
			</tr>
		</tbody>
	</table>
As you can see above, the "right-inner" is missing and the colspan of the "footer" changed from two to one. I also experienced, that some of the widget-areas seem to have changed their position/size.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing footer with default footer? (WP polls problem) moomum Plugins & Atahualpa 9 Sep 8, 2010 11:10 AM
[SOLVED] HELP! Comments, Comment Footer, Footer, SideBar GONE! frgvn Comments, trackbacks & pings 1 Feb 28, 2010 03:58 AM
[SOLVED] Footer shows even though Atahualpa footer is empty tinroofrusted Post-Kicker, -Byline & -Footer 1 Feb 19, 2010 10:22 AM
[SOLVED] ATAHUALPA 3.3.3 Problem with Footer message maka222 Atahualpa 3 Wordpress theme 7 Feb 18, 2010 04:02 PM
[SOLVED] After plugin install, footer is in right sidebar and right sidebar is on lef miscbytes Forum How-To 2 Jun 5, 2009 07:34 AM


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


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