Add bootstrap link class disabled
February 2014 Joomla Template
Rate this topic: 




1.00 out of 6 based on 1 vote(s)
- GK User
- Mon Aug 24, 2015 1:46 pm
- Reply with quote
- Report this post
Hello.
Here I am working on a new project. I need to add bootstrap link class "disabled" to links shown for guests only. Is this possible? Can you help me here?
Bootstrap disabled state: http://getbootstrap.com/css/#forms-control-disabled
Link: http://web1043.webbox444.server-home.org/
Thanks and kind regards
Here I am working on a new project. I need to add bootstrap link class "disabled" to links shown for guests only. Is this possible? Can you help me here?
Bootstrap disabled state: http://getbootstrap.com/css/#forms-control-disabled
Link: http://web1043.webbox444.server-home.org/
Thanks and kind regards
-

- Senior Boarder
- teitbite
- Wed Aug 26, 2015 4:55 pm
- Reply with quote
- Report this post
hi
I'm afraid this template is not using bootstrap. Can You please tell me what are You trying to achieve, so maybe there will be a different way to do this ?
I'm afraid this template is not using bootstrap. Can You please tell me what are You trying to achieve, so maybe there will be a different way to do this ?
-

- Moderator
- GK User
- Fri Aug 28, 2015 10:25 am
- Reply with quote
- Report this post
I want to have the effect of disabled links to guest-users
Can we make it?
Bootstrap disabled state: http://getbootstrap.com/css/#forms-control-disabled
Bootstrap disabled state: http://getbootstrap.com/css/#forms-control-disabled
-

- Senior Boarder
- teitbite
- Sat Aug 29, 2015 5:03 pm
- Reply with quote
- Report this post
Hi
Add this to /layout/blocks/head.php
Add this to /layout/blocks/head.php
- Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('.disabled').each(function(){
$(this).attr('disabled','disabled');
});
});})(jQuery)</script>
-

- Moderator
- GK User
- Mon Aug 31, 2015 8:51 am
- Reply with quote
- Report this post
Hey i try to add something 
For guest users to some Links that are for registered users.
1.Link
2.Link (class="disabled")
3.Link
Thank you!
For guest users to some Links that are for registered users.
1.Link
2.Link (class="disabled")
3.Link
Thank you!
-

- Senior Boarder
- teitbite
- Tue Sep 01, 2015 2:23 pm
- Reply with quote
- Report this post
Hi
Ok. I'm confused now. The instruction You were showing me is about disabling form elements and You are asking about disabling a link ? Those are 2 different things. Can You please show me directly what You are trying to disable.
Ok. I'm confused now. The instruction You were showing me is about disabling form elements and You are asking about disabling a link ? Those are 2 different things. Can You please show me directly what You are trying to disable.
-

- Moderator
6 posts
• Page 1 of 1
