Home › Forums › Front End PM PRO › how do i setup Front End PM Pro in a chile theme?
Tagged: child theme
- This topic has 26 replies, 3 voices, and was last updated 6 years, 6 months ago by David.
-
AuthorPosts
-
March 30, 2018 at 5:35 am #12843SteveMTNOParticipant
Hi Shamin,
Here is a list of the changes I’d like to make in my child theme. I figure it’s best to have them all in one place. Hopefully you can help me with these. Thanks in advance!!
Steve
———————————————–
In the message box:
add a leading space to the unread counts for messages and announcements
“Message Box (1)” and “Announcement (1)”
instead of
“Message Box(1)” and “Announcement(1)”Add an <h2> tag that says “Message Box”
On the New Message screen:
Change the placeholder text on the To: field to “ENter a recipient here”
Change the placeholder text on the Subject field to “ENter a subject here”
add placeholder text to the Message textarea:
“Enter your message here”Change “Add new field” to “Attach a file”
Change the text on the Send button to “Send” instead of “Send Message”
Change “No file selected” to “No file(s) selected”
On the reply screen:
Change the text on the Reply button to “Send” instead of “Reply”
On the Settings screen:
Add placeholder text to the field that says “Click in this field to block a user”
Change the button text to “Save” instead of “Save Changes”
On the Announcement page:
Add an <h2> tag that says “Announcements”
On the Directory page:
Add an <h2> tag that says “Member Directory”
March 30, 2018 at 2:46 pm #12856Shamim HasanKeymasterAccording to our support policy, we do not provide support which require any custom code. after that also i try to assist writing custom code. But that is limited to 1-2 times per customer. Your list is very long. i can write 1-2 from your list. You can hire any developer or me for all of your changes.
March 30, 2018 at 9:01 pm #12865SteveMTNOParticipantThis reply has been marked as private.March 30, 2018 at 11:18 pm #12872Shamim HasanKeymasterWhich version you are using? Some of the string i do not find. Eg. “Message Box”, “Announcements” etc which you want in h2 tag.
Most string change you will find in templates, So as you are overriding templates in your child theme, you can simply change there.
Sample code:
Add following code in your child theme’s functions.php. This will change message title placeholderadd_filter( 'fep_form_fields', function( $fields ){ $fields['message_title']['placeholder'] = 'ENter a subject here'; return $fields; });
And i charge 50$ per hour.
March 30, 2018 at 11:38 pm #12878SteveMTNOParticipantI bought the Pro version (mainly for the support), but most of what I’m doing right now has been in the “regular” version. Right now, I don’t need the added functionality of the Pro version, altho that may change in the future. Overall, I’m very happy with your plugin.
I’m currently in the process of doing an update on my site and Front End PM is a central part of that update (replacing the existing PM plugin that I was using). In general, I have been able to make all of the styling changes that I want (to make it fit in with the style on the rest of my site), but some of the verbiage changes I want to make are outside the /template folder.
As for the <h2> tags that you can’t find – that’s because they aren’t currently there. I was wanting to add them to make the appearance on those pages consistent with the other pages in the plugin. The other pages have an <h2> header at the top of the page – but the message box, announcement page, and directory page do not.
Thanks for the placeholder code. I’ll give it a try and report back.
Steve
March 31, 2018 at 12:58 am #12888Shamim HasanKeymasterI respect all of my customers and try to support in all cases. During purchase you have agreed to our Terms and Conditions where it is clearly written what is covered by the support. After that also i write code most of the time for customers. But that has some limitation.
As you are overriding templates in your child theme, you can easily add h2 tags in those templates. Eg. in directory.php add
<h2>Member Directory</h2>
just after ?> in line 16March 31, 2018 at 1:42 am #12898SteveMTNOParticipantHmmm, that didn’t work.
I also tried it like this (this is how it’s done on newmessage_form.php – line 7):
<h2><?php _e(“Send a Message”, ‘front-end-pm’); ?></h2>
but that didn’t work in directory.php either..
btw – thank you again for all your help!! I really appreciate it!!
March 31, 2018 at 2:36 am #12901Shamim HasanKeymasterare your child theme active?
did you added this code after?>
March 31, 2018 at 2:41 am #12904SteveMTNOParticipantThat was my bad. I was copying the updated template files to the /templates folder instead of the ?front-end-pm folder of my child theme.. oops! 🙂
It’s working perfectly now.
I think I’ve got just about all of the items above taken care of now. I’m going to mark this issue resolved.
Thank you again for all your help, Shamim!
June 8, 2018 at 2:51 am #14894DavidParticipantI am also trying to change the text of the reply button to “SEND” but I cannot find this in any of the templates. Am I missing something?
June 8, 2018 at 11:04 am #14900Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_form_submit_button', function( $button, $where ){ if( 'reply' == $where ){ $button = '<button type="submit" class="fep-button" name="fep_action" value="'. esc_attr( $where ) .'">SEND</button>'; } return $button; }, 10, 2 );
June 8, 2018 at 4:35 pm #14904DavidParticipantThanks!
-
AuthorPosts
You need to purchase ‘Front End PM PRO’ to create topic in this support forum.
If you already purchased ‘Front End PM PRO’ please LOGIN.