Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to detect if code is executed from side bar


  • gwu123
    Participant

    @gwu123

    i want to fix the size of avatars that are shown on the sidebar. is there a way to say if_on_sidebar() { then do this } ??

    thanks,

Viewing 2 replies - 1 through 2 (of 2 total)

  • @mercime
    Participant

    @mercime

    You can simply adjust via CSS. e.g. using bp-default theme, avatars have this styling:
    div#sidebar div.item-avatar img {
    height:40px;
    margin:1px;
    width:40px;
    }
    change according to taste


    gwu123
    Participant

    @gwu123

    great thanks. Will try it out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to detect if code is executed from side bar’ is closed to new replies.
Skip to toolbar