BuddyDev

Search

Custom background

  • Participant
    Level: Enlightened
    Posts: 30
    Jill Bowers on #14727

    Not sure if you saw this question, but I’m pasting it again, Is there a way that if someone chooses not to repeat the background that it can have the css style to cover the space verses contain or just add the option? Thank you!

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #14732

    Hi Jill,
    I will post a bit late today or early tomorrow. I did misread the replies.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 30
    Jill Bowers on #14745

    No problem! I don’t think you misread anything, the solution you gave for the background was great and with this last thing, i was just repasting it incase you missed it. Thank you!

  • Participant
    Level: Enlightened
    Posts: 30
    Jill Bowers on #14839

    bump…would love to know how to make an option for the background to cover. Right now its either repeating or contained so it doesn’t fill it all. Thanks!

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #14846

    Hi Jill,
    You will need to change this

    
    body.is-user-profile #buddypress div#item-body{
    			background: url(<?php echo $image_url; ?>);
    			background-repeat: <?php echo $repeat_type; ?>;
    		}
    

    to

    
    body.is-user-profile #buddypress div#item-body{
    			background: url(<?php echo $image_url; ?>);
    			background-repeat: <?php echo $repeat_type; ?>;
                            background-size:cover;
    		}
    

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved