?
Solved

Change module font type in joomla

Posted on 2010-08-31
13
Medium Priority
?
921 Views
Last Modified: 2012-08-14
Hi, i would like to change my font color in one of the joomlas modules

mod_latestnews.

The list of the latest articles is grey, and the font is too small. Can i change the color and the font size somehow?
Is there a possibility to adjust the dinstance between two lines in this list?
0
Comment
Question by:Patricck
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
  • 2
13 Comments
 
LVL 18

Expert Comment

by:Eternal_Student
ID: 33566289
I presume that joomla has its' own stylesheet where you can edit  these styles. You need to identify where that CSS appears in the code. You can do this with Firebug, it is an add on for FireFox and you can get it here:

https://addons.mozilla.org/en-US/firefox/addon/1843/

Once you identify where those styles appear you then need to change  the font-size, color and letter-spacing.
0
 
LVL 18

Expert Comment

by:Eternal_Student
ID: 33566295
By the way firebug can be used by right clicking on the element in your browser and then from the menu choosing to "Inspect Element"
0
 
LVL 12

Expert Comment

by:Dean OBrien
ID: 33567407
The module sets the list to have a class called 'latestnews', I cant find any reference to this class anywheere in the Joomla files.

That being the case you should first of all define the class in the relevant template you have assigned:
Joomla -> templates -> (TEMPLATE_NAME) -> styles -> template.css

Or if that doesnt work, the other way to make your change (not encouraged), would be to access the PHP file in the module which writes the infomation to the screen.

Joomla -> modules -> mod_latestnews -> tmpl -> default.php

Where you see this line:
<ul class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">

Add your own direct style:
<ul style="color:#f00;" class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">

That should override any other settings.

Easynow
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Author Comment

by:Patricck
ID: 33567616
Hi easynow,

i have edited the php file, but it did not do the trick, the lines appear as a normal link, with grey color.
0
 
LVL 12

Expert Comment

by:Dean OBrien
ID: 33567788
Can you post a link to the live page?
0
 
LVL 12

Accepted Solution

by:
Dean OBrien earned 2000 total points
ID: 33567816
Instead of editing the <UL> line, edit this one:

<a href="<?php echo $item->link; ?>" class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">

to:

<a style="color:#f00;" href="<?php echo $item->link; ?>" class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>">
0
 
LVL 3

Author Comment

by:Patricck
ID: 33568213
Hi,
thanks. This is working. And how can i put more options into this line?
font type.. size...

thanks very much
0
 
LVL 12

Expert Comment

by:Dean OBrien
ID: 33568241
You can add any CSS you like into the style="" section.

For example:
style="font-size:16pt"

See here for more info:
http://www.w3schools.com/css/pr_font_font-size.asp

Easynow
0
 
LVL 3

Author Comment

by:Patricck
ID: 33568261
and how to divide font-size and color in the "" ?
0
 
LVL 12

Expert Comment

by:Dean OBrien
ID: 33568285
use a semi colon ; after each declaration, i.e.

style="font-size:16pt;color:#f00"
0
 
LVL 3

Author Closing Comment

by:Patricck
ID: 33568318
That did the trick,

thanks
0
 
LVL 12

Expert Comment

by:Dean OBrien
ID: 33568368
No probs, thanks for points
0
 
LVL 3

Author Comment

by:Patricck
ID: 33575377
You are welcome,

this was not in the question, but i have not tested it.. so there is one more thing. I have configured line height for dividing different posts with more space. But when the name of the post is more than one line.. there is also space. Is it possible to divide just the posts, and not all the lines?

It would be great if you could answer me,

Thanks anyway for the help
best regards
Patrik
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Suggested Courses
Course of the Month14 days, 21 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question