-
AuthorPosts
-
October 24, 2014 at 9:39 am #340524
Hey!
I’m going to need a private page in the site (for medical content that can be seen only by professionals). I need something VERY simple, just a unique password to enter (that I can enter myself in the WP admin -> for the related page). See on my private link the message that appears (in french). Is there a way to change a little the content of this message IN my child theme ? I prefer not to touch to WP files or Enfold native… for updating reasons.
Here is a capture I found on the support forum (in english)Let’s say I would like to put instead :
“This content is password protected. To view it please enter your password below, or contact us by mail.”Can I change that easily and how ? possible on my child theme ?
Won’t that cause any trouble ?Thanks a lot for your help!
Best regards,
MarieOctober 25, 2014 at 4:46 am #340889Hey Marie!
Thank you for using Enfold.
Please refer to this link on how to edit the password protected message:
http://codex.wordpress.org/Using_Password_Protection#Customize_the_Protected_Text
Cheers!
IsmaelOctober 25, 2014 at 7:37 pm #341024Great !!! Thank you thank you Ismael :)
I made my changes.Last question : if I want to have a bigger font size, line-eight and button what class should I put in my child css file ?
Thanks for your help, once again!Regards,
MarieOctober 27, 2014 at 6:23 pm #341657Hi!
Please see – http://kriesi.at/documentation/enfold/change-the-default-font-size/
What exactly would you like to change “line-eight and button”?Best regards,
YigitOctober 27, 2014 at 6:44 pm #341667FOR INFO : not urgent at all…
Hey Yigit!
Well… I would have liked to have a bigger font size for “my custom message”, have more vertical space between “my message” and the “mot de passe” label… and also a bigger button (styled like the one on my contact page for example). And also – eventually – have all elements centered in the page.
But at he same time I don’t want those changes to “impact” on other contact forms of the theme… is this workable ?
Actual font size of my “custom message” seems to be the same than the contact form one on my contact page… that’s why I’m asking this… -> Is there a way to have a bigger font size for my “custom message” on this page, without impacting the one other contact forms used on the site… ?Thanks in advance Yigit!
Cheers!
MarieOctober 29, 2014 at 2:47 pm #342715Hi!
Please add following code to Quick CSS
.page-id-557 form { font-size: 16px; } label[for="pwbox-557"] { margin-top: 15px; } input#pwbox-557 + input[type="submit"] { padding: 14px; min-width: 120px; font-size: 18px; border-radius: 5px; }
Regards,
YigitOctober 29, 2014 at 3:57 pm #342764Ha ha !! Thank you ‘Grand Master Yigit’! :))
I have been able to adjust details as I wanted but I would never have been able to find all that semantic around…This is a test page, so this “private message access” is going to be applied to another page but I don’t know which one at this stage : when I will “apply” it to the good page I will just have to change the page ID, right?
Thank you so much again…
Cheers!Marie
October 29, 2014 at 4:00 pm #342765Hi Marie!
Exactly. You can right click on Chrome or Firefox to inspect elements to find page ID’s http://i.imgur.com/HyPTCRg.jpg
Regards,
YigitOctober 29, 2014 at 4:32 pm #342783Great. Thanks!
One last question for that thread. I’d like to insert a link on “formulaire dédié” (see my page) that would bring direct to the good section on the “Contact” page. I’ve tried to insert a<a href="site/page/#section">formulaire dédié</a>
inside my custom message in my child functions.php file but it doesn’t seem to work… Do links have to be written differently in a php file ?Thank you Yigit!
Marie
- This reply was modified 10 years ago by Marie.
October 29, 2014 at 4:35 pm #342786Hi!
Do you mind creating a temporary admin login and posting it here privately?
Cheers!
YigitOctober 29, 2014 at 4:46 pm #342802This reply has been marked as private.October 31, 2014 at 3:21 pm #344055October 31, 2014 at 4:05 pm #344074Hey!
This is great thank you so much Yigit!
Best regards,
MarieOctober 31, 2014 at 4:10 pm #344079This reply has been marked as private.October 31, 2014 at 4:12 pm #344081 -
AuthorPosts
- The topic ‘Password protected page’ is closed to new replies.