Our Team / header image off center on iPad & iPhone

Multipurpose WordPress Theme Forum Support
GK User
Mon Apr 13, 2015 9:58 am
Thought this would be good for the forum. On the 'Our Team' page I replaced the header image but it's not centering on an iPad or iPhone. Also, how do I rename that page to say 'About Us' in the url field?
User avatar
Junior Boarder

GK User
Mon Apr 13, 2015 12:28 pm
Hi,

It's because of your image ratio, try to add the following css code at the end of css/small.tablet.css file:
Code: Select all
.entry-header > img,
#gk-header-mod img {
  margin-top: -30px;
  max-width: 100%;
}
User avatar
Moderator

GK User
Tue Apr 14, 2015 5:26 am
:shock: Not sure where to find that - ? Sorry!! :huh:
User avatar
Junior Boarder

GK User
Tue Apr 14, 2015 10:05 am
You have to connect to your server using FTP client and edit wp-content/themes/Quark/css/small.tablet.css file. Try to add this code at the end of this filie.
User avatar
Moderator

GK User
Tue Apr 14, 2015 11:01 pm
Ahh, got it - but adding the code didn't solve the problem.
User avatar
Junior Boarder

GK User
Wed Apr 15, 2015 7:28 am
Try to change
Code: Select all
max-width: 100%;
to:

Code: Select all
max-width: 100%!important;
User avatar
Moderator

GK User
Wed Apr 15, 2015 10:01 am
Image is now centered, but distorted. Attaching what I am seeing on an iphone, and then desired effect on monitor. Side note, image on Frontpage on phone has always been centered - curious why it would be different for other pages?

photo-1.jpg


photo-2.jpg
User avatar
Junior Boarder

GK User
Wed Apr 15, 2015 12:58 pm
Remove my previous code from small.tablet.css and add the following into css/override.css or custom css plugin:

Code: Select all
.entry-header > img {
   height: auto;
  left: 50%;
  max-width: none !important;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%) translateX(-50%);
  -moz-transform: translateY(-50%) translateX(-50%);
  -ms-transform: translateY(-50%) translateX(-50%);
  -o-transform: translateY(-50%) translateX(-50%);
  transform: translateY(-50%) translateX(-50%);
  width: 100%;
}
User avatar
Moderator

GK User
Thu Apr 16, 2015 6:51 am
As usual, you're the man!! :)

Thanks!!
User avatar
Junior Boarder


cron