Home › Forums › WoodMart support forum › Sidebar issue and title with Directory pro
Sidebar issue and title with Directory pro
- This topic has 32 replies, 3 voices, and was last updated 3 years ago by Elise Noromit.
-
AuthorPosts
-
November 21, 2021 at 5:35 pm #333468
FillHKParticipantHi,
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.November 21, 2021 at 10:05 pm #333515
Elise NoromitMemberHello,
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
November 22, 2021 at 8:56 am #333597
FillHKParticipantIt doesn’t work.
November 22, 2021 at 11:31 pm #333825
Elise NoromitMemberHello,
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
November 23, 2021 at 9:22 am #333886
FillHKParticipantYes let’s do it
November 24, 2021 at 4:36 pm #334311
Elise NoromitMemberHello,
You have disabled the page title in the Metabox:
https://prnt.sc/20s9lj5 sidebar is set to be left: https://prnt.sc/20s9budIf you have any questions please feel free to contact us.
Best Regards
November 24, 2021 at 4:39 pm #334312
FillHKParticipantHm, could you tell me which page is it? Because for categories and signle listing there another pages and they are still not manageble.
November 24, 2021 at 4:41 pm #334313
FillHKParticipantI have checked it now and ..
November 24, 2021 at 4:42 pm #334314
FillHKParticipantHere is the page where you can see: https://neatho.me/ru/services-ru/category/online-consultancy-ru/
November 24, 2021 at 5:43 pm #334323November 24, 2021 at 5:58 pm #334329
FillHKParticipantThey mention it’s supported.
Added into file, but it doesntNovember 25, 2021 at 12:04 am #334377
Elise NoromitMemberHello,
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
November 25, 2021 at 9:03 am #334427
FillHKParticipantIt 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.November 25, 2021 at 11:28 am #334481
Elise NoromitMemberHello,
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
November 25, 2021 at 11:41 am #334487
FillHKParticipantCode has been added – nothing changed
November 25, 2021 at 12:09 pm #334505
Elise NoromitMemberHello,
Please insert the code completely: https://prnt.sc/20w2l0d and https://prnt.sc/20w2n7f
Best Regards
November 25, 2021 at 12:24 pm #334512
FillHKParticipantNice, one part is done
November 25, 2021 at 12:27 pm #334516
FillHKParticipantAnd one more thing
November 25, 2021 at 12:32 pm #334520
Elise NoromitMemberHello,
Please change the sidebar layout in the Theme Settings > General layout: https://prnt.sc/20vt4gr
Best Regards
November 25, 2021 at 12:35 pm #334525
Elise NoromitMemberP.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
November 25, 2021 at 12:45 pm #334529
FillHKParticipantNow it works.
So we have fixed titles.What about sidebars?
November 25, 2021 at 12:46 pm #334531
Eric WatsonParticipantHello,
Please change the sidebar layout in the Theme Settings > General layout: https://prnt.sc/20vt4gr
Best Regards
November 25, 2021 at 12:48 pm #334532
FillHKParticipantYes, but it will be changes for blogs as well and most important:
* I need to use another widget area. Not a default one.November 25, 2021 at 1:04 pm #334548
Eric WatsonParticipantHello,
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
November 25, 2021 at 1:07 pm #334554
FillHKParticipantGreat, 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 originalNovember 25, 2021 at 1:11 pm #334557
Eric WatsonParticipantPlease find the line in the code provided above:
<?php woocommerce_page_title(); ?>
and replace with this one:
<?php echo get_the_title(); ?>
Best Regards
November 25, 2021 at 1:12 pm #334558
FillHKParticipantGreat job folks.
It works now.Thank you for your help!
November 25, 2021 at 1:13 pm #334559
Eric WatsonParticipantYou are welcome! If you have any questions please feel free to contact us.
Best Regards
November 25, 2021 at 7:51 pm #334645
FillHKParticipantCode provided duplicated title on woocommerce : https://neatho.me/ru/catalog/
November 26, 2021 at 8:06 am #334757
FillHKParticipantSo this function is not working, even if I place:
if ( is_archive( 'dhgdkhdajkdhjkash' ) ) :
I see extra titles on the other pages and taxanomies.
-
AuthorPosts
The topic ‘Sidebar issue and title with Directory pro’ is closed to new replies.
- You must be logged in to create new topics. Login / Register