Forum Replies Created
The snippet provided seemed to work fine, but there are a couple of configurations I was hoping you could guide me on?
I’m a bit of a noob, so I am taking this away as a learning experience. Thank you in advance for your patience.
Question #1. With the Code Snippet provided, I am unsure what to write in the ‘YOUR TEXT HERE’ so that I can have the author’s URL hyperlinked in one of the words. The string I want to create is:
“Send a tip to (@USERNAME)?”, with the @username hyperlinking to that user’s WordPress/BuddyPress member URL. I tried writing in “%s” (which looks like it was used in the ‘frontend.php’ file) in place of the @username, but it didn’t seem to work…
Is there a way I can change the text but still keep the display name / user name hyperlink?
Question #2. I wasn’t able to customize the concerned string of text by going to the frontend.php file, and I was wondering if it is because I should be putting the customized file in a different directory?
I tried putting the edited frontend.php in
wp-content/themes/my_theme/templates/wallets-tips/frontend.phplike done for the previous files, but it did not seem to work.
I found the frontend.php in this directory
wp-content/plugins/wallets-tips/includes/frontend.phpand tried to mimic what had been done for the previous tips.php file, by putting the customized file in
wp-content/themes/my_theme/includes/wallets-tips/frontend.php, but that didn’t seem to work either.
Would you happen to know where I might be messing up in this process?
Sorry for the double post.
It seems that I was able to get everything changed except for this one string of text that I cannot find in the tips.php file.
The default text seems to be: “Send a tip to author (@USERNAME) for this article?”
Would you be able to help me change this text as well?
Attachments:You must be logged in to view attached files.
I was able to customize my template using both the snippet and by modifying the UI template, thanks to your clear and concise instructions.