Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kbrown

    (@kbrown)

    I was able to figure this out with help from https://developer.www.ads-software.com/themes/functionality/sidebars/

    I created sidebar-affiliate.php with this code from sidebar.php

    <?php $layout = hu_get_layout_class(); ?>
    <?php if ( $layout != 'col-1c'): ?>
    
    	<div class="sidebar s1 collapsed" data-position="<?php echo hu_get_sidebar_position( 's1' ); ?>" data-layout="<?php echo $layout ?>" data-sb-id="s1">
    
    		<button class="sidebar-toggle" title="<?php _e('Expand Sidebar','hueman'); ?>"><i class="fas icon-sidebar-toggle"></i></button>
    
            <div class="sidebar-content">
                <?php dynamic_sidebar( 'affiliate-sidebar' ); ?>
            </div><!--/.sidebar-content-->
    
    	</div><!--/.sidebar-->
    
    	<?php
        if ( in_array( $layout, array('col-3cm', 'col-3cl', 'col-3cr' ) ) ) {
          get_template_part('sidebar-2');
        }
    	?>
    
    <?php endif; ?>

    And added <?php dynamic_sidebar( ‘affiliate-sidebar’ ); ?>

    And in my page template I replaced <?php get_sidebar(); ?> with <?php get_sidebar( ‘affiliate’ ); ?>

    I’m having the same issue. I deactivated all plugins and it still doesn’t work. I’m trying to get the main blog page to be 1 column and everything else 2 column. It only works if I set Columns layout for : Home … but I don’t need it for the hp.. just the blog frontpage

Viewing 2 replies - 1 through 2 (of 2 total)