This topic has 5 replies, 2 voices, and was last updated 10 years by Abe.

  • Author
  • #8645
     loudmouse
    Participant

    Hi,

    I apologize if this question has already been asked. I’d searched previous posts but wasn’t able to find what I was looking for.

    I’d like to remove the ‘Create an Account’ box from the homepage for a user that is already logged into their account.

    Thanks in advance!

    #8680
     Abe
    Keymaster

    Hi,
    In your home page edit you can wrap that button in the shortcode for guests, ex:
    [kleo_only_guests] my text for non-logged in users [/kleo_only_guests]

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #8691
     loudmouse
    Participant

    Hi Abe,

    I went in to edit the Home page, however, I do not see the code for the “Create an Account” box. You can see my site here: http://bluegreenhallways.tk/

    I’m referring to the orange box that sits on top of the slider image. I’d like that box to not be visible if a user is logged in. Thanks for your help, Abe.

    #8692
     Abe
    Keymaster

    You set the register form in Sweetdate – HOmepage. Set it to Mixed

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #8742
     loudmouse
    Participant

    Thanks, Abe. I set the register form to mixed, and that has allowed me to move along. If for example, I wanted to remove that box completely – ie. no signup and no search box, how would i remove it entirely for users that are already logged in?

    #8764
     Abe
    Keymaster

    Hi,
    Please leave the mixed form and add this code to sweetdate-child/functions.php

    COPY CODE
    
    add_action('wp_head','my_custom_act');
    function my_custom_act() {
    	remove_action('after_header_content','render_user_search');
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Sweetdate Landing Page – HTML’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?