-
Author
Tagged: Disable header temporary
-
July 20, 2015 at 15:56 #69099jneventParticipant
I would like to disable all the header functions during the time when the user is registering with Facebook for the first time(kleo/kleo-framework/lib/function-facebook-login.php).
How do I make it so the user cannot click any of the buttons in the header during this time?
July 20, 2015 at 18:22 #69112RaduModeratorHi,
Use this php snippet, add to wp-admin/wp-content/themes/kleo-child/functions.php
COPY CODE/*Hide theme header if the url contains fb=register*/ $url = $_SERVER["REQUEST_URI"]; $fromFB = strpos($url, 'fb=registered'); if($fromFB !== false) { ?> <style type="text/css"> #header {display:none !important;} </style> <?php } /*END theme header if the url contains fb=register**/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 20, 2015 at 18:44 #69116jneventParticipantThere is no ‘wp-admin/wp-content’
Do you mean ‘wp-content/themes’?July 20, 2015 at 18:46 #69117RaduModeratorYes,
sorry
wp-content/themes/kleo-child/functions.php
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 20, 2015 at 18:54 #69119jneventParticipantShould that code you gave me be the only code in functions.php or should I copy the functions.php from kleo and put the code at the top?
July 20, 2015 at 18:55 #69120RaduModeratorPut that code at the top or bottom
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 20, 2015 at 19:00 #69122jneventParticipantI get error when starting the site:
Fatal error: Cannot redeclare kleo_setup() (previously declared in /home/hpkursen/public_html/wp-content/themes/kleo-child/functions.php:52) in /home/hpkursen/public_html/wp-content/themes/kleo/functions.php on line 49
July 20, 2015 at 19:04 #69124RaduModeratorcan you provide your functions.php file ?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 20, 2015 at 19:06 #69125jneventParticipantIt was on the bottom before, I put it on the top now but it’s still the same error. Here is the file.
July 20, 2015 at 19:10 #69127jneventParticipantI made it .txt
Attachments:
You must be logged in to view attached files.July 20, 2015 at 19:21 #69130RaduModeratorDelete the code that i provided you from themes/kleo/functions.php and add the content from attached file functions.php.txt to themes/kleo-child/functions.php
NOTE : Kleo child theme should be activated.
If you don’t have the kleo-child theme installed, look in downloaded package from themeforest in directory wordpress for kleo-child.zip, install this theme and activate.
It should work i tested.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.July 20, 2015 at 19:51 #69137jneventParticipantI tried it and got the same error. Here is the whole function.php
I have used kleo-child before so I’m guessing it’s installed and activated.
Attachments:
You must be logged in to view attached files.July 20, 2015 at 20:01 #69142RaduModeratorput the snippet that i provided you after the
COPY CODE/*************************************************** :: Load Kleo framework ***************************************************/ HERE
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 20, 2015 at 20:13 #69143jneventParticipantThe same error
Attachments:
You must be logged in to view attached files.July 20, 2015 at 20:30 #69145RaduModeratorstrange, provide ftp to help you
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 20, 2015 at 20:31 #69146jneventParticipantCould I not just edit the kleo instead of kleo-child?
July 20, 2015 at 20:32 #69147RaduModeratorYou can, but is not recommended.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 20, 2015 at 20:51 #69149jneventParticipantI did it in the kleo and it’s working now. Can you remove this topic for security purposes because I provided with function file.
Thank you for you help.
July 20, 2015 at 20:53 #69150RaduModeratorYou’re welcome,
It will not delete the topic because someone maybe will look for a similar solution.
I think you are able to edit your posts and set them as private reply.
Regards
Radu
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 ‘KLEO’ is closed to new topics and replies.