Can anyone help us figure out how to add this message to the top of our wp-login.php page?
Currently when a visitor clicks on the purchase of a member providers Book Me Service button it redirects them to this login page but we need to explain they must login to book the users service and at this time it is blank and just asks for login user name and password…
e.g. we need to show just below the header TALENT AND CLIENT LOGIN area and above the login fields this explanation text… “Opps Sorry! You Must Login OR Register to Audition FREE or Hire this Voice Talent. If You Are a Member Login Below or Register FREE as a Client Using the Register Button Below! You Can Then Audition or Book Any Voice Talent. ”
We can not figure out how to add this to this page https://www.unitedvoicetalent.com/wp-login.php
Please see attached image of the page as it appears now… Thank you! :–)
Hello Anthony, I believe the file you’re looking for is /ajax-modal-login.php.
<?php } ?>
Note: This should work with the DT as well. (same file)
Thank you so much. Yet where do we find that file? It is not in our child theme folder.
Also where do we place it within the child theme after we copy it into the child folder. Will it then override the one in the master DT folder?
Sorry not big exp’d coders :–)
@Anthony No worries, I’ll try to generalize more. Note: If you’re using the default MJ theme and you want to customize it without directly editing core files then you may want to use the boiler creator to duplicate the default files needed. Then you could make changes without worrying about messing up the original MJ default if something goes awry or if MJ9 is upgraded. (yes, everything will be overwritten on the next MJ9 upgrade if using original files).
With that aside, to accomplish this with the original files then unzip the attached file and upload to the /MJ9/_micro/template/ directory. The file already hos the two lines removed. This will be the file you will edit to add your message.
If you decide to use Boiler then the file would be uploaded directly to that theme directory. There is no /template directory in the child themes. This sub-directory only applies to the default PP theme and not the child themes.
That should be it. Let me know if you hit any speed bumps.
Note: This is one of my personal projects to help PP members. II’m not affiliated with PremiumPress other than a theme owner, so feel free to reach out to me (contact info in boiler files) for assistance/questions with it or if anything doesn’t make sense.
Thank you again but WAY over our heads :–) We use a child theme for all of our PP themes.
Confused: Unsure why we want to remove those ‘lines of code” as you so kindly did in the filed shared if we are only wanting to add a message about registering or logging in when prompted before they can purchase services of a member? We do not use Boiler and have no idea what it is either.
Thank you again but we are just confused on the above AND how or where to even add the message… “Opps Sorry! You Must Login OR Register to Audition FREE or Hire this Voice Talent. If You Are a Member Login Below or Register FREE as a Client Using the Register Button Below! You Can Then Audition or Book Any Voice Talent.”
@Anthony The first line removed does a file check, but if it’s not in the default theme directory it’ll hang since it’s’ not in the default theme directory (unable to access certain files properly). The second line is the closing portion after that check.
The issues come from the file structure, how and where the files needed are called from. Unfortunately, we aren’t always able to just copy a file to a new location and have it work.
See the attached image where you can add your message. It’s ultimately up to you and where/how you want to display the message.
The easier method would be to make changes directly in the core files. (but they will be overwritten).
Here’s what the message looks like.
Thank you James. You are awesome for this help. Think we got it but do we add the edited file you shard to the MJ/templates directory OR to the child theme root?
Still unsure where this new file goes if using a self-created pp child theme.
We have a MJ and a MJ-child folder on our ftp. (the child one has no folders other than framework)
Thank you Jame – again still can not find that file anywhere in our theme…where is this file?
You say it is called ajax-modal-login.php
We have no such file to edit or replace. Can you share the path? It is not in our MJ/templates folder
MJ/templates directory OR to the child theme root?
All custom stuff should be child theme. It’s the purpose to avoid touching core files.
That’s one of the main purposes of the Boiler plugin, so we don’t overlook important files when trying to create a child theme. You’ll need to figure which files are missing and/or needed if you’re going from scratch.
Take a look in the theme directory: /MJ9.
@Anthony Just for clarification… It seems like overkill when someone would like to make a small change, but ends up dealing with a lot more than expected, as well as loss of time messing around. That’s where Boiler comes in.
Boiler tries to help simplify the process of creating a child theme for customizing with minimal coding knowledge, but set up to allow more advanced customizations. The process can be frustrating or overwhelming for some. It’s definitely an overall time saver.
It creates the child theme with at least the minimal files needed to duplicate the original theme. It can still be trimmed down quite a bit more with additional knowledge and coding.
It creates empty directories to start simulating the structure of the default PP theme. Nice when we need to customize other aspects like design, add custom results to display or needing to edit a non-template file… etc. Most won’t need to even mess with the directories, more so for the advance customization,
For example, if we wanted to make some sort of design and/or coding change with the a part of the membership form then we need to search the files to find the file that is responsible for displaying the membership portion we need.
Going through all the directories and files we’ve determined the file needed is in /MJ9/framework/parts/form-memberships.php.
Next, we check if that file already exists in the child theme directory /CHILD_THEME/framework/parts/form-memberships.php (using same structure). There isn’t one, so we’ll copy the one from the default theme into the child theme directory.
Note: Every time the default PP theme is updated then you’ll need to make sure any of the files in the child theme haven’t changed in the new update.
The theme will still run the same and you can safely make changes to the file. If anything goes awry we can always activate the default theme until fixed. If core files were edited then we really wouldn’t have too many options if the site were to crash from a change.
When we look at the PP theme structure of MJ9 we see this: /MJ9 /MJ9/_micro/ /MJ9/_mobile/
/MJ9/framework/ /MJ9/framework/parts/ /MJ9/framework/parts/form-memberships.php (the one we need)
/MJ9/languages/ /MJ9/templates/ /MJ9/templates-microjobs/ /MJ9/widgets/
Now, in your case, assuming you used Boiler, then the _functions.php file should have been added, that’s where the code portion would go. We know that the particular file you need to edit is the /MJ9/ajax-modal-login.php file. It’s not in the child theme directory /CHILD_THEME/ajax-modal-login.php It’s in the /MJ9/ directory, so we copy it into the It’s in the /CHILD_THEME/ directory.
Does that make a little more sense?
One should be able to copy/edit just about any file from the default PP theme directory. The key is keeping the same directory structure.
There are quite a few cool things one can do with the themes, but must dig deeper and a bit more comfortable dealing with sporadic default theme changes/updates.
My primary objective in this forum is to try and help make others life a little easier and save time/frustration making custom changes without needing to be a codehead. I’m always happy to help those that help themselves.
P.S. Boiler has been updated as well. 🙂
Thanks again. Very informative for MJ9 users however it appears the issue is we are not using MJ9 and are using MJ 8.9.7
Thus the file structures are different and there are NO ajax files….Therefore we have no idea where to find the file to edit called _functions.php NOR the file ajax-modal-login.php
@Anthony All answers I’ve responded with refer strictly with v9 themes, totally different ball of wax. My bad for assuming we were talking about v9. It may actually be a little easier to accomplish since you are using v8.
Note:, it’s always a good idea to mention the version with the problem, the child theme being used and post an URL if applicable. The more information on a problem, or to replicate the problem, the better.
Disregard the previous solution mentioned., however if you ever need to use the /CHILD_THEME/_functions.php file then it would need to be created if it doesn’t exist.
/MJ/page-login.php is the file for version 8.
Copy the file into the child theme directory and that’s where you’ll make changes. /CHILD_THEME/page-login.php
A couple questions: Are you using a child theme? if so, which one? If applicable, what is the directory location you’re currently placing the custom files?
With the older version, you would go in to LANGUAGE, and simply replace or add above the LON IN text with the text of your own. However, current version (after version 9), ALL PREMIUM THEMES are not user friendly for non-coders if you want to customize for multi-purposes use. Version 9 updates have totally messed up sites with previous version settings. I put too much work on my sites with prior version’s settings especially with CUSTOM ADVANCED FILTER using short-codes, and all of a sudden, limited user functionality with version 9 has complicated the stable use of my sites. If you design site with version 9 now, and when newer version rolls in in the future, you will face technical challenges leaving your site users on air. Honestly, I lost my appetite for current PREMIUM PRESS THEMES especially with respect to its narrow/no option for non-coder customization in order to design sites for multi-purpose use.
With the older version, you would go in to LANGUAGE, and simply replace or add above the LON IN text with the text of your own.
That file is for changing text, I believe Anthony is looking to add HTML/text to the page,
Build your WordPress Business today with our WordPress Business themes.