0

i am developing an web site in Joomla, and i wolud like adding a css class to my custom module. Specifically to an h3 tag. But when i have wrotten the css class into the form input field in the Advanced Tab and i save this change, it isn't registered and consecuently this change isn't displayed into the browser.

enter image description here

How i could to solve this problem?

4
  • Clear the browser cache and the joomla! cache. Jun 17, 2016 at 0:16
  • Explaining how you are implementing your custom CSS and showing us your CSS code might help. Jun 17, 2016 at 1:27
  • I to solve this partially, via template.css: .text-contact-heading h3{ color: #555555; }
    – jgc412
    Jun 17, 2016 at 11:34
  • But i would like to do this through the Header Class Input displayed in de above form
    – jgc412
    Jun 17, 2016 at 12:17

1 Answer 1

1

According to the screenshot you put your class name into "Module Class Suffix". Suffix is a keyword there, because in you case it will give you a class name:

customlatestnews

in the HTML code of the website. There is a simple trick however - just add a whitespace before class name in Module Class Suffix field.

If this is custom-developed module, ensure that it use the 'moduleclass_sfx' parameter, like (in main module file):

$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));

And then:

class="someclassname<?php echo $moduleclass_sfx; ?>"

In module's /tmpl/default.php (or any other layout).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.