• Resolved Сергей

    (@derevnya)


    How can I remove tabs from the product description using this code?

    /**
    * Remove product data tabs
    */
    add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );

    function woo_remove_product_tabs( $tabs ) {

    unset( $tabs[‘description’] ); // Remove the description tab
    unset( $tabs[‘reviews’] ); // Remove the reviews tab
    unset( $tabs[‘additional_information’] ); // Remove the additional information tab

    return $tabs;
    }

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

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter Сергей

    (@derevnya)

    Thank! Great support!

    Thread Starter Сергей

    (@derevnya)

    I’m trying to implement the breadcrumbs function from Yoast SEO, add code! The theme does not allow me to add code to header.php! Where can I add breadcrumbs code from Yoast SEO?

    <?php
    if ( function_exists(‘yoast_breadcrumb’) ) {
    yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ );
    }
    ?>

    Thread Starter Сергей

    (@derevnya)

    I’m trying to implement the breadcrumbs function from Yoast SEO, add code! The theme does not allow me to add code to header.php! Where can I add breadcrumbs code from Yoast SEO?

    <?php
    if ( function_exists(‘yoast_breadcrumb’) ) {
    yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,’
    ’ );
    }
    ?>

    It looks like you are using Storefront. If you look at header.php, you’ll see a “do_action” at line 58. You can tap into this using an add_action:

    add_action( 'storefront_before_content', 'my_function' );
    function my_function() {
      print 'My code here';
    }
    Thread Starter Сергей

    (@derevnya)

    A message appears: “Unable to connect to the site to check the code for errors, changes in the PHP code were rolled back. You need to upload the modified PHP file in another way, for example via FTP or SFTP.”

    To connect to your site using FTP, you could use Komodo Community Edition or FileZilla, both free.

    You can check that you PHP code is valid using this service:
    https://phpcodechecker.com/

    Thread Starter Сергей

    (@derevnya)

    Good day! I’m trying to write code for the home page. Tell me, how can I reduce the size of the left column in two? How to increase the size of the photo, how to make
    Tex under the photo – the entire width of the picture. I wrote the code, but it does not work:
    .site-main .columns-4 ul.products li.product .hotel-product-content
    {
    text-align: left
    }

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @derevnya

    I’ll mark this as resolved but feel free to create a new thread with any other questions you have.

    Thread Starter Сергей

    (@derevnya)

    How decisive? I asked a question!

    I think its just the forum guidelines – one issue per thread is preferred. Nothing personal.

    Thread Starter Сергей

    (@derevnya)

    Good day! As on the home page, adjust the text under the product photo – the entire width of the picture.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Code’ is closed to new replies.