This topic has 25 replies, 3 voices, and was last updated 9 years by hotloverspassion.
-
Author
-
July 18, 2015 at 21:36 #68868
bharathy
ParticipantHi,
After the user register and logs in the home page form should go away (in our case registration form) http://virtualui.net/KREC90/
Let me know how to achieve that. Thanks!
July 20, 2015 at 03:24 #69002Laura
ModeratorHello, you can use the mixed form, when the user is logged in, he will see search form instead.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 22, 2015 at 07:06 #69408bharathy
ParticipantHi,
After logged in there is no need for any form to display in my case.
Can you help me how to do that? Thanks
July 23, 2015 at 08:54 #69560Laura
Moderatormhm i see, so you want to hide the form for logged in users then?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 24, 2015 at 06:56 #69751bharathy
ParticipantYes. thats the idea. Let me know how to achieve that. Thanks
July 24, 2015 at 23:45 #69925Laura
ModeratorHello, please copy header.php of main theme and paste in in child theme folder, then add this code just after the <head> tag
COPY CODE<?php if ( is_user_logged_in() ) { <style type="text/css" media="screen"> .form-wrapper { display: none; } </style> } else { ?> <?php } ?>Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 25, 2015 at 11:22 #69961bharathy
ParticipantHi,
Need one quick clarification.
I have installed the child theme Do i have to activate it? what happens to the main theme corrections?
July 27, 2015 at 08:34 #70133Laura
ModeratorHello, all corrections should be on the child theme, because this way you dont lose them. So it needs to be activated 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 30, 2015 at 17:05 #70751bharathy
ParticipantHi,
I’ve activated the child theme copied header.php and added the piece of code you provided after <head> tag.
But the page is going blank! Let me know what could be the issue or did i do something wrong.
Thanks
August 1, 2015 at 18:05 #71103Laura
ModeratorHello, i think i know the issue, add this istead:
COPY CODE<?php if ( is_user_logged_in() ) { <style type="text/css" media="screen"> .form-wrapper { display: none; } </style> } else { ?>Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 4, 2015 at 12:50 #71477bharathy
ParticipantThis error i’m getting. planning to go live by today. help to solve this issue is appreciated. Thanks
Parse error: syntax error, unexpected ‘<‘ in /home/content/45/11398045/html/KREC90/wp-content/themes/sweetdate/header.php on line 22
August 6, 2015 at 03:34 #71809Laura
ModeratorHello, this should work, let me know 🙂
COPY CODE<?php if ( is_user_logged_in() ) { ?> <style type="text/css" media="screen"> .form-wrapper { display: none; } </style> <?php } ?>Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 7, 2015 at 04:17 #72112Laura
ModeratorGlad it worked!
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMay 30, 2016 at 00:57 #123535hotloverspassion
ParticipantHi,
I tried your code above and it works great! But I would also like to hide the header image as now after the form is gone, the site looks messy with the image smaller and right at the top of the page along with the navigation menu. I was thinking to hide the image using display: none; but I can’t locate the css for the header image. Can you send me the code?
Thanks 🙂May 30, 2016 at 22:03 #123668Laura
ModeratorHello, can you share a link so i can see it? And a screenshot 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMay 31, 2016 at 01:46 #123699hotloverspassion
ParticipantHi,
here are my credentials. My site is not live yet, so the link wouldn’t be much of help 🙂hotloverspassion
adminPlease find attached images.
Thanks 🙂
Petra
P.S. I’m not worried about the location of the register form yet as the image is there just for testing purpose. The image might be the same or completely different, I’m not sure yet. Once my site will be nearly ready, I will have to purchase the images so I’m leaving it to the last.
June 1, 2016 at 01:11 #123883Laura
ModeratorHello, if your site is not live i cant see it, at the demo of the theme, can you point me where is what you want to hide?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 1, 2016 at 01:59 #123884hotloverspassion
ParticipantCompare my pictures:
“Original home page” image with the register form and the header picture as it should be
“After log in” image is showing my home page after I’ve hidden the register form using the code in this topic. As you can see, the header picture got smaller and appears just at the top of the page ( I highlighted it in green color for you to see 🙂 That’s why I would like to also hide this header picture for logged in users so the home page won’t look messy.June 1, 2016 at 21:26 #124002Laura
ModeratorHello, i see the issue now, do the following, go back to the original, delete the code you used to hide the form and add this to style.css
COPY CODE.form-wrapper { display: none; }Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 1, 2016 at 21:48 #124008hotloverspassion
ParticipantHi 🙂
No luck, sorry.
It has the same result as the image “after log in” I sent you in previous message, with the header picture smaller appearing right at the top of the page. But with this change I have lost capability to display the form to non logged in users and hide it to logged in users. The form itself is not the issue. It is the header image I want to hide under the same condition as the register form ( so it will be there for not logged in users together with the register form ,but it will be hidden for logged in users as the register form is )
Hope it makes sense 🙂
June 2, 2016 at 21:33 #124171hotloverspassion
ParticipantI’ve got an idea but just need CSS selector for the header picture…
June 2, 2016 at 21:36 #124172Laura
ModeratorHello, i believe we have 2 topics about this? Because i just answered the other one… Please stay at the other and lets close this one
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 2, 2016 at 21:52 #124182hotloverspassion
ParticipantYou answered to this topic but in the other one by mistake…I think your head will be soon spinning from my posts 🙂 haha
The other topic relates to different issueJune 2, 2016 at 23:58 #124212Laura
ModeratorHello, lets mesh them there as this one is from another person 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.