hidden area issue on sidebar
-
Hello,
we having a little issue with shop sidebar.
as you can see on the images attached to this topic, when using products filter on sidebar, the count numbers of products are little bit hidden.
Thank you!
Attachments:
You must be
logged in to view attached files.
Try to add the following code snippet to the Custom CSS area in Theme Settings to fix this issue.
.woodmart-woocommerce-layered-nav li {
margin-left: 5px;
}
Thanks you! it works fine now.
We have another issue though.
on posts pages, the page title always show a generic title like “puzzelim blog” instead of showing the post title itself.
how can it be replaced by the post name?
Thanks
Yes, it shows the blog page title there. You can change it in the file inc/template-tags.php
file.
Find this line
$title = ( ! empty( $page_for_posts ) ) ? get_the_title( $page_for_posts ) : esc_html__( 'Blog', 'woodmart' );
and replace with this one
$title = get_the_title();
Regards
Hi,
did that, and the main blog page title also changed to the post title…
so, i tried this code:
// Heading for blog and archives
if( is_singular( 'post' ) || woodmart_is_blog_archive() ):
if(woodmart_is_blog_archive()) {
$title = ( ! empty( $page_for_posts ) ) ? get_the_title( $page_for_posts ) :
esc_html__( 'Blog', 'woodmart' );
}
if(is_singular( 'post' )) {
$title = get_the_title();
}
if( is_tag() ) {
$title = esc_html__( 'Tag Archives: ', 'woodmart') . single_tag_title('', false) ;
}
//rest of the code
and it works nice.
do you think that my code can couse any problem?
regards
Yes, it is a correct solution.
Glad to know that.
thanks!