Home Forums WoodMart support forum Sidebar issue and title with Directory pro

Sidebar issue and title with Directory pro

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

    FillHK
    Participant

    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.

    #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
    Participant

    It doesn’t work.

    #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
    Participant

    Yes let’s do it

    #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
    Participant

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

    #334313

    FillHK
    Participant

    I have checked it now and ..

    #334314

    FillHK
    Participant
    #334323

    FillHK
    Participant

    Chech it

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

    FillHK
    Participant

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

    #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
    Participant

    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.

    #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
    Participant

    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
    Participant

    Nice, one part is done

    #334516

    FillHK
    Participant

    And one more thing

    #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
    Participant

    Now it works.
    So we have fixed titles.

    What about sidebars?

    #334531

    Eric Watson
    Participant

    Hello,

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

    Best Regards

    #334532

    FillHK
    Participant

    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

    Eric Watson
    Participant

    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
    Participant

    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

    Eric Watson
    Participant

    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
    Participant

    Great job folks.
    It works now.

    Thank you for your help!

    #334559

    Eric Watson
    Participant

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

    Best Regards

    #334645

    FillHK
    Participant

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

    #334757

    FillHK
    Participant

    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.