Viewing 15 posts - 1 through 15 (of 32 total)
  • #137025
    markothegreat
    Member
    Post count: 23

    Hi
    I would like to change the product description name to “available tweeds”
    I understand I have to inject some code into the functions.php file

    I’ve been reading through a lot of support treads and Im still a little uneasy about adjusting my functions.php file
    I don’t want to mess up my site as Ive never done this before

    My 5 questions are as follows
    no 1 ..Is this the correct code that I use.

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

    $tabs[‘description’][‘title’] = __( ‘More Information’ ); // Rename the
    return $tabs;

    }

    no 2 Where exactly do I put my new title “available tweeds” is it where it says “title”

    No 3 Do I just open editor in wordpress, open up the functions.php file and paste the code directly into the top of this file?

    No 4 Do I need to create a child theme first and put it in there instead or is this optional.

    Thanks

    #137204
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please insert this code at functions.php of your child theme.

    <?php
    add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
    function woo_rename_tabs( $tabs ) {
    
    $tabs['description']['title'] = __( 'Available tweeds' ); // Rename the
    return $tabs;
    
    }
    ?>

    Thanks
    Mohammad

    #137770
    markothegreat
    Member
    Post count: 23

    That’s great Thanks but I need to create a child theme or do I already have one somewhere!

    #137774
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You should have child theme already.
    Thanks
    Mohammad

    #137782
    markothegreat
    Member
    Post count: 23

    Nearly there Thanks…. I found the child theme ok( only 1 file in it style.css) so I created a duplicate functions.php file in notepad and copied over the functions.php code from the parent theme..
    I then pasted the renaming code snipit you gave me but still no success!! ..tried it in a few places! but Im not sure where it goes in the file top? bottom?
    Can you tell me am I on the right track or do I put it in the style.css

    bit confused

    #137786
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please dont insert any code of parent’s functions.php. Just create a blank functions.php at child theme and insert this code only.

    <?php
    add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
    function woo_rename_tabs( $tabs ) {
    
    $tabs['description']['title'] = __( 'Available tweeds' ); // Rename the
    return $tabs;
    
    }
    ?>

    Thanks
    Mohammad

    #137824
    markothegreat
    Member
    Post count: 23

    Thanks Mohammad
    I created the functions.php in notepad and put code in and place it in my child theme along side the syyle.css file

    It still didn’t work!
    Ive sent you a screengrab to see have I done it wrong!

    Attachments:
    You must be logged in to view attached files.
    #137833
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    May i have your website url and wordpress admin login detail?
    Thanks
    Mohammad

    #137856
    markothegreat
    Member
    Post count: 23

    Thanks
    my url is
    http://www.hata.ie (its got a lock on it) lock user name: admin password: mark1

    wordpress admin….
    FTP ADDRESS http://ftp.focalpoint.ie
    FTP ADMIN USERNAME focalpoi
    FTP ADMIN PASSWORD Mon1325#!

    #137858
    markothegreat
    Member
    Post count: 23

    Sorry sent you wrong wordpress admin
    here is correct

    Admin Username : ronanpavesi
    Admin Password : HannA32014

    #137867
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Can you please attach a marked screenshot to explain your issue? I think that i am not getting your issue exact so its still coming.
    Thanks
    Mohammad

    #137870
    markothegreat
    Member
    Post count: 23

    Here is a picture of my product page showing the area I want to
    rename.
    I hope this is clear

    Attachments:
    You must be logged in to view attached files.
    #137901
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can go through your site lock to check the product page.
    Can you check again the user and password for the lock? The Ftp works fine.

    -Rui

    #137908
    markothegreat
    Member
    Post count: 23

    My lock code is

    username admin

    password mark1

    hope this ok thanks

    #137923
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    That one I already(saw it in your other reply) tried and it’s not working.
    It doesn’t throw any error message but keep login the modal window to enter the info.

    -Rui

Viewing 15 posts - 1 through 15 (of 32 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register