- This topic has 4 replies, 2 voices, and was last updated 8 years, 3 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › Photo Seller – edit default text on details page
Hi there,
I’d like to edit the default text on the Details page slightly:’To buy this photo choose from the selections below:’
Please can you tell me which file I can copy to my child theme, so I can keep my edits during updates?
I would plan to add it to my child theme’s plugins folder, following the same structure that the file is currently sitting in. Is this the best way for wp photoseller, or is it better to add code into my child theme’s functions.php file?
many thanks, jp
You can easily modify that heading by hooking into the in-built photo seller filter via your theme’s functions.php file.
See my answer in the following post which explains exactly what you should do:
https://support.tipsandtricks-hq.com/forums/topic/changing-titles-within-photo-seller
@ Peter – thanks for your super quick reply!
I’d actually just found the template files and wanted to confirm which you were using out of ‘/wp-photo-seller/views/photo/photo-details-template-new.php’ and ‘/wp-photo-seller/views/photo/photo-details-template.php’?
Good info in the link too – thank you. Just can’t decide whether to go with edits in the template files (once confirmation of which one to use as above), the language po file edits (which I’ve used before very successfully with Buddypress) or the theme function.php edits! Any advice??
Cheers.
I recommend you do it as per my answer above. It is the safest and best way.
You can’t do it by editing the core photo seller file because you would lose changes when you upgrade to a newer release.
Thanks!