Home Forums WoodMart – Premium Template Sidebar issue and title with Directory pro

This topic contains 32 replies, has 3 voices, and was last updated by Elise Noromit Elise Noromit 1 week, 4 days ago.

Viewing 30 posts - 1 through 30 (of 33 total)
  • Author
    Posts
  • #333468

    FillHK
    Customer

    Hi,

    Have an issue with the sidebar and title.

    That plugin allows choosing which page will be used for category view and tags etc.
    I have those pages created but sidebar settings don’t work at all.

    Private Content Hidden
    #333515

    Hello,

    If you have installed such a plugin, please disable it.

    1. You can create as many sidebars as you wish in the Dashboard > Sidebars.

    2. You can edit each page and choose which sidebar to show, what should be the width and position.

    Find our documentation tutorial about this here: https://xtemos.com/docs/woodmart/widgets/

    If you configure the same and it does not work, insert the credentials into the Private content below the message area and specify which page and which sidebar you want.

    Best Regards

    #333597

    FillHK
    Customer

    It doesn’t work.

    Private Content Hidden
    #333825

    Hello,

    Please, confirm the permission for plugins deactivation, switching to the parent theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.

    Best Regards

    #333886

    FillHK
    Customer

    Yes let’s do it

    Private Content Hidden
    #334311

    Hello,

    You have disabled the page title in the Metabox:
    https://prnt.sc/20s9lj5 sidebar is set to be left: https://prnt.sc/20s9bud

    If you have any questions please feel free to contact us.

    Best Regards

    #334312

    FillHK
    Customer

    Hm, could you tell me which page is it? Because for categories and signle listing there another pages and they are still not manageble.

    Private Content Hidden
    #334313

    FillHK
    Customer

    I have checked it now and ..

    Private Content Hidden
    #334314

    FillHK
    Customer
    #334323

    FillHK
    Customer

    Chech it

    Private Content Hidden
    Attachments:
    You must be logged in to view attached files.
    #334329

    FillHK
    Customer

    They mention it’s supported.
    Added into file, but it doesnt

    Private Content Hidden
    #334377

    Hello,

    Here is the page where you can see: https://neatho.me/ru/services-ru/category/online-consultancy-ru/

    This custom post type does not relate to the WoodMart that is why WoodMart settings are not available for this page, please contact the plugin support and find out how to configure the category page as per your needs

    Alternatively, you can replace the plugin with WoodMart Portfolio functionality.

    If you have any questions please feel free to contact us.

    Best Regards

    #334427

    FillHK
    Customer

    It is working fine with default template.
    The same settings, all that is needed is just to choose a page, that all.
    Sidebar settings, title settings coming from this page.

    Private Content Hidden
    #334481

    Hello,

    Please try to add this code to the functions.php of the child theme:

    function woodmart_custom_page_title( $title_class, $style, $title_tag, $breadcrumbs, $page_title ) {
    	if ( is_post_type_archive( 'services_dir_ltg' ) || is_singular( 'services_dir_ltg' ) || is_tax( 'services_dir_cat' ) ) :
    		?>
    		<div class="page-title <?php echo esc_attr( $title_class ); ?>" style="<?php echo esc_attr( $style ); ?>">
    			<div class="container">
    				<?php if ( woodmart_woocommerce_installed() && ( is_cart() || is_checkout() ) ) : ?>
    					<?php woodmart_checkout_steps(); ?>
    				<?php else : ?>
    
    				<?php if ( $page_title ) : ?>
    					<<?php echo esc_attr( $title_tag ); ?> class="entry-title title"><?php woocommerce_page_title(); ?></<?php echo esc_attr( $title_tag ); ?>><?php endif; ?>
    
    					<?php do_action( 'woodmart_page_title_after_title' ); ?>
    
    					<?php if ( $breadcrumbs ) : ?>
    						<?php woodmart_current_breadcrumbs( 'pages' ); ?>
    					<?php endif; ?>
    				<?php endif ?>
    			</div>
    		</div>
    		<?php
    		return;
    	endif;
    }
    add_action( 'woodmart_page_title', 'woodmart_custom_page_title', 10, 5 );

    Best Regards

    #334487

    FillHK
    Customer

    Code has been added – nothing changed

    #334505

    Hello,

    Please insert the code completely: https://prnt.sc/20w2l0d and https://prnt.sc/20w2n7f

    Best Regards

    #334512

    FillHK
    Customer

    Nice, one part is done

    Private Content Hidden
    #334516

    FillHK
    Customer

    And one more thing

    Private Content Hidden
    #334520

    Hello,

    Please change the sidebar layout in the Theme Settings > General layout: https://prnt.sc/20vt4gr

    Best Regards

    #334525

    P.S. Please find the line in the code provided above:

    if ( is_archive( 'services_dir_ltg' ) ) :

    and replace with this one:

    if ( is_post_type_archive( 'services_dir_ltg' ) || is_singular( 'services_dir_ltg' ) || is_tax( 'services_dir_cat' ) ) :

    Best Regards

    #334529

    FillHK
    Customer

    Now it works.
    So we have fixed titles.

    What about sidebars?

    #334531

    Hello,

    Please change the sidebar layout in the Theme Settings > General layout: https://prnt.sc/20vt4gr

    Best Regards

    #334532

    FillHK
    Customer

    Yes, but it will be changes for blogs as well and most important:
    * I need to use another widget area. Not a default one.

    #334548

    Hello,

    Please try to add this code to the functions.php of the child theme:

    add_filter(
    	'woodmart_get_page_layout',
    	function( $layout ) {
    		if ( is_post_type_archive( 'services_dir_ltg' ) || is_singular( 'services_dir_ltg' ) || is_tax( 'services_dir_cat' ) ) {
    			$layout = 'sidebar-right';
    		}
    		return $layout;
    	}
    );
    
    add_filter(
    	'woodmart_get_sidebar_name',
    	function( $name ) {
    		if ( is_post_type_archive( 'services_dir_ltg' ) || is_singular( 'services_dir_ltg' ) || is_tax( 'services_dir_cat' ) ) {
    			$name = 'sidebar-10378';
    		}
    
    		return $name;
    	}
    );

    Best Regards

    #334554

    FillHK
    Customer

    Great, at least we have a solution for now.
    One thing related to the title.
    On a single page listing i see general woocommerce title, not a listing title:
    https://neatho.me/ru/services-ru/listing/konsultaczii-i-rekomendaczii/
    Correct title is bellow original

    #334557

    Please find the line in the code provided above:

    <?php woocommerce_page_title(); ?>

    and replace with this one:

    <?php echo get_the_title(); ?>

    Best Regards

    #334558

    FillHK
    Customer

    Great job folks.
    It works now.

    Thank you for your help!

    #334559

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

    #334645

    FillHK
    Customer

    Code provided duplicated title on woocommerce : https://neatho.me/ru/catalog/

    Private Content Hidden
    #334757

    FillHK
    Customer

    So this function is not working, even if I place: if ( is_archive( 'dhgdkhdajkdhjkash' ) ) :

    I see extra titles on the other pages and taxanomies.

Viewing 30 posts - 1 through 30 (of 33 total)

The topic ‘Sidebar issue and title with Directory pro’ is closed to new replies.