Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › (mod/suggestion) or php string to replace menu widget (subscribe) text
New Landing › How can we help? › Themeforest Theme Support › Dante › (mod/suggestion) or php string to replace menu widget (subscribe) text
- This topic has 10 replies, 4 voices, and was last updated 10 years by Swift Ideas – Ed.
-
Posted in: Dante
-
June 18, 2014 at 5:18 pm #83564
Hi,
I would like a php string to replace the theme’s “Subscribe” text.
See screenshot here.
I would like to change it to something like “Claim Your FREE CD!”.
I would like to offer this as a feature suggestion as well, the ability in the settings area to change this text. (thoughts?).
Thanks,
June 19, 2014 at 7:41 am #83678Hi, you can find the text in sf-header.php, you could change it there or via a translation plugin like Codestyling Localization, where you wouldn’t even have to use php.
June 19, 2014 at 10:41 am #83741HI Melanie,
Thanks for getting back with me.
I would rather try php first.
1. I don’t want to add another plugin, especially a plugin that offers a lot and I will be making a one-time very small use of its features. I’m trying to stay unnecessary plugin free.
2. Unfortunately, I did install Code Localization to take a look at it, but it triggered way too many error from its code guard. It triggered malfunctions from OptinLinks, WP Migrate DB Pro, Dante and more. This is not an option for me.
Do you have any reason why running a string text replacement of php on the front end wouldn’t be a good idea?
If not, I wanted to give it a try. The php string would be part of the functions.php plugin Code Snippet, so I wouldn’t have to update the sf-header.php everytime for the site. So a text replacement is what I would like to try.
Let me know,
Thanks.
June 23, 2014 at 2:33 am #84428Hi @Noahj,
I’ve just changed the code to:
apply_filters('sf_subscribe_text', __("Subscribe", "swiftframework"));
This is in the next update, so when it is released, all you need to do is add the following to your child theme functions.php file:
add_filter( 'sf_subscribe_text', function() { return 'Claim Your FREE CD!'; });
Then that will stick with updates.
Hope that helps.
– Ed
June 23, 2014 at 4:43 am #84457Hi @SwiftIdeas,
Thanks for this. I’ve added it to my code snippets already and will look for the update.
Thanks!
June 23, 2014 at 7:18 am #84474Ok no problem ๐
– Kyle
June 23, 2014 at 11:08 am #84583What o you think about adding this for other text text references as well.
Namely the “Email customer care”,but also the other store tabs may prove useful for others.
I would like to change Email custom care to just Email Support.
Just a suggestion as those tabs do lock an end user into using content related to the titles set there which may not fit all users.
June 23, 2014 at 11:11 am #84587Actually now that I think ahead a little,
When I get this theme again for hip hop site I would like those titles (mentioned above) to reference hip hop lingo, like “About Custom Beats Beats”, “Our Beat Licenses”, “Beat Deals!”.
See where I’m going and what I mean?
Thoughts?
June 24, 2014 at 9:19 am #84994Hi Noah,
I’ll get those added for the next update too – it’s been on my list for a while ๐
– Ed
June 24, 2014 at 11:32 am #85098@hswiftideas,
Great and thanks for listening!
June 24, 2014 at 11:38 am #85106Happy to help ๐
– Ed
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.