Home Forums WoodMart support forum hidden area issue on sidebar

hidden area issue on sidebar

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #33139

    shimination
    Participant

    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.
    #33164

    Artem Temos
    Keymaster

    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;
    }
    #33401

    shimination
    Participant

    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

    #33407

    Artem Temos
    Keymaster

    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

    #33455

    shimination
    Participant

    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

    #33471

    Artem Temos
    Keymaster

    Yes, it is a correct solution.

    #33568

    shimination
    Participant

    Glad to know that.

    thanks!

    #33569

    Artem Temos
    Keymaster

    You are welcome!

Viewing 8 posts - 1 through 8 (of 8 total)