How site-wide hyperlink underling CSS settings were overriden back to normal. 

by MarcA
I had a crack at overriding the CSS settings for hyperlinks so that they're all underlined, following the suggestion here:
 
There are basically two changes:
  1. Create a new CSS file .../css/rostrum_overrides.css, which I believe means it's actually more precisely in somewhere called.../templates/jsn_metro_pro/css/rostrum_overrides.css.
  2. To generate the reference to the CSS file, I added the following magic,  <?php  JHtml::_('stylesheet', JUri::root() . 'templates/' . $this->template . '/css/rostrum_overrides.css'); ?> as suggested in the above link, right before </head> in .../index.php, which I assume is   .../templates/jsn_metro_pro/index.php
Admittedly, I only did a backup in between these two steps, though have the spare CSS file around shouldn't do any harm without step 2 to reference it. At one point, while looking for index.php, I clicked on something that mentioned "links override". It said it created something, but not much more than that, so I restored the backup and then found index.php.
 
The rostrum_overrides.css file looks like this:
/* A file for custom overrides for (hopefullyl) any template that is or will be installed on the Rostrum website */
/* Ensure ALL hyperlinks are underlined */
a { text-decoration: underline !important; }
 
The trick, apparently, is to add "!important". This is supposed to ensure that other rules applying to anchor tags don't override this one, though from the CSS spec, it's not clear to me how having multiple "!important" declarations overriding one another is resolved. Hopefully the people who wrote Joomla & JSN Metro had the good sense to leave this keyword strictly to the end users. On the other hand, given that the whole system involves 20-odd CSS files being imported, I'm not confident in assuming that kind of thing.
 
The claim is that this approach, if a new template is installed, will only necessitate step 2 being repeated. I think, however, that if a new template is installed & JSN Metro is deleted, that the rostrum_overrides.css file will be deleted. It should probably be stored somewhere higher up the directory structure, outside of the confines of the JSN Metro installation. I'm not sure how to get there from my interface, though.
 
Anyway, it appears to be working atm on the NSW Clubs page and the VoY menus, and everywhere else I've briefly looked.
 
I had a crack at overriding the CSS settings for hyperlinks so that they're all underlined, following the suggestion here:
 
There are basically two changes:
  1. Create a new CSS file .../css/rostrum_overrides.css, which I believe means it's actually more precisely in somewhere called.../templates/jsn_metro_pro/css/rostrum_overrides.css.
  2. To generate the reference to the CSS file, I added the following magic,  <?php  JHtml::_('stylesheet', JUri::root() . 'templates/' . $this->template . '/css/rostrum_overrides.css'); ?> as suggested in the above link, right before </head> in .../index.php, which I assume is   .../templates/jsn_metro_pro/index.php
Admittedly, I only did a backup in between these two steps, though have the spare CSS file around shouldn't do any harm without step 2 to reference it. At one point, while looking for index.php, I clicked on something that mentioned "links override". It said it created something, but not much more than that, so I restored the backup and then found index.php.
 
The rostrum_overrides.css file looks like this:
/* A file for custom overrides for (hopefullyl) any template that is or will be installed on the Rostrum website */
/* Ensure ALL hyperlinks are underlined */
a { text-decoration: underline !important; }
 
The trick, apparently, is to add "!important". This is supposed to ensure that other rules applying to anchor tags don't override this one, though from the CSS spec, it's not clear to me how having multiple "!important" declarations overriding one another is resolved. Hopefully the people who wrote Joomla & JSN Metro had the good sense to leave this keyword strictly to the end users. On the other hand, given that the whole system involves 20-odd CSS files being imported, I'm not confident in assuming that kind of thing.
 
The claim is that this approach, if a new template is installed, will only necessitate step 2 being repeated. I think, however, that if a new template is installed & JSN Metro is deleted, that the rostrum_overrides.css file will be deleted. It should probably be stored somewhere higher up the directory structure, outside of the confines of the JSN Metro installation. I'm not sure how to get there from my interface, though.
 
Anyway, it appears to be working atm on the NSW Clubs page and the VoY menus, and everywhere else I've briefly looked.
 
The above is a reference for how it was done, in the event that it needs doing again.

National Events

No events

Member Login

This login form is for Rostrum members who are registered members on the site. If you are a Rostrum member but are not registered on the site contact your club secretary.


Go to top