-
AuthorPosts
-
November 8, 2015 at 9:08 am #732134
Please how it’s possible to wrap the text in the teline IV mega menu?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 9, 2015 at 6:25 am #754017Hi,
Open templates/ja_teline_iv_t3/tpls/blocks/mainnav.php file and look at the screenshot and change it as my highlight text below
Regards
November 9, 2015 at 10:14 am #754045Thank you!
But, Please where can I find that mainnav.php file?
I can’t find it in templates/ja_teline_iv_t3/tpls/blocks/.
I use teline iv 2.5.4 version (Jommla 3+).Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 10, 2015 at 4:07 am #754110<em>@dionysis77 501432 wrote:</em><blockquote>Thank you!
But, Please where can I find that mainnav.php file?
I can’t find it in templates/ja_teline_iv_t3/tpls/blocks/.
I use teline iv 2.5.4 version (Jommla 3+).</blockquote>With teline iv 2.5.4 version, it’s very hard to do this, but you can try to use this way
+ Open templates/ja_teline_iv/blocks/header.php file and add new js script
<script type="text/javascript">
(function($){
$(document).ready(function(){
var list_menu = $('#ja-mainnav .ja-megamenu ul.level0 li.mega.haschild');
for(var i = 0; i < list_menu.length; i++) {
if (list_menu.innerText.length > 30) {
list_menu.className = list_menu.className + ' word-wrap'
}
}});
})(jQuery);
</script>+ Open templates/ja_teline_iv/css/template.css file and add new css style
#ja-mainnav .ja-megamenu ul.level0 li.mega.word-wrap {
word-wrap: break-word;
width: 170px;
}
Once done, remember to clear cache from admin area.
November 11, 2015 at 7:56 pm #754314Unfortunately there is no result!
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 12, 2015 at 2:18 am #754330<em>@dionysis77 501819 wrote:</em><blockquote>Unfortunately there is no result!</blockquote>
Look at the screenshot:
Is this what you’re trying to achieve?
November 12, 2015 at 7:00 am #754362Yes, that is what I want!
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 12, 2015 at 9:59 am #754377<em>@dionysis77 501911 wrote:</em><blockquote>Yes, that is what I want!</blockquote>
My solution #4 will help you to do that. If you could not solve it, you can pm me the URL, admin login of your site and FTP account. I will help you out
1 user says Thank You to Ninja Lead for this useful post
-
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by Ninja Lead 8 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum