-
AuthorPosts
-
austenn01 Friend
austenn01
- Join date:
- August 2010
- Posts:
- 175
- Downloads:
- 115
- Uploads:
- 14
- Thanked:
- 33 times in 1 posts
May 4, 2015 at 3:03 pm #206074Hello,
I was happily working on a new website, and I went and added a normal class to a Menu Item > link type > Link CSS Style field AND I added a Font Awesome class fa-user and neither show in the code on the frontend.
The css class had been in this filed for maybe 3 weeks, so cache is not an issue. i only added the fa-user tonight, which is what alerted me to the issue that it doesnt matter what text you add to the Link CSS style field, nothing will show on the frontend when viewing the code in firebug.
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
May 5, 2015 at 7:56 am #569462Go to this File: pluginssystemt3includesmenumegamenu.tpl.php
Search for this function : static function item($vars)
Add this code just above switch ($item->type) { of the ‘function item’
[PHP]
if (trim($item->anchor_css) !=”) {
$vars[‘class’] .= ‘ ‘.trim($item->anchor_css).’ ‘;
}[/PHP]
But when you upgrade your Ja Template, this code might be replaced.
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 2 replies, has 2 voices, and was last updated by chavan 9 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Add a css class to the Menu Link Type – Link CSS Style doesnt work
Viewing 2 posts - 1 through 2 (of 2 total)