Video in Header Position Issues

Support desk for Multipurpose Quark Theme
GK User
Mon Jul 11, 2016 5:34 pm
Hi,

I just change the video module position from "bottom3" to "header", but there are two issues with this module position change as you can see at http://fluye.co/

1. The data-sr functionality works, but its text is not longer centered.
2. The image background is not showed.

Thanks for your help,

dp
User avatar
Senior Boarder

teitbite
Fri Jul 15, 2016 6:18 pm
Hi

Some of the module positions has default functionality disabled to make template features available, so You cannot use it.

Instead You can use css to use it as a backgorund:

Code: Select all
#gkHeaderMod {
    background: #00c3f2 url('path_to_your_image') repeat scroll 0 0;
}


Here a styling to lower the text:

Code: Select all
.gk-video-link {
    position: relative;
    top: 300px;
}
User avatar
Moderator

GK User
Sat Jul 16, 2016 12:00 am
Hi,

I just included the code, thanks for that, but it's not working properly, please look at http://fluye.co/.

- The background image doesn't fit properly and it's completely static (no responsiveness).
- The video link doesn't fit in the center in devices (smartphones, tablets).

Thanks for your help,

dp
User avatar
Senior Boarder

teitbite
Tue Jul 19, 2016 7:24 pm
Hi

Some additional styles:

Code: Select all
#gkHeaderMod {
background-size: cover;
}

#gkHeader {
    position: static;
}
User avatar
Moderator

GK User
Tue Jul 19, 2016 7:45 pm
hello,

Excellent, thanks!

Just one more detail, please look the image attached. The video link doesn't fit properly in smartphones.

Thanks,
User avatar
Senior Boarder

GK User
Wed Jul 20, 2016 10:36 pm
Hello,

This is a little update for the last post,

I just included this code in the override.css file and it improves the video-link position in smartphones, but it still doesn't look centered in iPad, maybe I missed something, thanks:

@media only screen and (max-width:699px) {
.gk-video-link {
position: relative;
top: 150px;
}
}
User avatar
Senior Boarder

teitbite
Sun Jul 24, 2016 7:32 pm
Hi

You will most probably need to add a lot more of those adjustments. For different screen widths. You can also try replace the px value with %.

@media only screen and (max-width:699px) {
.gk-video-link {
position: relative;
top: 40%;
}
}
User avatar
Moderator

GK User
Mon Jul 25, 2016 2:23 pm
Hello,

Well, trying replacing px with % didn't work, so I follow your advice creating another block of the same code with a bigger screen size and it's working good enough, thanks!
User avatar
Senior Boarder

teitbite
Thu Jul 28, 2016 6:28 pm
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron