• Resolved m1stake

    (@m1stake)


    For some reason, brand pages ruin the layout of the site. The category pages, as I understand it, work on the same template, and work fine.

    example https://accesstrade.ru/product-category/bytovaya-tehnika-elektronika/batarejki/aaa/

    But with the brands, for some reason, the problem occurs.

    https://accesstrade.ru/brands/microcell/

    And template is here

    <div id="content" class="site-content container py-5 mt-4">
    	<div id="primary" class="content-area">
    
    		<!-- Hook to add something nice -->
    		<?php bs_after_primary(); ?>
    
    		<main id="main" class="site-main">
    
    		    <!-- Breadcrumb -->
    		    <?php woocommerce_breadcrumb(); ?>
    		    <div class="row">
    
    				<!-- woo content -->
    				<div class="col <?php if ( is_product() ) 
    				{ echo 'order-first';} 
    				else 
    				{echo 'order-last';} 
    				?>
    				">
    					<?php woocommerce_content(); ?>
    				</div>
    				
    				<!-- sidebar -->
    				<?php
    				if ( is_product() ) {
    				get_sidebar();
    				}
    				else {
    				?>
    				<div class="col-md-4 col-xxl-3">
    					<aside id="sidebar" class="widget-area filterbar bg-secondary archive-bar">
    						<?php dynamic_sidebar( 'new-sidebar-widget' ); ?>
    					</aside>
    				</div>
    				<?php
    				}
    				?>
    
    			<!-- row -->
    			</div>
    		</main><!-- #main -->
    	</div><!-- #primary -->
    </div><!-- #content -->
    • This topic was modified 3 years, 4 months ago by m1stake.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter m1stake

    (@m1stake)

    Oh, i found some div in my orderby.php, but it only affects the brands page. Is there any way to check if the page is a brand page? Something like is_product() ?

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    It is products archive page similar as category.

    Regards,
    Oleg

    Thread Starter m1stake

    (@m1stake)

    Ok, i used code like this

    $Path=$_SERVER['REQUEST_URI'];
    if (strpos($Path, '/brands/') !== false) ...
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Brand pages breakes the template’ is closed to new replies.