This topic has 6 replies, 3 voices, and was last updated 11 years by vanaila.

  • Author
  • #4648
     vanaila
    Participant

    Hi,

    I made a home page with a slider, may I hide the slide when people are connected?

    I don’t know how to use the shortcode [kleo_only_members] on this.

    #4755
     vanaila
    Participant

    May someone help me please?

    #4775
     JohnDoe
    Participant

    add [kleo_only_members] [/kleo_only_members] around ur slider code?

    #4806
     SQadmin
    Keymaster

    If you are talking about the home slider that is not added with a shortcode, you can add this to sweetdate-child/functions.php

    COPY CODE
    
    add_action('after_setup_theme','my_slider_mod');
    function my_slider_mod() {
    	remove_action('kleo_after_header', 'kleo_home_revslider') ;
    	if (sq_option('home_rev',0) == 1 && function_exists('putRevSlider') && !is_user_logged_in())
    	{
    		add_action('kleo_after_header', 'kleo_home_revslider') ;
    	}
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #4841
     vanaila
    Participant

    The slider worked well in homepage.

    But I whish that logged in people don’t see it. Only visitors, logout people (sorry for my bad english)

    #4894
     SQadmin
    Keymaster

    So the code I gave doesn’t do just what you want?

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

    Sorry, I made a mistake (don’t know which one).

    It Works Perfectly well

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

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?