Short description formatting

Home Forums Legacy Support Support queries Styling issues Short description formatting

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #222472
    dav80
    Spectator
    Hello, 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 ?   Thanks
    #222542
    Diana
    Participant
    @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/otdujy
    #222553
    dav80
    Spectator
    Hello,   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. Thanks
    #222733
    logan
    Member
    Hello,

    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

    #222758
    dav80
    Spectator
    Hello,   Sorry but this code does not disable the links. Any idea ?   Thanks
    #222811
    logan
    Member
    This reply has been marked as private.
    #223001
    dav80
    Spectator
    This reply has been marked as private.
    #223170
    logan
    Member
    This reply has been marked as private.
    #223198
    dav80
    Spectator
    This reply has been marked as private.
    #223255
    logan
    Member
    Hello, 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 });
    #223302
    dav80
    Spectator
    Hello,   Nothing change with this code. Links are ever active.   Thanks
    #223400
    logan
    Member
    Hello, 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 });
    #223401
    dav80
    Spectator
    This reply has been marked as private.
    #223472
    logan
    Member
    Hello, 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.
    #223817
    dav80
    Spectator
    Hello, 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
Viewing 15 posts - 1 through 15 (of 18 total)
  • The topic ‘Short description formatting’ is closed to new replies.