Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #966162

    I’m using the following code with my grid layout testimonials:

    @media only screen and (max-width: 767px) {
    .avia-testimonial-image{
    height:100px!important;
    width:100px!important;
    float:none!important;
    clear:both!important;
    }}

    This puts the image above the testimonial but it isn’t centred. How do I centre the image?

    #967430

    Hey Kieran,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .avia_transform .avia_start_animation.avia-testimonial .avia-testimonial-image {
        display: block;
        margin: 0 auto;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #967752

    That’s perfect! How do I make the other info centred as well? Name etc.

    #968231

    Hi,

    Please try this as well:

    .avia-testimonial-meta-mini {
      text-align:center;
    }

    Best regards,
    Rikard

    #970166

    Perfect, thank you!

    #970361

    Hi,

    Glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1281535

    Hi, this doesn’t work for Testimonial Slider (large), how can I achieve the same thing with that?

    #1281630

    Hi mosaic,

    The CSS code should still work.
    I have checked on the testimonials page you posted in private content and could see it centered on mobile.

    Best regards,
    Nikko

    #1281654

    Hi yes sorry it’s for a different website. Please see private content. The site is currently in maintenance mode so you’ll need to use the link to login and then the testimonials are on the homepage.

    #1282121

    Hi,

    Thanks for that. Please try this in Quick CSS:

    @media only screen and (max-width: 767px) {
    #top .av-large-testimonial-slider .avia-testimonial-meta .avia-testimonial-image {
        margin-left: 50px;
    }
    }

    Best regards,
    Rikard

    #1282853

    That worked thanks. How can I also center the text beneath the image?

    #1282944

    Hi mosaic,

    Try adding this code inside Rikard’s code:

    #top .avia-testimonial-meta-mini {
        text-align: center;
    }

    it should look like this:

    @media only screen and (max-width: 767px) {
      #top .av-large-testimonial-slider .avia-testimonial-meta .avia-testimonial-image {
        margin-left: 50px;
      }
    
      #top .avia-testimonial-meta-mini {
        text-align: center;
      }
    }

    Best regards,
    Nikko

    #1283003

    That has centered the text but the whole thing is off center and as the slider cycles through testimonials each title/subtitle is in a different position.

    #1283310

    Hi mosaic,

    I have replaced the code above with this one:

    @media only screen and (max-width: 767px) {
      #top .av-large-testimonial-slider .avia-testimonial-meta, 
      #top .av-large-testimonial-slider .avia-testimonial-meta-mini {
        min-width: 100%;
        text-align: center;
      }
    
      #top .av-large-testimonial-slider .avia-testimonial-meta .avia-testimonial-image {
        float: none;
        margin-left: auto;
        margin-right: auto;
      }
    }

    Please review your site.

    Best regards,
    Nikko

    #1283382

    Perfect thank you

    #1283391

    Hi mosaic,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘How to centre the testimonial images on mobiles?’ is closed to new replies.