BuddyBoss Home – Web Support Forums Themes Boss. theme Show "Learn More" Button in Slider for Logged out users only

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #38084
    @sushant_priyadarshi

    Hello –
    I would like “Learn More” Button on the Homepage Slider to be visible to logged out users only. Can I accomplish this via css edits or any other edit to bp_custom.php? In the picture attached (slider that appears on homepage, I want to show button “Sign up Now, its free” button (which is “Learn More’ button in slider) only to logged out users.
    Thanks.

    Answers

    #38120

    Alyssa
    Participant
    @alyssa-buddyboss

    @sushant_priyadarshi add this to your child theme custom.css file:
    .logged-in .buddyboss_slides_container .readmore{display:none !important;}
    NOTE: This will remove ALL Learn More fields in ALL slides

    #38205
    @sushant_priyadarshi

    Hello,
    I put your code snippet in both places (with and without !important), doesn’t work
    1) wp-content/themes/boss-child/custom.css
    2) Dashboard->Customize->Appearance->Custom CSS

    If I put below code in Appearance->Custom CSS, it hides the button in slider for everyone, so #fwslider seems to work.
    #fwslider .readmore{display:none !important;}

    If I append .logged_in to above, it stops working i.e. starts displaying button again.
    .logged_in #fwslider .readmore{display:none !important;}

    I am using a Static page for homepage with FrontPage template. Please help. Thanks again.

    #38221

    Alyssa
    Participant
    @alyssa-buddyboss

    @sushant_priyadarshi Small mistake this code works:
    .logged-in .buddyboss_slides_container .readmore{display:none !important;}

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Show "Learn More" Button in Slider for Logged out users only’ is closed to new replies.