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.

changing paragraph font size

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

Hi There,

I have been trying to change the size of my paragraph font in a number of ways and am yet to succeed.

Firstly I tried using Theme Magic, then I tried adding custom code through theme manager ( p { font-size: 2 em} ). Lastly I tried adding code to the custom.css file.

Not sure why my first attempt through theme magic didn't work?

Any ideas would be appreciated :)

Julia


yourhorsepartnership.com
  • Julia Booth's Avatar
  • Julia Booth
  • 12 Month Developer
  • 125 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Julia,

Looking at the front page you have

element.style {
font-size: 10pt;
}

So this will override any changes made via the custom css file or theme magic
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Instead remove the

element.style {
font-size: 10pt;
}

and try something along the lines of

body p {font-size:14px}

Adding it to the custom css file

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks Paul,

I can see now that in the thememagic.xml file my fonts are 10pt.
Which CSS file is the code you mentioned below in?

element.style {
font-size: 10pt;
}

Thank you!
  • Julia Booth's Avatar
  • Julia Booth
  • 12 Month Developer
  • 125 posts
  • Karma: 0
The administrator has disabled public write access.
By the way Paul, I initially changed the font sizes of different modules on the homepage using the JCE editor. I take it then that this isn't a good idea?

Julia
  • Julia Booth's Avatar
  • Julia Booth
  • 12 Month Developer
  • 125 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Julia,

Changing presentation in the editor isn't that good an idea -

- Used on a large scale slows the site down
- Makes a site harder to update and manage
- Its inefficient time wise

element.style {
font-size: 10pt;
}

This is referring to the font changes you made in the editor :)

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
Last Edit: 9 years 1 month ago by manh.
The administrator has disabled public write access.
So you need to remove that from the html modules and then add the custom css line to the custom.css file

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Great I am on it :) Thanks for your advice!
  • Julia Booth's Avatar
  • Julia Booth
  • 12 Month Developer
  • 125 posts
  • Karma: 0
The administrator has disabled public write access.
No problem :)

Cheers
Paul
  • 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