By Justin on Thursday, 13 August 2015
Posted in General Issues
Replies 5
Likes 0
Views 745
Votes 0
Is there a way to set the default font-size for EB5's text-block, say to something like 15px? Also, the inline style that determines line-height is 1.2 by default. I can override it with CSS to give it a little more breathing room, but I was wondering if there's a way to set a default height in EB5's settings.

Thanks.
Hey Justin,

You should actually add them for the front end rather than the composer Inspect them with firebug / chrome's debugger tool and apply the css selectors accordingly.
·
Thursday, 13 August 2015 00:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I'm not sure I follow. I've added an override to the line-height in my template's custom CSS file, but regarding font-size, it defaults to 12px when creating a new blog/text block. Since my site uses a default font-size of 15px, I was hoping it would be possible to set the EB5 text-block to the same size (even though the slider isn't able to select 15px ... only 14px or 16px).

Thanks,
Justin
·
Thursday, 13 August 2015 00:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Justin,

I strongly advise you to refrain from applying any styling on the composer itself because there are a lot of calculations going on in the editor there. Every block that you see is actually an "editor" and messing with the height using css is going to over-complicate a lot of other calculation as well.
·
Thursday, 13 August 2015 00:51
·
0 Likes
·
0 Votes
·
0 Comments
·
I agree Mark, but the default 12px size and 120% line-height makes for poor readability in my opinion. Most Joomla templates out of the box will use a line-height of '1.5', or '1.6', vs '120%' (using % isn't always recommended). It's great that the user can change the size of the font as needed, but I'd rather keep options limited for the user in order to maintain a standard look and feel throughout the site. I don't know of too many Joomla templates that use a font-size of 12px as the default size for the body tag.

Maybe something to consider adding in a future release. I'm starting to really enjoy the new EB5 editor, but for me, having a default preset font-size would be one less step on the user's part when he/she is adding an entry.

Thanks.
·
Thursday, 13 August 2015 01:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Noted, thanks for the heads up on this Justin.
·
Thursday, 13 August 2015 01:24
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post