By Mist on Friday, 28 February 2014
Posted in General Issues
Likes 0
Views 763
Votes 0
What is controlling the profile cover height ?
It seems that is controlled dynamic but i can't find from where is controlled. I want to adjust it a little bit. I have the cover width at 100% but i want to limit the height at some specific size, let's say 300px or a smaller percent.
I noticed that the entire thing is responsive and as you scale down the browser window cover height decrease.

So, where i can adjust it ? Thanks !
You could hack, or you can use CSS which requires zero hacking! Don't believe me? Give this code a test spin:

.es-profile-cover.es-flyout {
max-height: 400px !important;
}


Apply it to your Joomla template and clear your cache. Adjust the max-height to the value you do not want it to extend beyond.
·
Friday, 28 February 2014 15:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I am sorry but there is no such control at the moment due to responsive.
·
Friday, 28 February 2014 10:54
·
0 Likes
·
0 Votes
·
0 Comments
·
There must be some code inside the files where i can override or hack the core settings. I must do it because in current configuration the profile cover takes up my entire screen display.
It seems that cover height is calculated based on screen width.

Imagine if i have the container set-up at 100% width and my screen resolution is at FULL HD - 1920x1080, the cover height is HUGE . In my current display the cover height is assigned at 561 pixels wich is enormous

I can make you a printscreen if you want. The cover height takes over almost the entire screen space.
·
Friday, 28 February 2014 12:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, there are 2 areas you'll need to edit:
"media/com_easysocial/scripts/cover.js" @ setLayout() handles profile cover.
"media/com_easysocial/scripts/site/stream/stream.js" @ setLayout() handles stream cover.

If you stumble across any "/ 3", just be informed that we decided upon the 3:1 aspect ratio for covers.

Note:
1. When modifying, you can switch to "Development mode" under "Backend > General > System Preferences" to test it out.
2. After modifying, you will need to join & compress all the scripts by running: "http://www.yoursite.com/administrator/index.php?option=com_easysocial&compile=1&minify=1";
3. Then you can switch back to "Static mode" with the newly hacked changes.

Happy hacking!
·
Friday, 28 February 2014 12:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Josh for the neat hack! :-)
·
Friday, 28 February 2014 15:30
·
0 Likes
·
0 Votes
·
0 Comments
·
I guess you can call it a hack. My fix does not require the change for each upgrade which is why I like CSS over rides a whole lot better.
·
Friday, 28 February 2014 15:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks a lot Josh. That worked nice !
·
Friday, 28 February 2014 21:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Yeay! Glad to hear.
·
Saturday, 01 March 2014 06:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing this Josh
·
Saturday, 01 March 2014 22:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Josh Lewis wrote:

You could hack, or you can use CSS which requires zero hacking! Don't believe me? Give this code a test spin:

.es-profile-cover.es-flyout {
max-height: 400px !important;
}


Apply it to your Joomla template and clear your cache. Adjust the max-height to the value you do not want it to extend beyond.


Josh,

I have made this change after seeing this and somehow I can't recall where and how I changed it. I checked in my css for my template and I do not see the code added for the css:

.es-profile-cover.es-flyout {
max-height: 400px !important;
}


The Profile Cover Aspect ratio is skewed on my site now and not sure how to fix it. Lesson to me to use the ES Tasks feature and write it down how I changed this.

Any suggestions how to fix the aspect ratio for the Cover Photo? Suggestions appreciated.

Randall
·
Tuesday, 11 March 2014 12:21
·
0 Likes
·
0 Votes
·
0 Comments
·
I forgot the name of your site, it was something "chamber" with the word "voices"? I think I'm part way there with the name. So I'm curious which way is it skewed?
·
Tuesday, 11 March 2014 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Josh Lewis wrote:

I forgot the name of your site, it was something "chamber" with the word "voices"? I think I'm part way there with the name. So I'm curious which way is it skewed?


The site is chamberanswers.com

But I have it set to a Coming Soon page at this time. I can send you one of the SU username and password to look at it if you send me an email.

rusty[at]chamberanswers.com

Appreciate you getting back to me n this.

Randall
·
Tuesday, 11 March 2014 12:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Josh - see my last post.
·
Tuesday, 11 March 2014 12:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Email sent.
·
Tuesday, 11 March 2014 13:08
·
0 Likes
·
0 Votes
·
0 Comments
·
I sent you an email a minute ago with the username Josh and the password so you have full SA privileges to make any admin changes if you think you can fix this or want to take a look via the Administrator.

Thanks Josh.

Randy
·
Tuesday, 11 March 2014 13:52
·
0 Likes
·
0 Votes
·
0 Comments
·
In Randall's case I tried out:

.es-profile-cover.es-flyout {
min-height: 500px !important;
}


140px were being used up by the faded area. So I decided to go with a height that made the cover image not feel as cropped. Feel free to speak up about adjustments.
·
Tuesday, 11 March 2014 14:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much Josh. I appreciate this very much. Looks much better now.

Randall
·
Tuesday, 11 March 2014 14:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Your welcome. I very much enjoy CSS work.
·
Tuesday, 11 March 2014 15:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post