Comment label in product section - by guz.alonsomartinez@gmail.com

This topic has 10 replies, 3 voices, and was last updated 7 years, 8 months ago ago by Eva Kemp

  • Avatar: guz.alonsomartinez@gmail.com
    guz.alonsomartinez@gmail.com
    Participant
    July 7, 2016 at 02:27

    Hello there!

    I want to change the order in wich the labels are distributed, for example here

    http://www.versatilmusic.uy/producto/vintage-overdrive/

    The comments, I’d like them to be at bottom, not in the middle, is that possible?.

    And another quesion, the price filter button, the one from woocommerce, I need to change its colour, can you give the css code to do that?.

    Thanks in advance, have a nice day!

    9 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 7, 2016 at 08:51

    Hello,

    You can reorder tabs as described in Woocommerce documentation https://docs.woothemes.com/document/editing-product-data-tabs/ .

    To change Price Filter button color use this css code in Theme Options > Custom CSS > Global Custom CSS:

    .price_slider_wrapper .price_slider_amount button {
        color: white;
        background-color: red;
    }

    Write your color values.

    Best regards,
    Jack Richardson.

    Avatar: guz.alonsomartinez@gmail.com
    guz.alonsomartinez@gmail.com
    Participant
    July 8, 2016 at 01:43

    The filter button is fixed, thanks a lot!

    The woocommerce documentation does not say where to put that piece of code, do you know where to put it?.

    And the last question, is there a way to add a “register” button next to “log in”?, because I don’t seem to have one.

    Thats it.

    Thanks jack!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 8, 2016 at 11:25

    Hello,

    You need add the code in theme functions.php file.

    How to add Register link please refer to our documentation https://www.8theme.com/demo/docs/royal/#!/4_registration_page .

    Best regards,
    Jack Richardson.

    Avatar: guz.alonsomartinez@gmail.com
    guz.alonsomartinez@gmail.com
    Participant
    July 10, 2016 at 02:31

    Hello, thanks for the answer!

    I could add the register page and inster the woocommerce code to reorder the tabs, the thing is that there is one of Royal’s tabs, that I use, that is not being reordered. I asume that is because this piece of code works only for woocommerce tabs no the one native from the theme. Now I have this piece of code

    <div class="tabs left-bar">
            <ul class="tabs-nav">
                                <li>
                        <a href="#tab_description">Descripción</a>
                    </li>
                                                <li>
                        <a href="#tab_reviews">Comentarios (0)</a>
                    </li>
                                
                
                                <li>
                        <a href="#tab_7">Especificaciones y Contenido</a>
                    </li>

    With the code given by woocommerce I can’t tell to “tab 7” to place at the middle, betwen description and reviews. I tried using this code in functions.php

    `add_filter( ‘woocommerce_product_tabs’, ‘woo_reorder_tabs’, 98 );
    function woo_reorder_tabs( $tabs ) {

    $tabs[‘description’][‘priority’] = 5; // Description first
    $tabs[‘7’][‘priority’] = 10; // Tab 7 second
    $tabs[‘reviews’][‘priority’] = 15; // Reviews last

    return $tabs;
    }`

    Any ideas?, maybe i’m missing something

    Thanks a lot!

    Avatar: Eva
    Eva Kemp
    Support staff
    July 11, 2016 at 10:25

    Hello,

    Please specify how you want to order the tabs on single product pages.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: guz.alonsomartinez@gmail.com
    guz.alonsomartinez@gmail.com
    Participant
    July 11, 2016 at 15:44

    Hi

    In the way it is shown on the funcions.php example.

    Description – FIRST
    TAB 7 – SECOND
    Comments – Third and last

    Thanks a lot!

    Avatar: Eva
    Eva Kemp
    Support staff
    July 11, 2016 at 17:44

    Hello,

    Unfortunately we can only make Tab 7 as the first tab. Do you agree with it?

    Regards,
    Eva Kemp.

    Avatar: guz.alonsomartinez@gmail.com
    guz.alonsomartinez@gmail.com
    Participant
    July 11, 2016 at 19:35

    That will work fine.

    How can I do it??

    Thanks.

    Avatar: Eva
    Eva Kemp
    Support staff
    July 12, 2016 at 09:19

    Hello,

    I’ve edited the file wp-content/themes/royal/woocommerce/single-product/tabs/tabs.php
    Please check tabs on single product pages. Now Custom tab is shown the first.

    Regards,
    Eva Kemp.

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.