Home › Forums › Legacy Support › Support queries › Styling issues › Short description formatting
- This topic has 17 replies, 3 voices, and was last updated 4 years, 7 months ago by logan.
-
AuthorPosts
-
August 15, 2019 at 7:46 pm #222472dav80SpectatorHello, 1- Is there a way to use the long description format (html) in the short description. Currently seem's that the short description does not support html. 2- Can we diasable the link which redirect to the curiculum view from the image and title of the course in the My courses tab ? ThanksAugust 16, 2019 at 8:15 am #222542DianaParticipant@dav80 Issue 1: Actually the Short description input type is actually a textarea which is not encoding html content. So, right now there is no way. You have to add your HTML content in the Full Description Issue 2: Add the below code in wp-admin > WPLMS > Footer > Google Analytics Code within the script tag Like this: <script> code here...</script> jQuery( document ).ready(function() { jQuery(".mycourse .item-title a").removeAttr("href"); }); It will disable the redirecting links from here refer: http://prntscr.com/otdujyAugust 16, 2019 at 8:56 am #222553dav80SpectatorHello, Ok for issue 1. So is there a way to replace the short description to the long description in the My courses view ? For issue 2 : the code dos not desactive the link. ThanksAugust 17, 2019 at 1:16 pm #222733loganMemberHello,
try this code in wp-admin > WPLMS > Footer > Google Analytics Code.
<script>
jQuery( document ).ready(function() {
jQuery(".mycourse .item-title a").removeAttr("href");
});
</script>It will disable the redirecting links from here
refer: http://prntscr.com/otdujy
August 17, 2019 at 4:17 pm #222758dav80SpectatorHello, Sorry but this code does not disable the links. Any idea ? ThanksAugust 19, 2019 at 6:39 am #222811loganMemberThis reply has been marked as private.August 20, 2019 at 8:15 am #223001dav80SpectatorThis reply has been marked as private.August 21, 2019 at 11:01 am #223170loganMemberThis reply has been marked as private.August 21, 2019 at 1:24 pm #223198dav80SpectatorThis reply has been marked as private.August 22, 2019 at 6:08 am #223255loganMemberHello, use this code in your customizer plugin. add_action('wp_footer',function(){ ?> <script type="text/javascript"> jQuery( document ).ready(function($){ $(".course .item-title a").attr("href", ""); }); </script> <?php });August 22, 2019 at 10:01 am #223302dav80SpectatorHello, Nothing change with this code. Links are ever active. ThanksAugust 23, 2019 at 8:15 am #223400loganMemberHello, Remove above code from customizer and add this one. add_action('wp_footer',function(){ ?> <script> jQuery(document).ready(function($){ $("body").delegate(".course .item-title a","click",function(event){ event.preventDefault(); }); }); </script> <?php });August 23, 2019 at 8:20 am #223401dav80SpectatorThis reply has been marked as private.August 24, 2019 at 7:46 am #223472loganMemberHello, no i did not do anything. whats wrong??
for the link thing: they are generating dynamically. this anchor tag appears dynamically in dom. we cant modify it. anchor tag will appear but it wont redirect to anywhere.August 27, 2019 at 9:12 pm #223817dav80SpectatorHello, Ok, but currently, only the link of the title is desactivated, note the image link. Another problem, the access of the admin section of the course is doing with these links. So if we disable the links, we disable the acess to the admin section of the course. Is there a way to disable the links only for non-admin user ? Thanks -
AuthorPosts
- The topic ‘Short description formatting’ is closed to new replies.