• I have no idea why all my shop page has the wording on “> desktop-columns-4 tablet-columns-2 mobile-columns-1”

    Can anyone advice me on this?

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi. That is because your theme template have not well-written.
    Find below line and delete desktop-columns-4 tablet-columns-2 mobile-columns-1 after

      tag.

      <ul class="grid product-list clearfix desktop-columns-4 tablet-columns-2 mobile-columns-1"> desktop-columns-4 tablet-columns-2 mobile-columns-1

    Thread Starter jameshong27

    (@jameshong27)

    Where can i find this?

    desktop-columns-4 tablet-columns-2 mobile-columns-1

    Have you resolved them? I dont see them now.

    Thread Starter jameshong27

    (@jameshong27)

    I pasted them but now there is a “> at the end and my photo does not align properly.

    Thread Starter jameshong27

    (@jameshong27)

    I pasted this code in the function.php

    if ( ! function_exists( ‘woocommerce_product_loop_start’ ) ) {
    /**
    * Output the start of a product loop. By default this is a UL
    *
    * @access public
    * @param bool $echo
    * @return string
    */
    function woocommerce_product_loop_start( $echo = true ) {
    ob_start();
    wc_get_template( ‘loop/loop-start.php’ );
    if ( $echo )
    echo ob_get_clean();
    else
    return ob_get_clean();
    }
    }

    Thread Starter jameshong27

    (@jameshong27)

    If i removed the code above, the wording will come back.

    Why do you need to add that code?
    I think the culprit is in your theme, like archive.php/taxonomy.php or something.
    However, it looks like you are using premium theme, it would be better to ask the theme author for help.

    Thread Starter jameshong27

    (@jameshong27)

    I am not sure. I found the same problem occurred in youtube. But it does not has “>

    OK.
    Pls try below code instead.
    Since function woocommerce_product_loop_start now has filter hook, it would be better use it.
    Note this fix might affect other product loop output.

    add_filter( 'woocommerce_product_loop_start', 'my_product_loop_start' );
    function my_product_loop_start( $echo = true ) {
      $loop_start = '<ul class="grid product-list clearfix desktop-columns-4 tablet-columns-2 mobile-columns-1">';
      if ( $echo ) {
        echo $loop_start;
      } else {
        return $loop_start;
      }
    }

    Hi. That is because your theme template have not well-written.
    Find below line and delete

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Problem with a title in page’ is closed to new replies.