July 21, 2015 at 8:53 am #12896
Please can you direct me to the relevant files (I have searched the php files and have been unable to locate the necessary file) so that I can change the displayed words ‘Photo Details’ to ‘Picture Details’, ‘Photo 1 of xx’ to ‘Picture 1 of xx’ and for the option buy the entire gallery to change the text from ‘xx Photos’ to ‘xx Pictures’. I hope that makes sense. Thanks in advance.July 21, 2015 at 11:37 pm #70860adminKeymaster
You should be able to do most of these by customizing the language file only. Read the entry under the “Translation” section from the following documentation:
It will explain how you can edit the POT file with the text/language you want and then generate the language files.July 22, 2015 at 12:21 pm #70861
Thank you for your help. I made new files as directed with the amended text and uploaded the files to the server but it has made no difference to the rendered pages in a browser. I repeated the operation but again without success.
I considered updating the wp-config to reference the new WPS-en_GB files generated by Poedit but considering that would probably affect the entire site I refrained from doing it.
I think I may be missing something!July 22, 2015 at 2:11 pm #70862
I found all the items which I wanted to change within one file: photo-details-template-new.php which was a lot simpler than going down the language route as suggested (mostly because I couldn’t get it to work).
I changed all the text I needed to with the exception of the ‘Photo Details’ title which is at the top of the photo pages – I have searched endlessly and cannot find that anywhere. Any guidance on where to find it would be appreciated.July 22, 2015 at 11:56 pm #70863adminKeymaster
I think you are referring to the page title. You can edit your photo details page (from the wordpress page editor) and change the page title.July 23, 2015 at 7:48 am #70864
Thank you.May 17, 2016 at 1:38 am #70865kbphotoMember
I want to change “TO BUY THIS PHOTO CHOOSE FROM THE SELECTIONS BELOW:” to “TO RENT THIS PHOTO CHOOSE FROM THE SELECTIONS BELOW:
And the “QTY” Field in the cart price sheet from “QTY” to “NUMBER OF WEEKS”
Where can I find the correct templates to edit this in the editor?
Many Thanks!May 17, 2016 at 4:41 am #70866PeterMember
There is a filter you can use for the “TO BUY THIS PHOTO CHOOSE FROM THE SELECTIONS BELOW”.
The filter is called “wpps_filter_pricing_table_heading”.
You just need to add the following code to your theme’s functions.php file:
$pricing_table_heading = "Enter your new heading here";
For the “Qty” string – you can’t really change that in any easy way.
It is hardcoded in the following file:
wp-photo-sellerviewsphotophoto-details-template-new.phpMay 17, 2016 at 4:06 pm #70867kbphotoMember
Thanks!September 10, 2016 at 3:54 am #70868photo-5Spectator
Thanks – this worked well for me in my child theme’s functions.php.
- You must be logged in to reply to this topic.