Changing imagebg size

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Jul 23, 2014 2:22 pm
Reply with quote
Report this post
Hi, I'm trying to change the height of the imagebg the banner image that displays on the homepage but i can't seem to find where i need to change the height? I know its gonna be in a css file somewhere but no sure where... I want to half the size of what it currently is so if it could automatically adjust to the photo being displayed that would be great! If someone wouldn't mind pointing me in the right direction
User avatar
Junior Boarder

GK User
Sat Jul 26, 2014 2:25 pm
Reply with quote
Report this post
Hello,

The easiest way to achieve this will be replacing original images:

* images/header.jpg
* images/header_tablet.jpg
* images/header_mobile.jpg
User avatar
Administrator

GK User
Mon Jul 28, 2014 3:29 pm
Reply with quote
Report this post
Ive changed those and its not automatically resizing its self :(
User avatar
Junior Boarder

GK User
Mon Jul 28, 2014 4:43 pm
Reply with quote
Report this post
Could you visualize what do you want to achieve? I think that I misunderstand you.
User avatar
Administrator

GK User
Wed Jul 30, 2014 6:47 pm
Reply with quote
Report this post
So for example the banner could be 1000/800 i want to change it to 700/600 i just want to make the background image window smaller. So on the homepage I've got it set up like the demo... you can see the background image through a window i want to make the slot smaller
User avatar
Junior Boarder

GK User
Thu Jul 31, 2014 9:39 am
Reply with quote
Report this post
Please send me a mockup.
User avatar
Administrator

GK User
Thu Jul 31, 2014 11:14 am
Reply with quote
Report this post
Ive made a example here: The red arrow is how big it currently is but i want it be be as small as the yellow arrow...

Image
User avatar
Junior Boarder

GK User
Thu Jul 31, 2014 9:01 pm
Reply with quote
Report this post
In this case you will have to change the height and spacing between elements in the header. In example please open file css/stuff.css and please change padding from:

Code: Select all
padding: 180px 0 130px 0;


to:

Code: Select all
padding: 50px 0 130px 0;


for the following selector:

Code: Select all
.imageBg #gk-header-mod
User avatar
Administrator

GK User
Sun Aug 03, 2014 12:44 am
Reply with quote
Report this post
Aww fantastic thankyou! Wonder if you could help with another issue? I wanna add this banner to some k2 articles... What code can I put I to the k2 custom code section to make it work?
User avatar
Junior Boarder

GK User
Mon Aug 04, 2014 7:53 am
Reply with quote
Report this post
Do you want to put the header in K2 articles? The only way will be assign the header module to the K2 article pages and set the same page suffixes as for the frontpage to these pages.
User avatar
Administrator


cron