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.

Typography -- Dependent on Menu Type?

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

I've noticed that there is a slight difference in the size of type used for article titles -- this seems to be related to whether a single article or category blog is displayed by the corresponding menu link.

It would seem prudent to have the type size the same whether or not one is showing 1 or more articles.

Which CSS file(s) handles the title / heading font size?

Thanks,

~ Lisa
  • Lisa Harrington's Avatar
  • Lisa Harrington
  • 12 Month basic
  • 64 posts
  • 1 Thanks
  • Karma: 1
The administrator has disabled public write access.
Hi Lisa,

Have a link for the site?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
<sigh> sandbox3.uucb.org

Staging site. :)
  • Lisa Harrington's Avatar
  • Lisa Harrington
  • 12 Month basic
  • 64 posts
  • 1 Thanks
  • Karma: 1
The administrator has disabled public write access.
Can you point me to the links in question so I can compare?

I'm optically challenged at the best of times

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

Of course, Paul.

H1 Title - single article: sandbox3.uucb.org/families/family-community
#mainWrap h1 span, #mainWrap h2 span, #mainWrap h1 a, #mainWrap h2 a, #mainWrap p, #mainWrap div, #mainWrap li {
color: #000;
font-weight: 300;

H2 Title - category blog: sandbox3.uucb.org/families/learning-children-youth/children-s-classes

#mainWrap h1 span, #mainWrap h2 span, #mainWrap h1 a, #mainWrap h2 a, #mainWrap p, #mainWrap div, #mainWrap li {
color: #000;
font-weight: 300;

(Site inspection tool used to view code -- coming from template.css, line 4167)

All titles on the site should render as H1 for SEO.

Thanks,

~ Lisa
  • Lisa Harrington's Avatar
  • Lisa Harrington
  • 12 Month basic
  • 64 posts
  • 1 Thanks
  • Karma: 1
Last Edit: 9 years 2 weeks ago by Lisa Harrington.
The administrator has disabled public write access.
Hi Lisa,

sorry to be clear you want both fonts the same font size?

e.g. h2 {font-size: 39px;}

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
No, I don't want H1 and H2 to be the same size. I want H1 applied to all article titles, regardless of the view (single article, category blog, etc.). H2 should only be applied to sub-headings.

Capiche?

Thanks! :)
  • Lisa Harrington's Avatar
  • Lisa Harrington
  • 12 Month basic
  • 64 posts
  • 1 Thanks
  • Karma: 1
The administrator has disabled public write access.
Hi

For one h1 tag it would a case of using the page display heading

However to change all the h2 tags would require an override I think

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
So... What code do I need to add to the custom.css file in order for all article titles to display as H1?

For the life of me, I can't figure it out.

Thanks for your help, Paul.

~ Lisa
  • Lisa Harrington's Avatar
  • Lisa Harrington
  • 12 Month basic
  • 64 posts
  • 1 Thanks
  • Karma: 1
The administrator has disabled public write access.
Hi Lisa,

Its a template override which means changing some of the html of the php file rather than css

You want to change the tag itself rather than how it renders

I'm not sure what file change at the moment as I thought I knew but it doesn't want to work

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks for your input, Paul. I'd rather not mess with any of the .php files. I think Anthony provided the answer in another thread -- the titles of single articles are being rendered as page titles, whereas titles of articles displayed in a "category blog" layout are rendered (appropriately) in H2.

I consider this matter closed.

Appreciate the effort and good support.

~ Lisa
  • Lisa Harrington's Avatar
  • Lisa Harrington
  • 12 Month basic
  • 64 posts
  • 1 Thanks
  • Karma: 1
The administrator has disabled public write access.
Sure no problem

Enjoy the weekend

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