Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Product renaming
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Product renaming
- This topic has 31 replies, 3 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
December 21, 2014 at 4:56 pm #137025
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 fileI’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 beforeMy 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
December 22, 2014 at 11:40 am #137204Hi,
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
MohammadDecember 25, 2014 at 2:39 pm #137770That’s great Thanks but I need to create a child theme or do I already have one somewhere!
December 25, 2014 at 3:50 pm #137774Hi,
You should have child theme already.
Thanks
MohammadDecember 25, 2014 at 8:07 pm #137782Nearly 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.cssbit confused
December 26, 2014 at 2:09 am #137786Hi,
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
MohammadDecember 26, 2014 at 10:44 am #137824Thanks Mohammad
I created the functions.php in notepad and put code in and place it in my child theme along side the syyle.css fileIt 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.December 26, 2014 at 11:05 am #137833Hi,
May i have your website url and wordpress admin login detail?
Thanks
MohammadDecember 26, 2014 at 1:21 pm #137856Thanks
my url is
http://www.hata.ie (its got a lock on it) lock user name: admin password: mark1wordpress admin….
FTP ADDRESS http://ftp.focalpoint.ie
FTP ADMIN USERNAME focalpoi
FTP ADMIN PASSWORD Mon1325#!December 26, 2014 at 1:23 pm #137858Sorry sent you wrong wordpress admin
here is correctAdmin Username : ronanpavesi
Admin Password : HannA32014December 26, 2014 at 1:38 pm #137867Hi,
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
MohammadDecember 26, 2014 at 1:52 pm #137870Here is a picture of my product page showing the area I want to
rename.
I hope this is clearAttachments:
You must be logged in to view attached files.December 26, 2014 at 4:27 pm #137901Hi,
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
December 26, 2014 at 5:03 pm #137908My lock code is
username admin
password mark1
hope this ok thanks
December 26, 2014 at 7:40 pm #137923That 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
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.