Canard not showing avatar in author bio on mobile and tablet formats

  • Unknown's avatar

    The Canard theme allows you to show the author bio on single posts. The avatar of the author also shows but only in desktop format. Is there a way for the avatar to show on the other devices as well?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    If you are allowed to add css to your site then try this

    @media screen and (min-width: 960px)
    .author-info .author-avatar {
        display: block;
    }

    If that doesn’t work then try

    @media screen and (min-width: 960px)
    .author-info .author-avatar {
        display: block !important;
    }
  • Unknown's avatar

    thanks! I’ll give it a go.

  • Unknown's avatar

    I tried both but they didn’t appear to have worked. Other than adding this and publishing was their another step I may have missed? Thanks again for your help.

  • Unknown's avatar

    I just reviewed Canard theme css file and you need to simply add below css without any media queries to make the avatar appear on all devices.

    .author-info .author-avatar {
    display: block !important;
    }

    Also a note for @dtlevin . His code is missing {}. Below is the correct format to write a media query : )

    @media screen and (min-width: 960px) { …… }

  • Unknown's avatar

    I just reviewed Canard theme css file and you need to simply add below css without any media queries to make the avatar appear on all devices.

    .author-info .author-avatar {
    display: block !important;
    }

    Also a note for @dtlevin . His code is missing {…}. Below is the correct format to write a media query : )

    @media screen and (min-width: 960px) { …… }

  • Unknown's avatar

    oops!

    Sorry for the duplicate reply guys.

  • truenorthnomad – are you all set?

    The CSS icookwp suggested works for me, but you don’t actually need the !important, which should be avoided wherever possible.

    .author-info .author-avatar {
      display: block;
    }

    icookwp & dtlevin – thanks for pitching in to help!

  • The topic ‘Canard not showing avatar in author bio on mobile and tablet formats’ is closed to new replies.