Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Module Title Font Size

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi,
Could you point in the right direction on how to change module title font sizes, could you link me a tutorial that you know off?

Thanks.
  • Peter Baron's Avatar
  • Peter Baron
  • 12 Month basic
  • 112 posts
  • Karma: 0
The administrator has disabled public write access.
I can help you with this - have a link?

If you want to try finding this yourself look at tutorials for the css inspector in the Chrome Web developer tools

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Do I have a link for what?
  • Peter Baron's Avatar
  • Peter Baron
  • 12 Month basic
  • 112 posts
  • Karma: 0
The administrator has disabled public write access.
For your site and the module you are looking at

I see probably between 30 - 60 sites a day :)

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The module on this page philosophicalinvestigations.co.uk/newpi/philosophy/plato-and-aristotle/plato

that has the title 'Most Popular Plato Resources'.

Could you advise on how to add a style so that I can simply add a module class to the relevant modules. It needs to be how it is, but with a slightly larger font and in bold.

Thanks.
  • Peter Baron's Avatar
  • Peter Baron
  • 12 Month basic
  • 112 posts
  • Karma: 0
The administrator has disabled public write access.
This is the current styling

#mainWrap div.primary1 .zen-module-title {
background: #2cb0c7;
color: #fff;
padding: 8px;
}

so if you are using the primary1 suffix you can just building on this with the extra styling


#mainWrap div.primary1 .zen-module-title {
font-weight: bold; font-size:1.1em;}

using the font size value as required anything over 1em will increase the font size
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Ad if I changed 'div.primary1' to 'div.bold' or something I would be making a new class?

Does this code go in custom.css?
  • Peter Baron's Avatar
  • Peter Baron
  • 12 Month basic
  • 112 posts
  • Karma: 0
The administrator has disabled public write access.
Are you using the .primary1 elsewhere on the site?
As its easiest to just add styling to the existing class

e.g like the example above

#mainWrap div.primary1 .zen-module-title
{font-weight: bold; font-size:1.1em;}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Its a bit more tricky if you need to create the class and use that as a suffix as you need to make sure you match the specificity of an existing style

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Ok i'll just adjust one i'm not using. Where do I find the code to alter?
  • Peter Baron's Avatar
  • Peter Baron
  • 12 Month basic
  • 112 posts
  • Karma: 0
The administrator has disabled public write access.
or do I just add it in the custom.css?
  • Peter Baron's Avatar
  • Peter Baron
  • 12 Month basic
  • 112 posts
  • Karma: 0
The administrator has disabled public write access.
Can you add to the existing class you are using?

e.g. adding this to the custom.css

#mainWrap div.primary1 .zen-module-title
{font-weight: bold; font-size:1.1em;}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers